[PATCH 2 of 3] config: give a more detailed sample repo config

Jordi Gutiérrez Hermoso jordigh at octave.org
Sun Aug 24 18:51:36 CDT 2014


# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh at octave.org>
# Date 1408923803 14400
#      Sun Aug 24 19:43:23 2014 -0400
# Node ID 12718916f03b4a917609ecf41bb8d93fbd1024ca
# Parent  cfec84ed3d8f5b9877f48ec079eb0583b51f56ad
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.

I insist on the myfork terminology for a server-side clone. Bitbucket,
Github, and others have widely popularised this meaning of "fork".

diff --git a/mercurial/config.py b/mercurial/config.py
--- a/mercurial/config.py
+++ b/mercurial/config.py
@@ -27,7 +27,12 @@ username =
 
     'local':
 """# example repository config (see "hg help config" for more info)
-""",
+
+[paths]
+# path aliases to other clones of this repo in URLs or filesystem paths
+# default = http://example.com/hg/example-repo
+# myfork  = ssh://jdoe@example.net/hg/jdoes-fork
+# myclone = /home/jdoe/jdoes-clone""",
 
     'global':
 """# example system-wide hg config (see "hg help config" for more info)


More information about the Mercurial-devel mailing list