Pagine

Wednesday 7 December 2016

SVN tutorial n 2 - status

Display the status of working copy files and directories. Diff between your workspace and code repository.
 svn stat <path>
or
 svn st <path>
or
 svn status <path>
<path> is optional parameter, the default value is current folder ( . ). The command output shows the file list with the status for each file. The following status are the most common:  'A' Item is scheduled for addition.
 'D' Item is scheduled for deletion.
 'M' Item has been modified.
 '?' 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 a different kind of object.
The full list you can see the following link: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.status.html The option '--xml' gets the output in XML format
svn status --xml 
This XML can be redirected to a file, this can be useful, for example, for an automation procedure
svn status --xml > myproject-status.xml

No comments:

Post a Comment