欢迎加入软件配置管理(CN) Google讨论组
发新话题
打印

[问题]Cygwin Perforce Client 设置例子

[问题]Cygwin Perforce Client 设置例子

下面是在 Cygwin 下我的Perforce Client 设置。其中 /home/scmroad/p4 是 D:\p4test 的软链接。

# A Perforce Client Specification.
#
#  Client:      The client name.
#  Update:      The date this specification was last modified.
#  Access:      The date this client was last used in any way.
#  Owner:       The user who created this client.
#  Host:        If set, restricts access to the named host.
#  Description: A short description of the client (optional).
#  Root:        The base directory of the client workspace.
#  AltRoots:    Up to two alternate client workspace roots.
#  Options:     Client options:
#                      [no]allwrite [no]clobber [no]compress
#                      [un]locked [no]modtime [no]rmdir
#  SubmitOptions:
#                      submitunchanged/submitunchanged+reopen
#                      revertunchanged/revertunchanged+reopen
#                      leaveunchanged/leaveunchanged+reopen
#  LineEnd:     Text file line endings on client: local/unix/mac/win/share.
#  View:        Lines to map depot files into the client workspace.
#
# Use 'p4 help client' to see more about client views and options.
Client:        wsscmroad-cygwin
Update:        2010/07/22 10:42:37
Access:        2010/07/22 10:46:28
Owner:        scmroad
Host:        wsscmroad
Description:
        Created by scmroad.
Root:        D:\p4test
AltRoots:
        /home/scmroad/p4
Options:        noallwrite noclobber nocompress unlocked nomodtime normdir
SubmitOptions:        submitunchanged
LineEnd:        local
View:
        //depot/... //wsscmroad-cygwin/depot/...
        //help/... //wsscmroad-cygwin/help/...
        //project/... //wsscmroad-cygwin/project/...

[ 本帖最后由 scmroad 于 2010-7-22 12:48 编辑 ]
软件配置管理(CN) Google讨论组.如果想和大家交流,请发送email到
ConfigMgmt-CN@googlegroups.com
更多的信息,请浏览讨论组主页
http://groups.google.com/group/ConfigMgmt-CN?hl=zh-CN

TOP

复制内容到剪贴板
代码:
Root:        D:\p4test
AltRoots:
        /home/scmroad/p4
总结一下:
Root 要设置成windows 的路径,但是 AltRoots要设置成windows下的路径在cygwin中的软链接的位置。        且二者不能颠倒。
软件配置管理(CN) Google讨论组.如果想和大家交流,请发送email到
ConfigMgmt-CN@googlegroups.com
更多的信息,请浏览讨论组主页
http://groups.google.com/group/ConfigMgmt-CN?hl=zh-CN

TOP

遇到了个路径的问题
复制内容到剪贴板
代码:
scmroad@wsscmroad ~/p4/depot
$ p4 edit b.txt
//depot/b.txt#2 - opened for edit
chmod: /home/scmroad/p4\depot\b.txt: The system cannot find the path specified.
把 AltRoots:  /home/scmroad/p4 这行去掉就可以了。
复制内容到剪贴板
代码:
scmroad@wsscmroad ~/p4/depot
$ p4 submit -c 12
Submitting change 12.
edit //depot/b.txt#3
Change 12 submitted.
软件配置管理(CN) Google讨论组.如果想和大家交流,请发送email到
ConfigMgmt-CN@googlegroups.com
更多的信息,请浏览讨论组主页
http://groups.google.com/group/ConfigMgmt-CN?hl=zh-CN

TOP

引用:
原帖由 scmroad 于 2010-7-22 11:21 发表
遇到了个路径的问题
scmroad@wsscmroad ~/p4/depot
$ p4 edit b.txt
//depot/b.txt#2 - opened for edit
chmod: /home/scmroad/p4\depot\b.txt: The system cannot find the path specified.
把 AltRoots:  /home/sc ...
但是去掉之后遇到了 Path is not under Client的问题,
scmroad@wsscmroad ~/p4/depot
$ p4 edit a.txt
Path '/home/scmroad/p4/depot\a.txt' is not under client's root 'D:\p4test'.
软件配置管理(CN) Google讨论组.如果想和大家交流,请发送email到
ConfigMgmt-CN@googlegroups.com
更多的信息,请浏览讨论组主页
http://groups.google.com/group/ConfigMgmt-CN?hl=zh-CN

TOP

这个路径不正确,斜杠不对,请问如何改正?
scmroad@wsscmroad ~/p4/depot
$ p4 edit a.txt
Path '/home/scmroad/p4/depot\a.txt' is not under client's root 'D:\p4test'.
软件配置管理(CN) Google讨论组.如果想和大家交流,请发送email到
ConfigMgmt-CN@googlegroups.com
更多的信息,请浏览讨论组主页
http://groups.google.com/group/ConfigMgmt-CN?hl=zh-CN

TOP

发新话题
最近访问的版块