[PATCH V2] config: give a more detailed sample repo config

Jordi Gutiérrez Hermoso jordigh at octave.org
Fri Oct 3 15:21:15 CDT 2014

# HG changeset patch
# User Jordi Gutiérrez Hermoso <jordigh at octave.org>
# Date 1412353066 14400
#      Fri Oct 03 12:17:46 2014 -0400
# Node ID eb4d20b10e17135d8b2402f23af8e0b6797297c9
# Parent  9f9ba0dcf5fdcc9978db7fdbd909916f0c35e4a6
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".

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -28,6 +28,14 @@ username =
 """# example repository config (see "hg help config" for more info)
+# path aliases to other clones of this repo in URLs or filesystem paths
+# (see "paths" in "hg help config")
+# default      = http://example.com/hg/example-repo
+# default-push = ssh://jdoe@example.net/hg/jdoes-fork
+# my-fork      = ssh://jdoe@example.net/hg/jdoes-fork
+# my-clone     = /home/jdoe/jdoes-clone

More information about the Mercurial-devel mailing list