"hg convert" with git submodules?

Ian Dees undees at gmail.com
Sat Apr 12 11:57:27 CDT 2008


Hi, all.

I'm seeing an interesting glitch with conversion from a git repo that
has submodules:

git clone --bare git://github.com/dchelimsky/rspec-dev.git
hg convert rspec-dev

...many commits later...

27 Remove rspec, rspec_on_rails and RSpec.tmbundle, which are each
moving to their own repos.
26 Added rspec, rspec-rails and RSpec.tmbundle submodules
fatal: git-cat-file 4571eb02c9420737c3adf6bb25a7af8b968ba129: bad file
fatal: git-cat-file 085c3e4963f4dc1a75000589d02d1759822e7786: bad file
fatal: git-cat-file 8a296b0d27e5e0ac44545ca5ece6d4b5b4f77dcd: bad file

Several other failures of this type follow in the remaining 26 steps.
Hand-checking of a few of the problem steps reveals that they all seem
to be submodule-related changes.  Here's an excerpt from the first one
that failed (http://github.com/dchelimsky/rspec-dev/commit/bf0849d563796458af559efe875660f645e361c9):

RSpec.tmbundle
@@ -0,0 +1 @@
+Subproject commit 4571eb02c9420737c3adf6bb25a7af8b968ba129

RSpec.tmbundle is a directory; perhaps the conversion routine is
treating it as a file when it sees this diff?

Anyway, my question is: is this a bug in the converter, a glitch in
the original repository/history, or pilot error on my part?

Thanks in advance for your advice...

--Ian


More information about the Mercurial mailing list