hg convert failing on a repo with subrepos
Matt Harbison
mharbison72 at gmail.com
Tue May 8 04:22:19 UTC 2018
On Mon, 07 May 2018 08:56:02 -0400, Svein Seldal <sveinse at seldal.com>
wrote:
> Hi
>
> I'm having a hg repo which I want to run hg convert on. The repo is
> using subrepos with references to repos from hg, svn and git and it has
> largefiles. hg convert fails if .hgsub* is included when running hg
> convert:
I don't think that convert supports subrepos. That said, as long as you
don't do anything that would change the hashes of the subrepos, it should
probably work.
> hg convert -s hg tmp.1-hg -d hg tmp.2-hg --filemap file.map
> --config convert.hg.startrev=5
>
> Attempt 1) With empty file.map, the convertion fails with: "abort:
> data/.hgsubstate.i at 303030303030: no node!"
>
> Attempt 2) I don't really need the hg subrepos functionality intact,
> but I must retain the revision controlled files in order to recreate the
> specific subrepos manually if needed. I then rename the hgsub files:
>
> rename .hgsub .old.hgsub
> rename .hgsubstate .old.hgsubstate
>
> Then it fails even earlier, with "abort: unable to convert merge commit
> since target parents do not merge cleanly". The file listed file failing
> has no relationship with .hgsub.
I've seen weirdness with file map too. I thought it was file drop
related, but maybe it was a rename issue.
What are you trying to do with this conversion?
> Attempt 3) If I completely exclude the subrepo files, then it converts
> fine, but then again the information of the subrepos references are lost.
>
> exclude .hgsub
> exclude .hgsubstate
>
> What can I do to fix or debug this issue? hg verify on a checked out
> clone does not complain on the repo, except for some old subrepos that
> aren't available any more. I'm running hg 4.5.3 from Ubuntu 18.04.
I'm not sure if the missing subrepos would be a problem. You may end up
having to write an extension that tweaks the default convert behavior.
https://www.mercurial-scm.org/wiki/ConvertExtension#Customization
> Best regards,
> Svein
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list