[PATCH] help: add example of paths other than default in hgrc

Juan Pablo Carbajal ajuanpi at gmail.com
Sat Sep 29 08:03:50 CDT 2012


# HG changeset patch
# User Juan Pablo Carbajal (desktop) <carbajal at ifi.uzh.ch>
# Date 1348918862 -7200
# Node ID 3aeee3b16dc3139f40e5a12f891e5a1ff43a5669
# Parent  858ac9ad24fc2d0be5914ed94758612bd2553cc7
help: add example of paths other than default in hgrc

diff -r 858ac9ad24fc -r 3aeee3b16dc3 mercurial/help/config.txt
--- a/mercurial/help/config.txt	Sat Sep 29 13:34:37 2012 +0200
+++ b/mercurial/help/config.txt	Sat Sep 29 13:41:02 2012 +0200
@@ -923,6 +923,17 @@
     Optional. Directory or URL to use when pushing if no destination
     is specified.
 
+Custom paths can be defined by assigning the path to a name that later can be
+used from the command line. Example::
+
+    [paths]
+    my_path = http://example.com/path
+
+To push to the path defined in ``my_path`` run the command::
+
+    hg push my_path
+
+
 ``phases``
 ----------
 


More information about the Mercurial-devel mailing list