##// END OF EJS Templates
sparse: move config parsing into core...
sparse: move config parsing into core This patch marks the beginning of moving code from the sparse extension into core. The goal is to move as much of the functionality as possible into core, where it will be an experimental feature. The extension will likely continue to exist to enable the feature and provide UI elements. As part of the move, the repo method was converted to a module function. It doesn't need to exist on repos. An error message was also updated to reflect that an error isn't necessarily from the .hg/sparse file. The API should be updated later to pass in a filename so the error can be more descriptive. Copyright of the added file was copied from the sparse extension.

File last commit:

r31628:e86eb75e default
r33297:ba5d8977 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