changeset 17685:8fcef9614150

help: add example of paths other than default in hgrc
author Juan Pablo Carbajal (desktop) <carbajal@ifi.uzh.ch>
date Sat, 29 Sep 2012 13:41:02 +0200
parents 16ec37411db5
children 6e4b962600a3
files mercurial/help/config.txt
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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``
 ----------