{"thread":{"id":"8325","subject":"Problems importing SVN repo via git-svnimport","startedAt":"2007-05-26T12:55:53Z","lastAt":"2007-05-26T15:34:43Z","messageCount":4,"participants":["Art Haas","Frank Lichtenheld"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"43345","messageId":"20070526125553.GC10324@artsapartment.org","threadId":"8325","inReplyTo":null,"subject":"Problems importing SVN repo via git-svnimport","fromName":"Art Haas","fromEmail":"ahaas@airmail.net","sentAt":"2007-05-26T12:55:53Z","receivedAt":"2007-05-26T12:55:53Z","isPatch":false,"sender":{"key":"ahaas@airmail.net","avatar":null},"body":"Hi.\n\nI'm attempting to convert the Subversion repo of my project PythonCAD\n(shameless plug http://www.pythoncad.org) into git, and have not had\nmuch luck so far. Yesterday I installed an up-to-date set of SVN::Perl\nmodules and began trying to do the import.\n\nOn my local machine the repo is file:///mnt/src/svnrepo, and the\nstructure inside is 'pythoncad/trunk', 'pythoncad/branches', and\n'pythoncad/tags'. For those playing at home, you can access the\npublic repo via http://subversion.pythoncad.org:9000/svn and you\nshould see the same layout. Way back when I started, though, the\ninitial directory was called 'pycad', and it lasted up through\nrevision 113, when in revision 114 it became 'pythoncad'. The next\neight or nine revisions involve me moving files around into the\nnew directory path. I don't remember exactly why I did the rename\nright now (it's more than four years ago) but I think it was because I\nfound other 'pycad' projects/companies on the internet.\n\nSo, with 'git-svnimport' I've tried a number of different commands to\npull my data into git, and have only succeeded in getting a log history\ninto git but none of the actual file data makes it in. In my newly\nbuilt git repo I can do 'git log' and read all the checkin comments that\nI made using 'svn commit'; git imports this data without problem. My\nactual files, however, never appear. I poked around the git-svnimport\ncode a bit, added a few print statements here and there, and found that\nthe commit subroutine is failing. Specifically, during the loop where\nthe actions listed in the log output are scanned (around line 690),\nthe tests to determine the node_kind are always returning\n$SVN::Node::none, not $SVN::Node::file or $SVN::Node::dir, so my\ntree never gets populated with files and directories.\n\nI tried importing only the first 114 revisions (the 'pycad' set) with\nthe following command:\n\n$ git svnimport -C /tmp/pycad.git -l 114 -A authors -T pycad/trunk \\\n-b pycad/branches -t pycad/tags -v file:///mnt/src/svnrepo /pycad\n\nI've also tried starting at rev 114 and going to the end (the\n'pythoncad' set) but the end result is a git repo with a log file but no\nfile content.\n\nI'm happy to dive into the perl code in svnimport and make changes to\nhelp debug this problem, if there is actually a problem and not user\nerror on my part. Any help from 'svnimport' experts will be greatly\nappreciated. The public repo listed above has the same contents as my\nlocal repo, so feel free to poke around it to see how things are\nstructured.\n\nThanks in advance.\n\nArt Haas\n-- \nMan once surrendering his reason, has no remaining guard against absurdities\nthe most monstrous, and like a ship without rudder, is the sport of every wind.\n\n-Thomas Jefferson to James Smith, 1822\n"},{"id":"43346","messageId":"20070526130643.GA2674@planck.djpig.de","threadId":"8325","inReplyTo":"20070526125553.GC10324@artsapartment.org","subject":"Re: Problems importing SVN repo via git-svnimport","fromName":"Frank Lichtenheld","fromEmail":"frank@lichtenheld.de","sentAt":"2007-05-26T13:06:43Z","receivedAt":"2007-05-26T13:06:43Z","isPatch":false,"sender":{"key":"frank@lichtenheld.de","avatar":"https://gravatar.com/avatar/b9f1d4b120e138f157c9e480d0818197c474628923786adb98f30017cdb99c3c?d=mp&s=160"},"body":"On Sat, May 26, 2007 at 07:55:53AM -0500, Art Haas wrote:\n> I'm happy to dive into the perl code in svnimport and make changes to\n> help debug this problem, if there is actually a problem and not user\n> error on my part. Any help from 'svnimport' experts will be greatly\n> appreciated. The public repo listed above has the same contents as my\n> local repo, so feel free to poke around it to see how things are\n> structured.\n\nYou might want to try git-svn instead. It should support everything you\ncan do with git-svnimport and much more. Plus it is actively maintained\nwhich I wouldn't say about git-svnimport.\n\nGruesse,\n-- \nFrank Lichtenheld <frank@lichtenheld.de>\nwww: http://www.djpig.de/\n"},{"id":"43350","messageId":"20070526151046.GA2239@artsapartment.org","threadId":"8325","inReplyTo":"20070526130643.GA2674@planck.djpig.de","subject":"Re: Problems importing SVN repo via git-svnimport","fromName":"Art Haas","fromEmail":"ahaas@airmail.net","sentAt":"2007-05-26T15:10:46Z","receivedAt":"2007-05-26T15:10:46Z","isPatch":false,"sender":{"key":"ahaas@airmail.net","avatar":null},"body":"On Sat, May 26, 2007 at 03:06:43PM +0200, Frank Lichtenheld wrote:\n> On Sat, May 26, 2007 at 07:55:53AM -0500, Art Haas wrote:\n> > I'm happy to dive into the perl code in svnimport and make changes to\n> > help debug this problem, if there is actually a problem and not user\n> > error on my part. Any help from 'svnimport' experts will be greatly\n> > appreciated. The public repo listed above has the same contents as my\n> > local repo, so feel free to poke around it to see how things are\n> > structured.\n> \n> You might want to try git-svn instead. It should support everything you\n> can do with git-svnimport and much more. Plus it is actively maintained\n> which I wouldn't say about git-svnimport.\n\nHi.\n\nThe git-svn docs say that it serves as a bi-directionaly gateway\nbetween git and svn, but that the main repo is a Subversion repository.\nMy goal with the PythonCAD repo is to convert it so that the main\nrepository is in git, and then I'm going to try to use git-svn to\npush my changes into the now-secondary Subversion repo. This way, I can\nmake a distributed git repo available to developers wanting to\ncontribute to PythonCAD, plus keep the developers currently using\nSubversion from having to make any changes if they either don't want to\nor are unable to (i.e. windows developers/users).\n\nIs git-svnimport maintenence on the wane?\n\nArt Haas\n\nOfftopic P.S.: Anyone know of a git mirror of the GCC repo, or do people\nuse git-svn to access that code via git?\n-- \nMan once surrendering his reason, has no remaining guard against absurdities\nthe most monstrous, and like a ship without rudder, is the sport of every wind.\n\n-Thomas Jefferson to James Smith, 1822\n"},{"id":"43352","messageId":"20070526153443.GC2674@planck.djpig.de","threadId":"8325","inReplyTo":"20070526151046.GA2239@artsapartment.org","subject":"Re: Problems importing SVN repo via git-svnimport","fromName":"Frank Lichtenheld","fromEmail":"frank@lichtenheld.de","sentAt":"2007-05-26T15:34:43Z","receivedAt":"2007-05-26T15:34:43Z","isPatch":false,"sender":{"key":"frank@lichtenheld.de","avatar":"https://gravatar.com/avatar/b9f1d4b120e138f157c9e480d0818197c474628923786adb98f30017cdb99c3c?d=mp&s=160"},"body":"On Sat, May 26, 2007 at 10:10:46AM -0500, Art Haas wrote:\n> On Sat, May 26, 2007 at 03:06:43PM +0200, Frank Lichtenheld wrote:\n> > On Sat, May 26, 2007 at 07:55:53AM -0500, Art Haas wrote:\n> > > I'm happy to dive into the perl code in svnimport and make changes to\n> > > help debug this problem, if there is actually a problem and not user\n> > > error on my part. Any help from 'svnimport' experts will be greatly\n> > > appreciated. The public repo listed above has the same contents as my\n> > > local repo, so feel free to poke around it to see how things are\n> > > structured.\n> > \n> > You might want to try git-svn instead. It should support everything you\n> > can do with git-svnimport and much more. Plus it is actively maintained\n> > which I wouldn't say about git-svnimport.\n> \n> Hi.\n> \n> The git-svn docs say that it serves as a bi-directionaly gateway\n\nIt can be happily used for one-time imports, too. You might want to\nuse some options like the authors file and perhaps --no-metadata.\nCan't say much about the rest of your plans since I'm no git-svn\nexpert. I have only ever used it for one-time imports so far.\n\n> between git and svn, but that the main repo is a Subversion repository.\n> My goal with the PythonCAD repo is to convert it so that the main\n> repository is in git, and then I'm going to try to use git-svn to\n> push my changes into the now-secondary Subversion repo. This way, I can\n> make a distributed git repo available to developers wanting to\n> contribute to PythonCAD, plus keep the developers currently using\n> Subversion from having to make any changes if they either don't want to\n> or are unable to (i.e. windows developers/users).\n> \n> Is git-svnimport maintenence on the wane?\n\nSearch the archive of the last month for posts on git-svnimport...\nIIRC there was one typo fix and one thread about a problem with it\nthat ended in the question wether it should be removed.\n\nGruesse,\n-- \nFrank Lichtenheld <frank@lichtenheld.de>\nwww: http://www.djpig.de/\n"}]}