I tried this for converting a couple private repositories, and many worked fine.
But for a couple otherwise unremarkable ones, I get:
Traceback (most recent call last):
File ".../fast-export/hg-fast-export.py", line 739, in <module>
sys.exit(hg2git(options.repourl,m,options.marksfile,options.mappingfile,
~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
options.headsfile, options.statusfile,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
first_commit_hash=options.first_commit_hash,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
plugins=plugins_dict))
^^^^^^^^^^^^^^^^^^^^^
File ".../fast-export/hg-fast-export.py", line 556, in hg2git
if not verify_heads(ui,repo,heads_cache,force,ignore_unnamed_heads,branchesmap):
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../fast-export/hg-fast-export.py", line 494, in verify_heads
branches[bn] = branchtip(repo, heads)
~~~~~~~~~^^^^^^^^^^^^^
File ".../fast-export/hg-fast-export.py", line 482, in branchtip
tip = heads[-1]
~~~~~^^^^
IndexError: list index out of range
fast-import statistics:
---------------------------------------------------------------------
Alloc'd objects: 5000
Total objects: 0 ( 0 duplicates )
blobs : 0 ( 0 duplicates 0 deltas of 0 attempts)
trees : 0 ( 0 duplicates 0 deltas of 0 attempts)
commits: 0 ( 0 duplicates 0 deltas of 0 attempts)
tags : 0 ( 0 duplicates 0 deltas of 0 attempts)
Total branches: 0 ( 0 loads )
marks: 1024 ( 0 unique )
atoms: 0
Memory total: 2399 KiB
pools: 2048 KiB
objects: 351 KiB
---------------------------------------------------------------------
pack_report: getpagesize() = 4096
pack_report: core.packedGitWindowSize = 0
pack_report: core.packedGitLimit = 0
pack_report: pack_used_ctr = 0
pack_report: pack_mmap_calls = 0
pack_report: pack_open_windows = 0 / 0
pack_report: pack_mapped = 0 / 0
---------------------------------------------------------------------
The particular repository has one open branch ('master') and two closed ones. The open branch has the newest commit.
I tried this for converting a couple private repositories, and many worked fine.
But for a couple otherwise unremarkable ones, I get:
The particular repository has one open branch ('master') and two closed ones. The open branch has the newest commit.