hg-git
hg-git copied to clipboard
hg push to bare git repo errors with "ValueError: need more than 1 value to unpack" in parse_hgsub
I am trying to convert a repository from hg to git using hggit. I setup an empty bare git repo with git init --bare .git
, I setup a bookmark for my branch in the source repo hg bookmark -r default master
, then from the source repo I ran: hg push -r master ..\repo-git
.
This then errors with this callstack:
** Unknown exception encountered with possibly-broken third-party extension hggit
** which supports versions 4.7 of Mercurial.
** Please disable hggit and try your action again.
** If that fixes the bug please report it to https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 4.8.2)
** Extensions loaded: histedit, shelve, hggit, convert, extdiff, fetch, graphlog, strip, mq, churn, hgk, patchbomb, rebase, record, eol
Traceback (most recent call last):
File "hg", line 50, in
I've been through this process with a bunch of other repos, so there must be something about this repo that it is unable to parse? By the looks of the callstack something in the .hgsub? It looks like it is splitting lines in the hgsub on =, and it must have encountered a line that it couldn't split?
The .hgsub on master's tip only has folder=[git]https://url...
lines in it. But versions earlier in the history of the repo did have a [subpaths]
section. Other than that though nothing strange is jumping out at me.
Any ideas what I should look into or how to work around it?