Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the different columns (of letters) mean for the svn merge output?

Tags:

merge

svn

The output of SVN merge has 4 columns of letters listed before the file name. I understand the meaning of the letters (mostly) but I can't find any information on the meanings of the columns and so only have a vague understanding based on context. Can anyone point me to the documentation on this?

Based on context I've been able to infer that column:

  1. Is about text changes to a file
  2. Seems to be related to use of the svn ignore command on a folder (or maybe it's just properties of the file?)
  3. I've never seen a letter in the third column and hence I have no idea what it means.
  4. Might be tree conflicts? This is the one I'm mostly worried about because I don't know how to handle it yet.
like image 548
James Avatar asked Apr 14 '10 01:04

James


People also ask

What does D mean svn?

D: This file will be deleted (after commit) S: This signifies that the file or directory has been switched from the path of the rest of the working copy (using svn switch) to a branch.

What does M mean in svn?

'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.


2 Answers

James, I had the same issue - very frustrating not finding detailed "svn merge" info; however, in my google searches I found this posting: http://svn.haxx.se/users/archive-2008-06/0813.shtml

It indicates that the "svn merge" status letters are identical to the "svn update" status letters, which are actually documented. From the "svn help update" command:

For each updated item a line will start with a character reporting the action taken. These characters have the following meaning:

A  Added D  Deleted U  Updated C  Conflict G  Merged 

A character in the first column signifies an update to the actual file, while updates to the file's properties are shown in the second column. A 'B' in the third column signifies that the lock for the file has been broken or stolen.

like image 109
Brent Harsh Avatar answered Oct 03 '22 03:10

Brent Harsh


Same information but from official source:

http://subversion.apache.org/docs/svn-merge.txt

  For each merged item a line will be printed with characters reporting the   action taken. These characters have the following meaning:      A  Added     D  Deleted     U  Updated     C  Conflict     G  Merged     E  Existed     R  Replaced    Characters in the first column report about the item itself.   Characters in the second column report about properties of the item.   A 'C' in the third column indicates a tree conflict, while a 'C' in   the first and second columns indicate textual conflicts in files   and in property values, respectively. 
like image 42
Jesse Avatar answered Oct 03 '22 03:10

Jesse