Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I see the revision number of each file in a SVN working copy?

I work with another developer in the same working copy (I know that is a bad idea), we usually do updated of individual files, and now we have files in some revision and others in another. How can I see a list of files with their respectives revision numbers? (The working copy is in a linux box, and we're using svn command line.

Thanks in advance for any help

like image 940
Castro Avatar asked Aug 09 '10 19:08

Castro


3 Answers

Try this in your working copy

svn info *

or

svn info -R *

to see all files and directories recursively

You may type svn help info to see other options

like image 155
Dmitry Yudakov Avatar answered Nov 15 '22 22:11

Dmitry Yudakov


svn -R list --verbose

It will give output like this

109 authorname 3818 Nov 20 2012 JSON/xyz.json

like image 33
Singhak Avatar answered Nov 15 '22 22:11

Singhak


svn info -R . | egrep "^Path:|^Revision:" | paste - -

Which means

  • Recursively get info of every file in the sub tree rooted at the current directory
  • Keep only lines beginning with "Path:" or "Revision:"
  • Join the Path/Revision lines onto a single line

Produces output like this:

Path: Tools/xmlvalidator    Revision: 69114
Path: Tools/xmlvalidator/main.c Revision: 69114
like image 3
SimonD Avatar answered Nov 15 '22 22:11

SimonD