On Jan 25, 2008 8:18 PM, Antoine Pitrou <solipsis_at_pitrou.net> wrote:
> I've observed a very strange behaviour with the "svn log" command.
>
> As you may see, not only the displayed paths are wrong (the changes
> really occurred in /python/branches/py3k/..., but the displayed path
> is /python/trunk/...), but the selection of log entries defies logic:
> they are displayed when /python/ or /python/branches/py3k/PCbuild is
> specified, but not for a directory in between (/python/branches/py3k).
>
> This has been observed with both versions 1.4.2 and 1.4.6 of the SVN
> client. However, I don't know what version the server is using.
>
> Can anyone confirm this is indeed a bug?
It is not a bug, I will explain below.
> $ svn log -v -r 59624 http://svn.python.org/projects/python/branches/py3k/PCbuild
> ------------------------------------------------------------------------
> r59624 | christian.heimes | 2007-12-31 16:18:55 +0100 (Mon, 31 Dec 2007) | 1 line
> Changed paths:
> M /python/trunk/Misc/NEWS
> A /python/trunk/PCbuild (from /python/trunk/PCbuild9:59623)
> M /python/trunk/PCbuild/readme.txt
> D /python/trunk/PCbuild9
>
> Renamed PCBuild9 directory to PCBuild
> ------------------------------------------------------------------------
What this command says is this:
For the path "/python/branches/py3k/PCbuild" as it exists at the
current HEAD revision, show me the changes that were made to it in
r59624. The command traces the history of the path. In r59625, you
can see this transaction:
R /python/branches/py3k/PCbuild (from /python/trunk/PCbuild:59624)
The path was replaced by the path from trunk. So when running svn
log, for all revisions prior to the revision where this was replaced,
you will start to see the history entries for the path it came from.
If you want to see the history of the previous version of this path,
then you need to add a peg revision to the command.
$ svn log -v -r 59624
http://svn.python.org/projects/python/branches/py3k/PCbuild@59624
The book explains peg revisions better.
http://svnbook.red-bean.com/nightly/en/svn.advanced.pegrevs.html
--
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2008-01-26 15:37:22 CET