From patchwork Sun Aug 24 23:51:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [2,of,3] config: give a more detailed sample repo config From: =?utf-8?q?Jordi_Guti=C3=A9rrez_Hermoso?= X-Patchwork-Id: 5582 Message-Id: <12718916f03b4a917609.1408924296@Iris> To: mercurial-devel@selenic.com Date: Sun, 24 Aug 2014 19:51:36 -0400 # HG changeset patch # User Jordi GutiƩrrez Hermoso # 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)