Command to get svn diff current and previous version numbers

How can I get diff in the file contents of the current and previous version numbers on the command line?

And how can I get the previous version number?

+45
svn tortoisesvn
May 16 '12 at
source share
2 answers

According to your comments, you would like to see the differences between the current and previous versions of an item that is not in your working copy. To do this, you need to know the URL of the element (for example, svn://[repo_root]/[path]/[item] ), which I assume you are doing. Then you do the following:

 svn info <item-URL> 

will contain (among other things) the latest revision of the change. With the version number of R you are running:

 svn diff -c <R> <item-URL> 

and he will give you the last fixation latch.

+33
May 16 '12 at 12:40
source share
β€” -

svn diff -r HEAD <item> if you want to get the difference between your working copy and the latest patched version.

svn diff -r PREV:COMMITTED <item> if you want to see what the last commit did.

You should take a look at the Revision Keywords .

svn info <item> will provide you (among other things) with the latest revision for the item.

+76
May 16 '12 at 12:33
source share



All Articles