Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn diff: Compare my local uncommited changes with an arbitrary version of the file from the repository

Tags:

diff

svn

Let's say I've checked out revision 10 of hello.c which is the latest one in the repository. I've made some changes to hello.c locally in my workspace, but I haven't committed it yet. Now, how can I compare this local uncommitted changes made on top of revision 10 with, say, revision 7 of hello.c in the repository?

Thanks for your time!

like image 548
Srikanth Avatar asked Oct 28 '10 13:10

Srikanth


1 Answers

To see how your working copy's modifications to the file hello.c compare against revision 7 use:

svn diff -r 7 hello.c
like image 85
Eugene Yarmash Avatar answered Sep 23 '22 07:09

Eugene Yarmash