Archive for the ‘Subversion’ Category

Find Out What’s Changed in a Subversion Repository

Monday, March 20th, 2006

Let’s say you’re working collaboratively with someone and you’re using the Subversion source code management system.

Your buddy makes a load of changes over the weekend. You want to find out what all they added / changed / updated / etc. so you can get up to speed.

Since you know your last changes were checked in as revision #655, you can browse to your locally checked out copy and run:

svn diff -r HEAD:655 > changes.diff

HEAD is Subversion shortcut for the latest revision number. You can also use “svn diff -r 670:655″ or whatever, too.

Next, fire up your favorite graphical diff viewer with ‘changes.diff’ and you can see all the differences between the two revisions.

If you are on OS X, the excellent TextMate has a nice builtin diff viewer.

If the file extension is ‘diff’, TextMate automatically formats the output for you. Otherwise, select the Diff file type from the drop-down menu at the bottom of the editor window.


You are currently browsing the Shanti's Dispatches weblog archives for the 'Subversion' category.

Shanti A. Braford blogs here.

If you really want to know, just read this.



  

Powered by FeedBlitz