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

Re: svnlook tree seems to disregard revision...

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Fri, 22 Dec 2017 00:59:14 +0100

On Fri, Dec 22, 2017 at 12:34 AM, Bo Berglund <bo.berglund_at_gmail.com> wrote:
> I am trying to understand how to use svnlook so I am testing it on the
> command line on my Win7 PC.
> Look at this:
>
> D:\>C:\Programs\Subversion\svnlook tree -r 773 D:\SVN\bosse
> XMLTV/trunk/ --show-ids --full-paths
> XMLTV/trunk/ <5-729.0.r773/27>
> XMLTV/trunk/ConfigXMLTV2Mei.dof <2-735.0.r766/31>
> XMLTV/trunk/ConfigXMLTV2Mei.dpr <5-735.0.r735/17>
> XMLTV/trunk/ConfigXMLTV2Mei.exe <7-735.0.r766/32>
> XMLTV/trunk/ConfigXMLTV2Mei.res <9-735.0.r766/33>
> XMLTV/trunk/Data/ <2-730.0.r745/4>
> XMLTV/trunk/Data/Boxer_TV_Access_LCN.html <4-730.0.r730/23>
> XMLTV/trunk/Data/GetEPG.bat <7-730.0.r730/24>
>
> Notice that files are listed that do not belong to r773, in fact it
> seems not to matter at all which revision number I use, the output
> stays the same. Only the first line seems to be associated to r773
>
> Is this a bug or is the documentation wrong (SvnBook 1.7)?
> It says on page 372:
>
> This shows the tree output for revision 13 in our sample repository:
> $ svnlook tree -r 13 /var/svn/repos
>
> What gives here?
> I expected *only* to see the files changed by r773.

'svnlook tree' shows you the entire tree precisely as it is in r773.
In Subversion, every revision is like a new snapshot of the entire
repository tree. With 'svnlook tree' you can see (part of) that tree,
as it existed in that particular revision.

If you want to see the items that were changed in r773 you have to use
'svnlook changed'

[[[
$ svnlook help changed
changed: usage: svnlook changed REPOS_PATH

Print the paths that were changed.

Valid options:
  -r [--revision] ARG : specify revision number ARG
  -t [--transaction] ARG : specify transaction name ARG
  --copy-info : show details for copies
]]]

-- 
Johan
Received on 2017-12-22 00:59:39 CET

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

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