You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by George Georgalis <ge...@galis.org> on 2006/06/15 22:16:32 UTC

diff of arbitrary removed versions

A user has asked me how to diff these two files...

-r 3   tim/nom/PARAMS4.for
-r 124 tim/nom/PARAMS4

I beleve svn mv was used at some point, there is no
PARMS4.for in HEAD. It would seem svn diff is able
to but I cannot get the syntax right:

$ svn diff --old=tim/nom/PARAMS4.for@3 --new=tim/nom/PARAMS4@124 
svn: 'tim/nom/PARAMS4.for' is not under version control
$ svn diff -r 3:124 --old=tim/nom/PARAMS4.for --new=tim/nom/PARAMS4
svn: 'tim/nom/PARAMS4.for' is not under version control

Is there a way to do this short of checking out both
versions and doing a manual diff?

// George


-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: diff of arbitrary removed versions

Posted by George Georgalis <ge...@galis.org>.
On Thu, Jun 15, 2006 at 06:16:32PM -0400, George Georgalis wrote:
>A user has asked me how to diff these two files...
>
>-r 3   tim/nom/PARAMS4.for
>-r 124 tim/nom/PARAMS4
>
>I beleve svn mv was used at some point, there is no
>PARMS4.for in HEAD. It would seem svn diff is able
>to but I cannot get the syntax right:
>
>$ svn diff --old=tim/nom/PARAMS4.for@3 --new=tim/nom/PARAMS4@124 
>svn: 'tim/nom/PARAMS4.for' is not under version control
>$ svn diff -r 3:124 --old=tim/nom/PARAMS4.for --new=tim/nom/PARAMS4
>svn: 'tim/nom/PARAMS4.for' is not under version control
>
>Is there a way to do this short of checking out both
>versions and doing a manual diff?

Okay, I figured it out. Need to specify the repo path when the
target is not in checkout, eg

$ svn diff -r 3:124 --old=file:///repo/tim/nom/PARAMS4.for --new=tim/nom/PARAMS4

Thanks,
// George

-- 
George Georgalis, systems architect, administrator <IXOYE><
http://galis.org/ cell:646-331-2027 mailto:george@galis.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org