Version Control with Subversion - Examining History - Comparing Repository to Repository
Comparing Repository to Repository
If two revision numbers, separated by a colon, are
passed via --revision
(-r ), then the two revisions are directly
compared.
$ svn diff --revision 2:3 rules.txt
Index: rules.txt
===================================================================
--- rules.txt (revision 2)
+++ rules.txt (revision 3)
@@ -1,4 +1,4 @@
Be kind to others
-Freedom = Chocolate Ice Cream
+Freedom = Responsibility
Everything in moderation
Chew with your mouth open
$
Not only can you use
svn diff
to
compare files in your working copy to the repository, but if
you supply a URL argument, you can examine the differences
between items in the repository without even having a
working copy. This is especially useful if you wish to
inspect changes in a file when you don't have a working copy
on your local machine:
$ svn diff --revision 4:5 https://svn.red-bean.com/repos/example/trunk/text/rules.txt
…
$
[an error occurred while processing this directive]
|