2011-02-22 6 views
47

certains peuvent décrire et me aider à comprendre tous les symboles svn, comme A, M, G, ? et >?Décrire les symboles SVN

+4

Entrez svn status dans websearch et le premier résultat est le suivant: http://svnbook.red-bean.com/fr/1.0/re26.html –

Répondre

31

svn help status vous donnera une légende complète avec toutes les informations dont vous avez besoin. Depuis l'auto-assistance est pas une option et suggérer de telles choses est mal, voici la légende que je suis quand je courais 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. 

J'espère que vous vous rendez compte que svn help status est spécifique de version Subversion signifie que cette réponse et celle crédité comme la bonne réponse pourrait être ou ne pas être correcte sur la base de votre version de Subversion où svn help status sera toujours précise.

84

Tous ces codes sont expliqués par la commande svn help status, qui lance:

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 

Une très Userful Cheat sheet pour gérer toutes les commandes svn.

+11

Cette information, avec un peu plus de texte explicatif, est également disponible sur [ la référence Subversion en ligne gratuite] (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.status.html). – Pops

+0

Que signifie le code 'E' lors d'un check-out avec l'option --force? (Je pense que cela signifie "existant", mais je ne suis pas certain.) – Jeff

+0

E = Le fichier existait avant la mise à jour; Quoi qu'il en soit, je recommande de migrer vers GIT à partir de SVN, cela fonctionne mille fois mieux – vgonisanz