Опишите символы SVN - PullRequest
       2

Опишите символы SVN

53 голосов
/ 22 февраля 2011

Могут ли некоторые описать и помочь мне понять все символы SVN, такие как A, M, G, ? и >?

Ответы [ 2 ]

94 голосов
/ 28 февраля 2012

Все эти коды объясняются командой 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.

33 голосов
/ 22 февраля 2011

svn help status предоставит вам полную легенду со всей необходимой информацией.Так как самопомощь не вариант, и намекает на то, что такие вещи не одобряются, ниже приведена легенда, которую я получил, запустив svn help status с использованием Subversion 1.7.5:

  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 всегда будет точным.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...