描述SVN符号

56

请问有人能够描述和帮助我理解所有svn符号的含义,例如 AMG?>


4
在搜索引擎中键入“svn status”,第一个搜索结果是:http://svnbook.red-bean.com/en/1.0/re26.html。 - David Heffernan
有关结果代码,请参见SVN中的结果代码是什么意思? - Joe'
2个回答

100

所有这些代码都由svn help status命令解释,该命令会显示:

 The first seven columns in the output are each one character wide:
First column: Says if item was added, deleted, or otherwise changed
  ' ' no modifications
  'A' Added
  'C' Conflicted
  'D' Deleted
  'I' Ignored
  'M' Modified
  'R' Replaced
  'X' an unversioned directory created by an externals definition
  '?' item is not under version control
  '!' item is missing (removed by non-svn command) or incomplete
  '~' versioned item obstructed by some item of a different kind
Second column: Modifications of a file's or directory's properties
  ' ' no modifications
  'C' Conflicted
  'M' Modified
Third column: Whether the working copy directory is locked
  ' ' not locked
  'L' locked
Fourth column: Scheduled commit will contain addition-with-history
  ' ' no history scheduled with commit
  '+' history scheduled with commit
Fifth column: Whether the item is switched or a file external
  ' ' normal
  'S' the item has a Switched URL relative to the parent
  'X' a versioned file created by an eXternals definition
Sixth column: Repository lock token
  (without -u)
  ' ' no lock token
  'K' lock token present
  (with -u)
  ' ' not locked in repository, no lock token
  'K' locked in repository, lock toKen present
  'O' locked in repository, lock token in some Other working copy
  'T' locked in repository, lock token present but sTolen
  'B' not locked in repository, lock token present but Broken
Seventh column: Whether the item is the victim of a tree conflict
  ' ' normal
  'C' tree-Conflicted

这是一份非常有用的svn命令速查表,可以帮助你管理所有的svn命令。


12
这些信息还可在免费在线Subversion参考手册中找到,该手册包含更多解释性文字。 - Pops
在使用 --force 选项进行 check-out 时,'E' 代码是什么意思?(我认为它表示“已存在”,但我不确定。) - Jeff
1
E = 更新之前文件已存在;无论如何,我建议从SVN迁移到GIT,它的表现要好上千倍。 - vgonisanz
G: Changes on the repo were automatically merged into the working copy - Mateen Ulhaq

35

svn help status 将会给你一个完整的图例,包含你需要的所有信息。由于自助不是一个选项,而且建议这样做是被反对的,因此在下面是我在使用Subversion 1.7.5运行svn help status时得到的图例:

  The first seven columns in the output are each one character wide:
    First column: Says if item was added, deleted, or otherwise changed
      ' ' no modifications
      'A' Added
      'C' Conflicted
      'D' Deleted
      'I' Ignored
      'M' Modified
      'R' Replaced
      'X' an unversioned directory created by an externals definition
      '?' item is not under version control
      '!' item is missing (removed by non-svn command) or incomplete
      '~' versioned item obstructed by some item of a different kind
    Second column: Modifications of a file's or directory's properties
      ' ' no modifications
      'C' Conflicted
      'M' Modified
    Third column: Whether the working copy directory is locked
      ' ' not locked
      'L' locked
    Fourth column: Scheduled commit will contain addition-with-history
      ' ' no history scheduled with commit
      '+' history scheduled with commit
    Fifth column: Whether the item is switched or a file external
      ' ' normal
      'S' the item has a Switched URL relative to the parent
      'X' a versioned file created by an eXternals definition
    Sixth column: Repository lock token
      (without -u)
      ' ' no lock token
      'K' lock token present
      (with -u)
      ' ' not locked in repository, no lock token
      'K' locked in repository, lock toKen present
      'O' locked in repository, lock token in some Other working copy
      'T' locked in repository, lock token present but sTolen
      'B' not locked in repository, lock token present but Broken
    Seventh column: Whether the item is the victim of a tree conflict
      ' ' normal
      'C' tree-Conflicted
    If the item is a tree conflict victim, an additional line is printed
    after the item's status line, explaining the nature of the conflict.

我希望你意识到,svn help status是与Subversion版本相关的,这意味着此答案和被认为是正确答案的答案可能根据您的Subversion版本而正确或不正确,而运行svn help status将始终准确无误。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接