##// END OF EJS Templates
rebase: don't update state dict same way for each root...
rebase: don't update state dict same way for each root The update statement does not depend on anything in the loop, so just move it before the loop and do it once. There are no cases where update would happen 0 times before (and 1 now); the function returns early in all such cases.

File last commit:

r31628:e86eb75e default
r32175:456b4a32 default
Show More
color.py
31 lines | 933 B | text/x-python | PythonLexer
Jordi GutiƩrrez Hermoso
color: update description of the extension...
r22771 # color.py color output for Mercurial commands
Kevin Christen
Add colored output to status and qseries commands
r5787 #
# Copyright (C) 2007 Kevin Christen <kevin.christen@gmail.com>
#
Augie Fackler
color: Use the same GPL boilerplate as most hg files
r15771 # This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
Kevin Christen
Add colored output to status and qseries commands
r5787
Pierre-Yves David
color: update main documentation...
r31123 '''enable Mercurial color mode (DEPRECATED)
Danek Duvall
color: add some documentation for custom terminfo codes
r30176
Matt Harbison
color: fix grammar in help text
r31628 This extension enables Mercurial color mode. The feature is now directly
Pierre-Yves David
color: update main documentation...
r31123 available in Mercurial core. You can access it using::
Brodie Rao
color: diff colorization...
r7456
Pierre-Yves David
color: update main documentation...
r31123 [ui]
color = auto
Brodie Rao
color: for the sake of "less -R", default to ansi in auto mode (issue2792)...
r14769
Pierre-Yves David
color: update main documentation...
r31123 See :hg:`help color` for details.
Kevin Christen
Add colored output to status and qseries commands
r5787 '''
Pulkit Goyal
py3: make color use absolute_import
r28968 from __future__ import absolute_import
Kevin Christen
Add colored output to status and qseries commands
r5787
Pierre-Yves David
color: update main documentation...
r31123 from mercurial import color
Kevin Christen
Add colored output to status and qseries commands
r5787
Augie Fackler
extensions: change magic "shipped with hg" string...
r29841 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
Augie Fackler
extensions: document that `testedwith = 'internal'` is special...
r25186 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
Augie Fackler
extensions: change magic "shipped with hg" string...
r29841 testedwith = 'ships-with-hg-core'
Augie Fackler
hgext: mark all first-party extensions as such
r16743
Brodie Rao
color: add global option in extsetup() instead of globally...
r12693 def extsetup(ui):
Pierre-Yves David
color: add the definition of '--color' in core...
r31104 # change default color config
Pierre-Yves David
color: add a 'ui.color' option to control color behavior...
r31110 color._enabledbydefault = True