HG:rename tags not removed by hg-git
Augie Fackler
lists at durin42.com
Tue Sep 30 17:13:02 UTC 2014
(mercurial list to bcc, +sid0 and hg-git)
On Tue, Sep 30, 2014 at 10:32 AM, Susan Spencer <susan.spencer at gmail.com> wrote:
> Should the 'HG:rename' tags be transferred from hg to git?
> Git doesn't generate an error message from these tags.
> However, here is my problem with these tags...
>
> My project is converted from hg/bitbucket to git/github to bzr/launchpad.
>
> bzr returns an error message on the HG:rename tags as:
>
> raise UnknownCommitExtra(commit, [item[0] for item in commit.extra])
> bzrlib.plugins.git.errors.UnknownCommitExtra: Unknown extra fields in
> <Commit 56ead206c93f1ed9d6f1d46cbfa2a8e79cdad63c>: ['HG:rename',
> 'HG:rename', 'HG:rename', 'HG:rename', 'HG:rename', 'HG:rename',
> 'HG:rename', 'HG:rename', 'HG:rename', 'HG:rename', 'HG:rename',
> 'HG:rename', 'HG:rename', 'HG:rename', 'HG:rename', 'HG:rename'].
> Import failed
You're probably doing the conversion using a relatively recent hg-git,
which just started storing this data in the hidden metadata section of
git commits. This is (probably) a bzr-git bug wherein they're choking
on metadata fields they don't understand, rather than just preserving
or dropping them as appropriate.
More information about the Mercurial
mailing list