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

svn up -r PREV does not work as i would expect

From: Martin Furter <mf_at_rola.ch>
Date: 2003-05-11 20:06:10 CEST

Hi All !

I noticed in a test repos here that 'svn update -r PREV <filename>' did
not tell me the revision number of the previous revision of the file as
'svn log <filename>' shows:

> svn update make.rules
At revision 745.

> svn log make.rules
------------------------------------------------------------------------
rev 743: mf | 2003-05-11 03:26:05 +0200 (Sun, 11 May 2003) | 1 line

bla
------------------------------------------------------------------------
rev 701: mf | 2003-04-07 20:44:54 +0200 (Mon, 07 Apr 2003) | 1 line

added ranlib for OpenBSD.
------------------------------------------------------------------------
....

> svn update -r PREV make.rules
U make.rules
Updated to revision 703.

I would expect that it shows revision number 701 or 742 but not
703. Ofcourse 703 is also correct because it's between 701 and 742.
But i wanted to know why it shows 703 so i looket at the log of the
directory:

> svn log -v .
....
------------------------------------------------------------------------
rev 743: mf | 2003-05-11 03:26:05 +0200 (Sun, 11 May 2003) | 1 line
Changed paths:
   M /trunk/scripts/make.rules

bla
------------------------------------------------------------------------
rev 704: mf | 2003-04-07 21:09:21 +0200 (Mon, 07 Apr 2003) | 1 line
Changed paths:
   M /trunk/scripts/OS/LINUX.bpp
   M /trunk/scripts/OS/RELIANTUNIX_N.bpp
   M /trunk/scripts/OS/SUNOS.bpp
   M /trunk/scripts/OS/export.bpp

added ranlib for OpenBSD.
------------------------------------------------------------------------
rev 701: mf | 2003-04-07 20:44:54 +0200 (Mon, 07 Apr 2003) | 1 line
Changed paths:
   M /trunk/scripts/make.rules

added ranlib for OpenBSD.
------------------------------------------------------------------------
...

So the revision nr it shows is a mix of PREV of the file and PREV of the
directory containing the file.

I made a shell script which shows a similar behaviour but 'svn up -r PREV
file' does not update to the previous revision of the file, only to the
prev of the dir.
The atached script creates a repos, adds some dirs and files and then
shows the output of svn log and svn up -r PREV of one of the files.

I'm using svn-0.22.0 on Debian GNU/Linux x86.

Please CC me, I'm not on the list.

Thanks
Martin

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

Received on Sun May 11 22:27:03 2003

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.