cosmin / git-hg

A git-hg utility for checking out and tracking a mercurial repo.
http://offbytwo.github.com/git-hg
MIT License
307 stars 51 forks source link

git hg push requires the convert extension #26

Closed wRAR closed 12 years ago

wRAR commented 12 years ago

If the convert mercurial extension is not enabled (and it is not enabled by default), git hg push (which calls hg convert) will fail with a message hg: unknown command 'convert'. As changing the user configuration is not an option, at least some user-friendly messages could be added (if it is possible to detect whether the extension is enabled).

djpohly commented 12 years ago

You could override the user configuration temporarily:

hg --config extensions.convert= convert . .git/hgcheckout

Would there be a problem there?

wRAR commented 12 years ago

I'm not that familiar with mercurial to point out any problems if they exist so I don't have objections to this.

djpohly commented 12 years ago

Neither am I... I'd guess git-hg users are mostly git people. :) Anyway, I've tacked this onto my pending pull request.

cosmin commented 12 years ago

close as part of a previous pull request