{"thread":{"id":"9289","subject":"conversion from svn with renames","startedAt":"2007-07-29T12:23:01Z","lastAt":"2007-11-16T03:49:22Z","messageCount":3,"participants":["Ricardo SIGNES","Väinö Järvelä"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"48984","messageId":"20070729122301.GA17016@knight.manxome.org","threadId":"9289","inReplyTo":null,"subject":"conversion from svn with renames","fromName":"Ricardo SIGNES","fromEmail":"rjbs@cpan.org","sentAt":"2007-07-29T12:23:01Z","receivedAt":"2007-07-29T12:23:01Z","isPatch":false,"sender":{"key":"rjbs@cpan.org","avatar":null},"body":"\nI'd like to convert svn.codesimply.com/projects' contents to git.\n\nRight now, the content is like this:\n\n  /projects/$PROJECTNAME/{trunk,tags,branches}\n\ngit-svnimport does well if I specify projects/$PROJECTNAME/trunk as the trunk\ndirectory and that/tags as the tags directory.  (I am not interested in\nbothering with branches.)  The problem is this:\n\nFor many of the projects, $PROJECTNAME was once \"foo\" and is now \"bar.\"\ngit-svnimport only imports the history from the current name.\n\nI tried to import foo, then bar, into one git repostiory, but the histories\ndidn't seem to get connected.  Sam V. suggested git-filter-branch, but I didn't\nquite see how to make it do what I wanted.\n\nI would greatly appreciate any advice or help on this conversion.\n\n-- \nrjbs\n"},{"id":"60047","messageId":"D5A64E6F-D80B-4FCD-8184-F53812D4312E@pp.inet.fi","threadId":"9289","inReplyTo":"20070729122301.GA17016@knight.manxome.org","subject":"Re: conversion from svn with renames","fromName":"Väinö Järvelä","fromEmail":"v@pp.inet.fi","sentAt":"2007-11-16T03:16:38Z","receivedAt":"2007-11-16T03:16:38Z","isPatch":false,"sender":{"key":"v@pp.inet.fi","avatar":null},"body":"Hi,\n\nI tried importing an SVN project with svn-import, and the project had  \nbeen renamed once. It seems that git-svn is more mature tool for this,  \neven if svn-import seems to be the one to use. If I remember  \ncorrectly, there was even talk about this very same case in the  \nmailing list archives.\n\nTo make a complete conversion from SVN repository to GIT repositories,  \njust use --no-metadata option to remove all the metadata git-svn  \nnormally appends to the commit messages. There will also be some cruft  \nin the .git/config file, I removed those, and have had an working  \nimport with renames from SVN.\n\n--\nVäinö\n\nOn Jul 29, 2007, at 15:23, Ricardo SIGNES wrote:\n\n>\n> I'd like to convert svn.codesimply.com/projects' contents to git.\n>\n> Right now, the content is like this:\n>\n> /projects/$PROJECTNAME/{trunk,tags,branches}\n>\n> git-svnimport does well if I specify projects/$PROJECTNAME/trunk as  \n> the trunk\n> directory and that/tags as the tags directory.  (I am not interested  \n> in\n> bothering with branches.)  The problem is this:\n>\n> For many of the projects, $PROJECTNAME was once \"foo\" and is now  \n> \"bar.\"\n> git-svnimport only imports the history from the current name.\n>\n> I tried to import foo, then bar, into one git repostiory, but the  \n> histories\n> didn't seem to get connected.  Sam V. suggested git-filter-branch,  \n> but I didn't\n> quite see how to make it do what I wanted.\n>\n> I would greatly appreciate any advice or help on this conversion.\n>\n> -- \n> rjbs\n> -\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"},{"id":"60048","messageId":"AFD16773-F585-43B1-878C-3CD4A54A26FB@pp.inet.fi","threadId":"9289","inReplyTo":"D5A64E6F-D80B-4FCD-8184-F53812D4312E@pp.inet.fi","subject":"Re: conversion from svn with renames","fromName":"Väinö Järvelä","fromEmail":"v@pp.inet.fi","sentAt":"2007-11-16T03:49:22Z","receivedAt":"2007-11-16T03:49:22Z","isPatch":false,"sender":{"key":"v@pp.inet.fi","avatar":null},"body":"Eh, sorry for replying to a old post, I had accidentally had my mail  \nsorted in reverse. I hope the post was still useful.\n\n--\nVäinö\n\nOn Nov 16, 2007, at 05:16, Väinö Järvelä wrote:\n\n> Hi,\n>\n> I tried importing an SVN project with svn-import, and the project  \n> had been renamed once. It seems that git-svn is more mature tool for  \n> this, even if svn-import seems to be the one to use. If I remember  \n> correctly, there was even talk about this very same case in the  \n> mailing list archives.\n>\n> To make a complete conversion from SVN repository to GIT  \n> repositories, just use --no-metadata option to remove all the  \n> metadata git-svn normally appends to the commit messages. There will  \n> also be some cruft in the .git/config file, I removed those, and  \n> have had an working import with renames from SVN.\n>\n> --\n> Väinö\n>\n> On Jul 29, 2007, at 15:23, Ricardo SIGNES wrote:\n>\n>>\n>> I'd like to convert svn.codesimply.com/projects' contents to git.\n>>\n>> Right now, the content is like this:\n>>\n>> /projects/$PROJECTNAME/{trunk,tags,branches}\n>>\n>> git-svnimport does well if I specify projects/$PROJECTNAME/trunk as  \n>> the trunk\n>> directory and that/tags as the tags directory.  (I am not  \n>> interested in\n>> bothering with branches.)  The problem is this:\n>>\n>> For many of the projects, $PROJECTNAME was once \"foo\" and is now  \n>> \"bar.\"\n>> git-svnimport only imports the history from the current name.\n>>\n>> I tried to import foo, then bar, into one git repostiory, but the  \n>> histories\n>> didn't seem to get connected.  Sam V. suggested git-filter-branch,  \n>> but I didn't\n>> quite see how to make it do what I wanted.\n>>\n>> I would greatly appreciate any advice or help on this conversion.\n>>\n>> -- \n>> rjbs\n>> -\n>> To unsubscribe from this list: send the line \"unsubscribe git\" in\n>> the body of a message to majordomo@vger.kernel.org\n>> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n> -\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n"}]}