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

[patch] fix peg revision calculation

From: Stefan Kng <tortoisesvn_at_gmail.com>
Date: Wed, 09 Jun 2010 20:39:41 +0200

Hi,

The following script fails with both 1.6.x and trunk:

svnadmin create testrepo
svn co file:///d:/development/svn/svntests/testrepo testwc
cd testwc
echo test > file.txt
svn add file.txt
svn ci -m ""
echo test2 > file.txt
svn ci -m ""
echo test > file2.txt
svn add file2.txt
svn ci -m ""
svn ren file.txt file3.txt
svn ci -m ""
svn cat file3.txt_at_4 -r3

svn: Unable to find repository location for 'file3.txt' in revision 3

Note: if the commits of file2.txt are not done (i.e., there's no
revision between the asked rev and the rename), then it works.

The following patch fixes this issue. But I'm not sure if this is the
correct way to fix this. Maybe someone else can take a look at this and
maybe come up with a better solution?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2010-06-09 20:40:22 CEST

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