Discussion:
svnlook tree seems to disregard revision...
Bo Berglund
2017-12-21 23:34:27 UTC
Permalink
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.
--
Bo Berglund
Developer in Sweden
Johan Corveleyn
2017-12-21 23:59:14 UTC
Permalink
Post by Bo Berglund
I am trying to understand how to use svnlook so I am testing it on the
command line on my Win7 PC.
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)?
$ 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
Loading...