Re: [BUG] git-svn not following svn moves
- From
- cho <tobutaz@gmail.com>
- Date
- Oct 18, 2007, 13:11 UTC
- Message-ID
- <ff7m2j$2eu$2@ger.gmane.org>
- In-Reply-To
- <20071018121328.GA5358@xp.machine.xx>
Le Thu, 18 Oct 2007 14:13:28 +0200, Peter Baumann a écrit :
> Any chance you could provide a testcase which is similar to what > happened in your private repo so that the problem could be reproduced > here?
I've surprised myself but yes, there is a simple testcase.
svnadmin create repo svn checkout file://$PWD/repo checkout cd checkout/ svn mkdir trunk tags branches svn ci -m 'Standard svn layout.' cd trunk/ svn mkdir doc touch doc/README svn add doc/README svn ci -m 'Add README.' cd .. svn mv trunk/ branches/oldtrunk svn ci -m 'Moved trunk.' svn mkdir trunk svn ci -m 'New trunk.' cd trunk/ touch THIS_IS_THE_NEW_TRUNK svn add THIS_IS_THE_NEW_TRUNK svn ci -m 'Add marker.' cd ../.. git svn clone file://$PWD/repo --stdlayout git-clone cd git-clone/ tree
So the testcase basically involves moving the trunk. git-svn gets very confused and keeps a mixture of the old and new trunk.