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

Re: Usage for svn list

From: Felix Gilcher <felix.gilcher_at_bitextender.com>
Date: Tue, 26 Jan 2010 10:48:43 +0100

Hi Tim,

you seem to be confused about Peg revisions, you could read about them here: http://svnbook.red-bean.com/en/1.5/svn.advanced.pegrevs.html

In short, a peg revions (@2, @HEAD, ...) denotes that the item you're looking for can be found at the specified path at the specified revision. So

svn list -r2 file:///var/tmp/svn-repo/a_at_r4

translates to "show me the list in revision 2 for the directory that's named "a" in revision 4. Peg revisions can be implied and usually default to "BASE" which is the working copy revision. A peg revision must be a revision number and cannot be a date, but as above, you can combine peg revisions and the -r parameter.

Hope that answers your questions.

felix

On Jan 26, 2010, at 2:26 AM, Tim Landscheidt wrote:

> Hi,
>
> I'm a bit baffled by the following behaviour on a small test
> repository where in r2 the directory a and file a/b exist
> and are deleted in HEAD/r4:
>
> | [tim_at_passepartout ~]$ svn --version
> | svn, version 1.6.6 (r40053)
> | compiled Nov 8 2009, 13:09:20
> | [...]
> | [tim_at_passepartout ~]$ svn list file:///var/tmp/svn-repo
> | [tim_at_passepartout ~]$ svn list -r r2 file:///var/tmp/svn-repo
> | a/
> | [tim_at_passepartout ~]$ svn list -r r2 file:///var/tmp/svn-repo/a
> | svn: File not found: revision 4, path '/a'
> | [tim_at_passepartout ~]$ svn list file:///var/tmp/svn-repo/a_at_r2
> | b
> | [tim_at_passepartout ~]$
>
> "svn help list" shows "-r" as a valid option, but apparently
> it is only honoured in a directory that is existent in HEAD
> as well? Is there a way to express the '-r {DATE}' syntax
> with the "@" suffix? "@{2009-01-01}" seems to be ignored:
>
> | [tim_at_passepartout ~]$ svn list 'file:///var/tmp/svn-repo/a@{2009-01-26}'
> | svn: URL 'file:///var/tmp/svn-repo/a' non-existent in that revision
> | [tim_at_passepartout ~]$
>
> TIA,
> Tim
>
>

--
Felix Gilcher
Bitextender GmbH
Paul-Heyse-Str. 6
D-80336 München
felix.gilcher_at_bitextender.com
http://www.bitextender.com/
Amtsgericht München, HRB 174280
Geschäftsführer: David Zülke, Florian Clever
Received on 2010-01-26 10:49:22 CET

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