[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: accessing older file revisions from branches

From: <sussman_at_collab.net>
Date: 2003-01-30 14:39:18 CET

Petr Sebor petr@scssoft.com writes:

 Ben Collins-Sussman wrote:
 
 I believe this is issue #1093:
 
    http://subversion.tigris.org/issues/show_bug.cgi?id=1093
 
 For now, the workaround is
 
  svn diff URL1@X URL2@Y, i.e.
 
  svn diff http://...trunk.../test.cpp@1 http://...branch.../test.cpp@200
 
 I haven't noticed that issue ... (since it mentions problems after rename),
 but yes, it looks similar and the 'workaround' really works.
 
 I haven't renamed (or moved) that file, I just made a copy of the
 trunk to the 'branches' folder.

Remember that (for now), 'svn mv' == 'svn cp; svn rm'.

So no, you didn't rename the basename of the file, but *you* did
rename/copy the full path to the file, which has the same effect.

The bug here is that

   svn diff -rX:Y foo.c

...very naively follows this algorithm:

  1. foo.c in wc == URL
  2. svn diff URL@X URL@Y

Instead, it should be trying to follow the copy-history of the file
node backwards, so that it discovers that the same foo.c in revision 1
was actually at a different location in the repository. Then it can
compare two different URLs.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:25:12 2006

This is an archived mail posted to the Subversion Dev mailing list.