comparison hgext/color.py @ 9206:c1a1b49221e3

color: use reST syntax for literal block
author Martin Geisler <mg@lazybytes.net>
date Thu, 23 Jul 2009 00:22:35 +0200
parents 07788bbb35e4
children acfbb88c6ced
comparison
equal deleted inserted replaced
9205:83132980e9cd 9206:c1a1b49221e3
26 Other effects in addition to color, like bold and underlined text, are also 26 Other effects in addition to color, like bold and underlined text, are also
27 available. Effects are rendered with the ECMA-48 SGR control function (aka 27 available. Effects are rendered with the ECMA-48 SGR control function (aka
28 ANSI escape codes). This module also provides the render_text function, which 28 ANSI escape codes). This module also provides the render_text function, which
29 can be used to add effects to any text. 29 can be used to add effects to any text.
30 30
31 Default effects may be overridden from the .hgrc file: 31 Default effects may be overridden from the .hgrc file::
32 32
33 [color] 33 [color]
34 status.modified = blue bold underline red_background 34 status.modified = blue bold underline red_background
35 status.added = green bold 35 status.added = green bold
36 status.removed = red bold blue_background 36 status.removed = red bold blue_background
37 status.deleted = cyan bold underline 37 status.deleted = cyan bold underline
38 status.unknown = magenta bold underline 38 status.unknown = magenta bold underline
39 status.ignored = black bold 39 status.ignored = black bold
40 40
41 # 'none' turns off all effects 41 # 'none' turns off all effects
42 status.clean = none 42 status.clean = none
43 status.copied = none 43 status.copied = none
44 44
45 qseries.applied = blue bold underline 45 qseries.applied = blue bold underline
46 qseries.unapplied = black bold 46 qseries.unapplied = black bold
47 qseries.missing = red bold 47 qseries.missing = red bold
48 48
49 diff.diffline = bold 49 diff.diffline = bold
50 diff.extended = cyan bold 50 diff.extended = cyan bold
51 diff.file_a = red bold 51 diff.file_a = red bold
52 diff.file_b = green bold 52 diff.file_b = green bold
53 diff.hunk = magenta 53 diff.hunk = magenta
54 diff.deleted = red 54 diff.deleted = red
55 diff.inserted = green 55 diff.inserted = green
56 diff.changed = white 56 diff.changed = white
57 diff.trailingwhitespace = bold red_background 57 diff.trailingwhitespace = bold red_background
58 ''' 58 '''
59 59
60 import os, sys 60 import os, sys
61 61
62 from mercurial import cmdutil, commands, extensions, error 62 from mercurial import cmdutil, commands, extensions, error