next up previous contents
Next: Creating a new directory Up: Basic Operations Previous: Commiting files and showing   Contents

Examing the differences between two revisions

We can see the changes between two revision with the command svn diff command:

$ svn diff -r 3:2

However, svn diff does not show the directories that have been created between two revisions.

We can also see the changes we have done in the locally modified files:

$ echo "How to install" >> install.txt
$ svn status
M      install.txt
$ svn diff
Index: install.txt
===================================================================
--- install.txt (revision 4)
+++ install.txt (working copy)
@@ -1 +1,2 @@
 Install notes
+How to install

In this case, however, the client does not access the server, because it keeps the original contents of the files of the current revision in .svn directories. When we diff the locally modified files, they are compared with the ones in .svn



Ivan Ivanov 2008-04-21