##// END OF EJS Templates
tests: duplicate test for pager for old extension and for in-core pager...
tests: duplicate test for pager for old extension and for in-core pager When the old pager extension is enabled, I think we should try to be as BC as reasonable. To help with that, this patch brings back test-pager.t as of 65a3b4d67a65 (pager: add a test of --pager=no functionality, 2017-02-06), but under the name test-pager-legacy.t However, since the behavior has changed in a few cases (notably by no longer respecting pager.attend), the file is modified to work with the current version. We will recover some lost BC in coming patches. Also, to make sure the in-core pager does not depend on the pager extension being enabled, this patch disables the extension in test-pager.t. It turns out that pager.attend-$cmd was only supported when the pager extension was enabled, so the tests are updated to reflect that. We will need to decide what to do with these.

File last commit:

r31123:df0a0734 default
r31405:d5eb2093 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
Pierre-Yves David
color: update main documentation...
r31123 This extensions enable Mercurial color mode. The feature is now directly
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