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

svn log output in directory-trees that contain moved sub-trees

From: Matthias Gerstner <Matthias.Gerstner_at_ncp-e.com>
Date: Tue, 30 Oct 2012 17:21:39 +0100

Hello,

I have some trouble wit the logic of the 'svn log' command.

When reorganizing the directory structure in a repository by using 'svn
move' I don't get the desired output from 'svn log' in all
circumstances.

I think this is best demonstrated by this sample script:

---------------------------------------------------
svnadmin create /tmp/repo
svn co file:///tmp/repo /tmp/wc
cd /tmp/wc

svn mkdir --parents ./old/place
echo "some content" >old/place/foobar
svn add ./old/place/foobar
svn ci . -m "initial commit"

svn mkdir --parents ./new/place
svn ci . -m "new structure"

svn move old/place new/place/old
svn ci . -m "migration"

# update directory revisions
svn up

echo -e "\n here I see revision r1, containing 'foobar'\n"
svn log -v

echo -e "\n here again I see revision r1\n"
svn log -v new/place/old

echo -e "\n here no revision r1 is present\n"
svn log -v new
---------------------------------------------------

What I expected was to see all the history about what happened in the
"old/place" directory anywhere in the "new" sub-tree. But this is not
the case.

Can somebody explain to me why this is the case?

I produced this using subversion 1.6.17.

Best regards,

Matthias

--
Matthias Gerstner, Dipl.-Wirtsch.-Inf. (FH)
Entwicklung
NCP engineering GmbH
Dombühler Straße 2, D-90449, Nürnberg
Geschäftsführer Peter Söll, HRB-Nr: 77 86 Nürnberg
E-Mail: Matthias.Gerstner_at_ncp-e.com
Internet: http://www.ncp-e.com

  • application/pgp-signature attachment: stored
Received on 2012-10-31 02:30:07 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.