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

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

From: <kfogel_at_collab.net>
Date: 2003-05-11 21:54:24 CEST

Huh. That *is* kind of odd, though not a huge problem. Can you file
an issue describing this? It may end up in Post-1.0, but it would be
good to have it recorded (also in case this turns out to be the
symptom of something more serious).

Thanks for pointing it out...

-K

Martin Furter <mf@rola.ch> writes:
> 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

---------------------------------------------------------------------
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:36:53 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.