schacon / hg-git

mercurial to git bridge, pushed to directly from the hg-git plugin in Hg
GNU General Public License v2.0
620 stars 71 forks source link

'HG:rename' in git repo #286

Closed slspencer closed 9 years ago

slspencer commented 9 years ago

This issue may be related to, but not exactly the same as, issue #261

I have a project repo that uses hg imported into git, then git imported into bzr. After renaming some files, the import from git to bzr now returns this error message:

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:

Perhaps hg-git leaves in non-git info. And bzr-git creates errors on the non-git info, which is what bzr-git should do.

Any help you can provide would be appreciated, My Ubuntu app can't be built with latest code until this is resolved.

durin42 commented 9 years ago

This is a bzr-git bug, not an hg-git bug, as already explained on the mailing list. Please go talk to them about not choking on metadata fields they don't understand.

slspencer commented 9 years ago

lol The bzr-git people sent me to you to look into this problem. Thanks.

sunshowers commented 9 years ago

Do you have a link to your discussion with the bzr-git folks? I'm the one who implemented these extra fields, and I'm happy to defend the design choice here.