SVN中的结果代码是什么意思?
时间:2020-03-05 18:37:41 来源:igfitidea点击:
SVN中的结果代码是什么意思?我需要快速参考。
解决方案
回答
有关更多详细信息,请参见SVNBook:"工作副本文件和目录的状态"。
常见状态:
U: Working file was updated G: Changes on the repo were automatically merged into the working copy M: Working copy is modified C: This file conflicts with the version in the repo ?: This file is not under version control !: This file is under version control but is missing or incomplete A: This file will be added to version control (after commit) A+: This file will be moved (after commit) D: This file will be deleted (after commit) S: This signifies that the file or directory has been switched from the path of the rest of the working copy (using svn switch) to a branch I: Ignored X: External definition ~: Type changed R: Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place. L : Item is locked E: Item existed, as it would have been created, by an svn update.
回答
我通常通过gui(我的IDE或者客户端)使用svn。因此,当我不得不诉诸命令行时,我永远都不会记得这些代码。
我发现此备忘单有很大帮助:
颠覆备忘单
回答
查看Subversion图书参考:"工作副本文件和目录的状态"
强烈推荐给使用SVN做几乎所有事情的任何人。
回答
另请注意,第二列中的结果代码引用了文件的属性。例如:
U filename.1 U filename.2 UU filename.3
filename.1:文件已更新
filename.2:文件上的一个或者多个属性(例如svn:keywords)已更新
filename.3:文件及其属性均已更新