mercurial/ui.py
changeset 22419 fdfc9faca273
parent 22291 3b39e1522d8f
child 22589 9ab18a912c44
equal deleted inserted replaced
22418:192c798aabee 22419:fdfc9faca273
     7 
     7 
     8 from i18n import _
     8 from i18n import _
     9 import errno, getpass, os, socket, sys, tempfile, traceback
     9 import errno, getpass, os, socket, sys, tempfile, traceback
    10 import config, scmutil, util, error, formatter
    10 import config, scmutil, util, error, formatter
    11 from node import hex
    11 from node import hex
       
    12 
       
    13 samplehgrcs = {
       
    14     'user':
       
    15 """# example user config (see "hg help config" for more info)
       
    16 [ui]
       
    17 # name and email, e.g.
       
    18 # username = Jane Doe <jdoe@example.com>
       
    19 username =
       
    20 
       
    21 [extensions]
       
    22 # uncomment these lines to enable some popular extensions
       
    23 # (see "hg help extensions" for more info)
       
    24 #
       
    25 # pager =
       
    26 # progress =
       
    27 # color =""",
       
    28 
       
    29     'local':
       
    30 """# example repository config (see "hg help config" for more info)
       
    31 """,
       
    32 
       
    33     'global':
       
    34 """# example system-wide hg config (see "hg help config" for more info)
       
    35 
       
    36 [extensions]
       
    37 # uncomment these lines to enable some popular extensions
       
    38 # (see "hg help extensions" for more info)
       
    39 #
       
    40 # blackbox =
       
    41 # progress =
       
    42 # color =
       
    43 # pager =""",
       
    44 }
    12 
    45 
    13 class ui(object):
    46 class ui(object):
    14     def __init__(self, src=None):
    47     def __init__(self, src=None):
    15         # _buffers: used for temporary capture of output
    48         # _buffers: used for temporary capture of output
    16         self._buffers = []
    49         self._buffers = []