SVN status codes cheat sheet

SVN status codes

Running the status command in subversion on the command line returns a list of files with a one letter code in front of each file name. Here’s a list of those one letter codes and what they mean.

svn status
M src/index.php (etc)



The first six columns in the output are each one character wide, and each column gives you information about different aspects of each working copy item. With –show-updates, add working revision and server out-of-date information.

SVN Status first column: A, D, M, R, C, X, I, ?, !, ~

The first column indicates that an item was added, deleted, or otherwise changed.

‘ ‘
No modifications.
‘A’
Item is scheduled for Addition.
‘D’
Item is scheduled for Deletion.
‘M’
Item has been modified.
‘R’
Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
‘C’
The contents (as opposed to the properties) of the item conflict with updates received from the repository.
‘X’
Item is related to an externals definition.
‘I’
Item is being ignored (e.g. with the svn:ignore property).
‘?’
Item is not under version control.
‘!’
Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).
‘~’
Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.

SVN Status second column: M, C

The second column tells the status of a file’s or directory’s properties.

‘ ‘
No modifications.
‘M’
Properties for this item have been modified.
‘C’
Properties for this item are in conflict with property updates received from the repository.

SVN Status third column: L

The third column is populated only if the working copy directory is locked (an svn clean should normally be enough to clear it out)

‘ ‘
Item is not locked.
‘L’
Item is locked.

SVN Status fourth column: +

The fourth column is populated only if the item is scheduled for addition-with-history.

‘ ‘
No history scheduled with commit.
‘+’
History scheduled with commit.

SVN Status fifth column: S

The fifth column is populated only if the item’s working copy is switched relative to its parent

‘ ‘
Item is a child of its parent directory.
‘S’
Item is switched.

SVN Status sixth column: K, O, T, B

The sixth column is populated with lock information.

‘ ‘
When –show-updates is used, the file is not locked. If –show-updates is not used, this merely means that the file is not locked in this working copy.
K
File is locked in this working copy.
O
File is locked either by another user or in another working copy. This only appears when –show-updates is used.
T
File was locked in this working copy, but the lock has been “stolen”and is invalid. The file is currently locked in the repository. This only appears when –show-updates is used.
B
File was locked in this working copy, but the lock has been “broken”and is invalid. The file is no longer locked This only appears when –show-updates is used.

SVN Status seventh column: K, O, T, B

The out-of-date information appears in the seventh column (only if you pass the –show-updates switch).

‘ ‘
The item in your working copy is up-to-date.
‘*’
A newer revision of the item exists on the server.

source : http://blog.gotofritz.net/geekery/unix/svn-status-codes/




Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.
Bg