[PATCH 0 of 2] mq: automatically upgrade to git patch when necessary (issue767)

Patrick Mezard pmezard at gmail.com
Wed Dec 30 11:38:21 CST 2009

First patch introduces an upgrade mode to patch.diff(), which let the caller decide via a callback whether data loss caused by patch format should be tolerated or not.

Second patch uses this upgrade mode in mq so by default patches are automatically upgraded to avoid data loss. This behaviour can be controlled with mq.git option.

v2: Matt requested fine-grained control on the upgrade behaviour so we could, for instance, generate regular patches while receiving data loss warnings.

More information about the Mercurial-devel mailing list