数据库坏了,肯定需要从备份回复。服务起不来肯定有原因,看一下 log 里面怎么说的。
可以考虑用 P4DTG(Perforce Defect Tracking Gateway) 加上 P4DTG JIRA Plugin。
http://www.perforce.com/product/components/integrations/defect-tracking-integrations
看看下面的文章也会有所帮助:
P4DTG JIRA Troubleshooting http://answers.perforce.com/articles/KB_Article/P4DTG-JIRA-Troubleshooting/
在 sync 命令里没有办法,可以考虑在 client view 里使用 exclusive mapping:
-//depot/....jpeg //ws/...
不是特别清楚楼主具体要做什么。使用命令行提交 CL 很简单,“p4 submit -c 123456 -d '自动 integration 的描述 ‘”。
如果要求每个 cl 都必须有一个 job,可以使用 triggers。需要自己写一个 change-submit trigger 来检查 cl 是否绑定了至少一个 job,然后禁止没有 job 的 CL。
不是很清楚这是不是在问问题。这两个操作都应该可以在 P4V(最新的版本)上方便地完成:只要选择特定的 CL 然后单击鼠标右键,再选择 Rollback... 或 Back Out Submitted Changelist 'CL number'。
http://kb.perforce.com/article/1498/how-to-count-the-number-of-lines-changed
加上 p4 changes //path/...@2012/01/01,2013/01/01
You can use the exclusive lock on all files that are in question. [url=http://www.perforce.com/perforce/doc.current/manuals/p4sag/03_superuser.html#1088563http://www.perforce.com/perforce/doc.current/manuals/p4sag/03_superuser.html#1088563[/url]]
这几个月工作上比较忙,没有时间翻译。现在准备重新开始了。
P4V 提供了一个 “Reconcile Offline Work...” 功能,能够显示工作区中新添加的,被删除的和修改过的文件。你可以试试。
翻译为 “中继” 如何?
它的作用是接受客户端的访问要求,然后根据相应的策略来处理不同的命令需求。比如说,可以拒绝某个客户工作站的所有管理命令请求,把所有下载(sync)命令发到一个备份服务器来处理,等等。
这个命令主要是让用户获得一个 ticket,然后可以在命令行或是 scripts 里使用。当设定 Perforce 服务器安全级别为最高时(security=3),服务器只使用 ticket 为基础的用户认证,也就是说设置 P4PASSWD 环境变量没有用了。可是当你编写 scripts 的时候,你不希望直接把你的密码写进去,然后运行 p4 login,因为这将是很大的安全漏洞。解决方法就是使用用户的 ticket,比如:p4 -P 4DF52B7B82079E7984FE4B232C1F8992 changes -m10。 这样即便其他人看到了你的 ticket 值,也不会得到你的密码。另外,ticket 的默认有效时间是 12 小时,你可以设置 p4 group 的 timeout 选项修改。
推荐看看 Practical Perforce
使用 P4Python 做如下:
1、运行 p4 filelog(或其他命令)以获取文件有多少版本。 2、对每一个版本,运行 p4 print 获取文件内容。 3、统计每个版本的文件行数。
提示:p4.run_filelog("/depot/path/to/file"), p4.run("print", "/depot/path/to/file#rev")
你的问题不是很清楚。通常重启服务器是不需要备份 db 文件的,只要正常启动 P4d 就行了。有什么问题让你非要备份 db 文件呢?
对,你的 Perforce 账号没有权限。
不是” p4 export"命令,export 是 Linux 下设置环境变量的命令。Windows 下用 “p4 set"。
export [-fn] [name[=word]] ... export -p The supplied names are marked for automatic export to the envi- ronment of subsequently executed commands. If the -f option is given, the names refer to functions. If no names are given, or if the -p option is supplied, a list of all names that are exported in this shell is printed. The -n option causes the export property to be removed from each name. If a variable name is followed by =word, the value of the variable is set to word. export returns an exit status of 0 unless an invalid option is encountered, one of the names is not a valid shell variable name, or -f is supplied with a name that is not a func- tion.
[[i] 本帖最后由 sujianlei 于 2010-9-1 23:28 编辑 ]
xyhtxxs 于 2010-9-1 11:32 发表
我的 P4 安装好了,但是运行 P4 client Simon 时,有如下信息:
Client: simon.xu_simon Owner: simon.xu Host: localhost.localdomain Description: Created by simon.xu. Root: /root Options: noallwr ... [/quote]
这种情况说明客户端的用户和客户工作区设置不对:用户没有编辑工作区 simon.xu_simon 的权限。从后一个错误信息看,客户工作区是 localhost,也就是说没有设置。重新设置 P4USER 和 P4CLIENT 就行了:
export P4USER="simon.xu" export P4CLIENT="simon.xu_simon"
后面 p4 info 命令输出的结果和上述有点矛盾,不过看样子两个命令没有在同一个目录下运行。
mkdir /perforce mkdir /perforce/bin mkdir /perforce/p4root ...
修改 p4 和 p4d 文件属性为可执行; cd ~/perforce chmod +x p4 chmod +x p4d
为 p4d 指定可监听的 TCP/IP 端口 P4 set p4port=ip:1666(域名:1666)
另外,必须为 Perforce 创建根目录——Perforce 数据库文件、版本文件等存放的地方。如前所述的/perforce/p4root。尽管可以把可执行文件和数据库放在一起,但那不是很好的配置。
pending - 待决或待定? shelving - 暂存? Time-Lapse View - 时移图(时间推移图)?
[[i] 本帖最后由 sujianlei 于 2010-8-25 22:55 编辑 ]
我个人觉得用 wiki 是很好的途径——大家都可以自由的修改、编辑。所以我把第十章的前面部分发到 scmroad 的 wiki 上了:
大家觉得这个方式如何?
哈,我怎么没有想到这个。我添加了 “Perforce 术语中文译名” 页:
哦,那么有没有大家常用的 wiki 网站呢?我觉得对于术语、词汇表来说用 wiki 是最好的,方便大家更新、修改。
刚上传了我翻译的目录部分(论坛不支持.doc,所以用了.pdf)。大家请提宝贵意见(尤其是术语翻译方面)。多谢!
http://bbs.scmroad.com/attachment.php?aid=860&k=40fca4539fb7ba4b8a74d6c8a7693fd5&t=1281477247
谢谢大家的踊跃报名及宝贵意见。我已经总结了一下到目前为止的帖子,请参阅新编辑的首帖。目录我可以先翻译一下,还有就是需要大家看看是不是可以转用 Google 的群来做这件事(我以前建立过 Perforce 中国 Google 群)。
那请大家自告奋勇先认下一章来好吗?