在我的本地工作区文件夹中,我添加/更新/删除文件,并希望它们同步到软件仓库。文件数量很大,我希望P4V / P4能够像SVN / Git一样自动检测并同步它。
但是,出于这种简单的目的,在Perforce中似乎并不容易...在P4V中检出整个文件夹只能检测到更新的文件,“标记为添加”可以检测到已添加的文件,但是似乎无法检测到已删除的文件,除了手册“标记为删除”。
我发现P4有一个同步命令,但似乎仅从仓库到工作区?
有什么帮助吗?
P4V中的工作区:
P4V中的仓库:
To ask Perforce to figure out what files you have added, updated, or deleted on your workstation's disk, the command you're looking for is "reconcile".
(As you noticed, "sync" gets changed files from the server, which is also useful, but isn't what you're trying to do -- you're trying to go the other direction, take changed files from your local workstation, and submit them to the server).
There's good information in these related questions: How to reconcile newer workspace files with depot in Perforce? and Perforce reconcile offline work doesn't notice the changes
并查看这篇文章,了解许多其他替代方法和技术:http : //answers.perforce.com/articles/KB/3481/?q=working+disconnected+from+the+server&l=zh_CN&fs=Search&pn=1
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句