{"thread":{"id":"9998","subject":"Problem importing a subversion repository with git-svnimport","startedAt":"2007-09-24T16:49:41Z","lastAt":"2007-09-24T16:49:41Z","messageCount":1,"participants":["Guillaume Chazarain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"53933","messageId":"20070924184941.0d771306@cheypa.inria.fr","threadId":"9998","inReplyTo":null,"subject":"Problem importing a subversion repository with git-svnimport","fromName":"Guillaume Chazarain","fromEmail":"guichaz@yahoo.fr","sentAt":"2007-09-24T16:49:41Z","receivedAt":"2007-09-24T16:49:41Z","isPatch":false,"sender":{"key":"guichaz@yahoo.fr","avatar":null},"body":"Hello,\n\nHere is a simple testcase illustrating a conversion problem between\nsubversion and git. git-svn handles it fine, but git-svnimport keeps\nstuff in the checkout that shouldn't be there.\n\n# git --version => git version 1.5.3.2.99.ge4b2\n# svn --version | head -n 1 => svn, version 1.4.3 (r23084)\n\nmkdir test-svn\ncd test-svn\nsvnadmin create svn-repo\nsvn co file://$PWD/svn-repo svn-check-out\ncd svn-check-out\nmkdir trunk branches tags\nsvn add *\nsvn ci -m 'SVN dirs'\ncd trunk\nmkdir -p a/b/c/d\necho A > a/A\necho B > a/b/B\necho C > a/b/c/C\necho D > a/b/c/d/D\nsvn add a\nsvn ci -m 'Add some data'\nsvn mv a/b .\nsvn rm b/c\nsvn ci -m 'Some shuffling around'\nls -R\ncd ../..\nmkdir git-repo\ncd git-repo\ngit-svnimport file://$PWD/../svn-repo\nls -R\n\nAfter the subversion manipulations, the svn checkout only contains the\ndirectories a/ b/ with their respective files A and B.\n\nThe checkout from git-svnimport contains these elements, but also the\nfull c/ directory in b/.\n\nHope the testcase is clear enough ;-)\n\n-- \nGuillaume\n"}]}