comparison mercurial/ui.py @ 22836:5a831e4e6d7a

config: give a more detailed sample repo config Some examples of the typical configurations that one might want to do in an .hg/hgrc file. This includes a default-push that happens to point to the same location as my-fork. I insist on the myfork terminology for a server-side clone. Bitbucket, Github, and others have widely popularised this meaning of "fork". This also includes a gentle nudge to use a repo-specific username, which is something that people might not instinctively realise is an option.
author Jordi Guti?rrez Hermoso <jordigh@octave.org>
date Wed, 08 Oct 2014 07:45:51 -0400
parents 524b786bd54f
children 2be7d5ebd4d0
comparison
equal deleted inserted replaced
22835:8376d76f77dd 22836:5a831e4e6d7a
26 # progress = 26 # progress =
27 # color =""", 27 # color =""",
28 28
29 'local': 29 'local':
30 """# example repository config (see "hg help config" for more info) 30 """# example repository config (see "hg help config" for more info)
31 [paths]
32 # path aliases to other clones of this repo in URLs or filesystem paths
33 # (see "hg help config.paths" for more info)
34 #
35 # default = http://example.com/hg/example-repo
36 # default-push = ssh://jdoe@example.net/hg/jdoes-fork
37 # my-fork = ssh://jdoe@example.net/hg/jdoes-fork
38 # my-clone = /home/jdoe/jdoes-clone
39
40 [ui]
41 # name and email (local to this repository, optional), e.g.
42 # username = Jane Doe <jdoe@example.com>
31 """, 43 """,
32 44
33 'global': 45 'global':
34 """# example system-wide hg config (see "hg help config" for more info) 46 """# example system-wide hg config (see "hg help config" for more info)
35 47