2011-02-22 14 views
47

Pueden algunos describir y me ayudan a entender todos los símbolos SVN, como A, M, G, ? y >?Describir los símbolos SVN

+4

Escriba svn status en websearch y el primer acierto es este: http://svnbook.red-bean.com/en/1.0/re26.html –

Respuesta

31

svn help status le dará una leyenda completa con toda la información que necesita. Desde la autoayuda no es una opción y sugiriendo tales cosas está mal visto, por debajo de la leyenda es que tuve cuando me encontré svn help status usando 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. 

espero que te das cuenta de que es svn help status de versiones Subversion específica que significa esta respuesta y la que se acredita como la respuesta correcta podría o no ser correcta en función de su versión de Subversion, ya que ejecutar svn help status siempre será preciso.

84

Todos esos códigos se explican por el comando svn help status, lo que arroja:

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 

Una muy Userful Cheat sheet para gestionar todos los comandos de SVN.

+11

Esta información, con un poco más de texto explicativo, también está disponible en [ la referencia gratuita de Subversion en línea] (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.status.html). – Pops

+0

¿Qué significa el código 'E' durante un check-out con la opción --force? (Creo que significa "existente", pero no estoy seguro). – Jeff

+0

E = El archivo existía antes de la actualización; De todos modos, recomiendo migrar a GIT desde SVN, funciona mil veces mejor – vgonisanz

Cuestiones relacionadas