[RFC] Store Message-Id for mimported patches

Martin Geisler mg at aragost.com
Thu Apr 26 02:12:57 CDT 2012


"Yann E. MORIN" <yann.morin.1998 at free.fr> writes:

> 1) (ab)use 'extra' fields to store the message-id

I just want to note that we've made a small extension for JavaHg that
can inject data into the extra dict:

  https://bitbucket.org/aragost/javahg/src/tip/src/main/resources/javahg.py

It adds a --javahg-extra flag to 'hg commit' so that you can do

  hg commit --javahg-extra foo=bar

We've used it for handling cases where graft will trigger what we call a
"keep/delete conflict" or a "flag conflict". We run graft with
--noninteractive and in that case, we need to rollback the dummy commit
graft made so that we can ask the user what to do. We then recreate the
graft changeset with the correct source entry in the extra dict.

-- 
Martin Geisler

aragost Trifork
Commercial Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial-devel mailing list