Problems importing SVN repo via git-svnimport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I'm attempting to convert the Subversion repo of my project PythonCAD
(shameless plug http://www.pythoncad.org) into git, and have not had
much luck so far. Yesterday I installed an up-to-date set of SVN::Perl
modules and began trying to do the import.

On my local machine the repo is file:///mnt/src/svnrepo, and the
structure inside is 'pythoncad/trunk', 'pythoncad/branches', and
'pythoncad/tags'. For those playing at home, you can access the
public repo via http://subversion.pythoncad.org:9000/svn and you
should see the same layout. Way back when I started, though, the
initial directory was called 'pycad', and it lasted up through
revision 113, when in revision 114 it became 'pythoncad'. The next
eight or nine revisions involve me moving files around into the
new directory path. I don't remember exactly why I did the rename
right now (it's more than four years ago) but I think it was because I
found other 'pycad' projects/companies on the internet.

So, with 'git-svnimport' I've tried a number of different commands to
pull my data into git, and have only succeeded in getting a log history
into git but none of the actual file data makes it in. In my newly
built git repo I can do 'git log' and read all the checkin comments that
I made using 'svn commit'; git imports this data without problem. My
actual files, however, never appear. I poked around the git-svnimport
code a bit, added a few print statements here and there, and found that
the commit subroutine is failing. Specifically, during the loop where
the actions listed in the log output are scanned (around line 690),
the tests to determine the node_kind are always returning
$SVN::Node::none, not $SVN::Node::file or $SVN::Node::dir, so my
tree never gets populated with files and directories.

I tried importing only the first 114 revisions (the 'pycad' set) with
the following command:

$ git svnimport -C /tmp/pycad.git -l 114 -A authors -T pycad/trunk \
-b pycad/branches -t pycad/tags -v file:///mnt/src/svnrepo /pycad

I've also tried starting at rev 114 and going to the end (the
'pythoncad' set) but the end result is a git repo with a log file but no
file content.

I'm happy to dive into the perl code in svnimport and make changes to
help debug this problem, if there is actually a problem and not user
error on my part. Any help from 'svnimport' experts will be greatly
appreciated. The public repo listed above has the same contents as my
local repo, so feel free to poke around it to see how things are
structured.

Thanks in advance.

Art Haas
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux