comparison mercurial/ui.py @ 22837:2be7d5ebd4d0

config: use the same hgrc for a cloned repo as for an uninitted repo This just copies the same local sample hgrc, except it sets the default path to the repo it was cloned from. This is cut-and-paste from the local sample hgrc, but I think it's acceptable, since the two pieces of code are right next to each other and they're small. There is danger of them going out of synch, but it would complicate the code too much to get rid of this C&P. I also add ui as an import to hg.py, but with demandimport, this should not be a noticeable performance hit.
author Jordi Guti?rrez Hermoso <jordigh@octave.org>
date Mon, 06 Oct 2014 16:35:02 -0400
parents 5a831e4e6d7a
children 5ba11ab48fcf
comparison
equal deleted inserted replaced
22836:5a831e4e6d7a 22837:2be7d5ebd4d0
23 # (see "hg help extensions" for more info) 23 # (see "hg help extensions" for more info)
24 # 24 #
25 # pager = 25 # pager =
26 # progress = 26 # progress =
27 # color =""", 27 # color =""",
28
29 'cloned':
30 """# example repository config (see "hg help config" for more info)
31 [paths]
32 default = %s
33
34 # path aliases to other clones of this repo in URLs or filesystem paths
35 # (see "hg help config.paths" for more info)
36 #
37 # default-push = ssh://jdoe@example.net/hg/jdoes-fork
38 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork
39 # my-clone = /home/jdoe/jdoes-clone
40
41 [ui]
42 # name and email (local to this repository, optional), e.g.
43 # username = Jane Doe <jdoe@example.com>
44 """,
28 45
29 'local': 46 'local':
30 """# example repository config (see "hg help config" for more info) 47 """# example repository config (see "hg help config" for more info)
31 [paths] 48 [paths]
32 # path aliases to other clones of this repo in URLs or filesystem paths 49 # path aliases to other clones of this repo in URLs or filesystem paths