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

Thomas Arendsen Hein thomas at intevation.de
Tue Dec 29 14:06:28 CST 2009


* Patrick Mezard <pmezard at gmail.com> [20091229 20:59]:
> +By default, mq will automatically use git patches when required to
> +avoid losing changes to file modes, copy records or binary files. This
> +behaviour can configured with:
> +
> +  [mq]
> +  git = auto/keep/no
> +
> +If set to 'keep', mq will obey the [diff] section configuration while
> +preserving existing git patches upon qrefresh. If set to 'no', mq will
> +override the [diff] section and generate regular patches, possibly
> +discarding data.

This is nearly perfect, just one thing should be added:

If set to 'yes', mq will ignore the [diff] section and always
generate git patches.

(with this there should never be a performance penalty for
generating the patch twice, correct?)

Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list