[PATCH 3 of 8] ui: add config knob for progressive mode

Matt Mackall mpm at selenic.com
Tue Mar 31 06:42:56 CDT 2015


On Sat, 2015-03-28 at 05:51 -0500, Mathias De Maré wrote:
> # HG changeset patch
> # User Mathias De Maré <mathias.demare at gmail.com>
> # Date 1427227793 -3600
> #      Tue Mar 24 21:09:53 2015 +0100
> # Node ID ea4595977e4e882b7a355e7e7430989cee3ea000
> # Parent  96a2ed2e01ef6033b74becfde0f79d5b61adbf11
> ui: add config knob for progressive mode

> +        self.progressive = False

This would probable be better as a function of the same name.

> @@ -452,6 +456,11 @@
>          '''tell whether section exists in config.'''
>          return section in self._data(untrusted)
>  
> +    def hasconfig(self, section, config, untrusted=False):
> +        '''tell whether config item exists in config.'''
> +        return self.has_section(section, untrusted) \
> +            and config in self._data(untrusted)[section]
> +

You accidentally grew an unused function?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list