描述SVN符号

时间:2011-02-22 16:36:04

标签: svn

有些人可以描述并帮助我理解所有 svn符号,例如AMG?和{{1 }

2 个答案:

答案 0 :(得分:93)

所有这些代码都由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

非常有用的Cheat sheet来管理所有svn命令。

答案 1 :(得分:33)

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总是准确无误。