help: add example of paths other than default in hgrc
authorJuan Pablo Carbajal (desktop) <carbajal@ifi.uzh.ch>
Sat, 29 Sep 2012 13:41:02 +0200
changeset 17685 8fcef9614150
parent 17680 16ec37411db5
child 17686 6e4b962600a3
help: add example of paths other than default in hgrc
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``
 ----------