[PATCH 4 of 6 V2] ui: add ui.statuscopies to progressive mode
Matt Mackall
mpm at selenic.com
Wed Apr 8 19:34:10 UTC 2015
On Tue, 2015-04-07 at 21:00 +0200, mathias.demare at gmail.com wrote:
> # HG changeset patch
> # User Mathias De Maré <mathias.demare at gmail.com>
> # Date 1427229699 -3600
> # Tue Mar 24 21:41:39 2015 +0100
> # Node ID 44f6145dde0d844a019c968a6bc5eeddadec533e
> # Parent 29f1d521db03dea5d14aa4d3cbd6705e038849d5
> ui: add ui.statuscopies to progressive mode
>
> diff -r 29f1d521db03 -r 44f6145dde0d mercurial/ui.py
> --- a/mercurial/ui.py Mon Apr 06 21:34:43 2015 +0200
> +++ b/mercurial/ui.py Tue Mar 24 21:41:39 2015 +0100
> @@ -483,6 +483,9 @@
> if not self.progressive():
> return
>
> + if not self.hasconfig('ui', 'statuscopies'):
> + self.setconfig('ui', 'statuscopies', 'True')
We should generally try to avoid this setconfig hack. Here, this
probably wants to just be a ui.progressive() check in status.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list