[PATCH] update documentation for URLs to provide more detail on trailing '#'

Mark Edgington edgimar at gmail.com
Fri Jun 5 05:12:17 CDT 2009


# HG changeset patch
# User Mark Edgington <edgimar at gmail.com>
# Date 1244196308 -7200
# Node ID 1d26c51de9a7f40ceaefab894822b9fadcaceaee
# Parent  b5e9ed63913b2d953eb7f6fd704b5e356fa53642
update documentation for URLs to provide more detail on trailing '#'

diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -362,17 +362,18 @@
      _(r'''
     Valid URLs are of the form:
 
-      local/filesystem/path (or file://local/filesystem/path)
-      http://[user[:pass]@]host[:port]/[path]
-      https://[user[:pass]@]host[:port]/[path]
-      ssh://[user[:pass]@]host[:port]/[path]
+      local/filesystem/path[#<identifier>] (or file://local/filesystem/path)
+      http://[user[:pass]@]host[:port]/[path][#<identifier>]
+      https://[user[:pass]@]host[:port]/[path][#<identifier>]
+      ssh://[user[:pass]@]host[:port]/[path][#<identifier>]
 
     Paths in the local filesystem can either point to Mercurial
     repositories or to bundle files (as created by 'hg bundle' or
     'hg incoming --bundle').
 
-    An optional identifier after # indicates a particular branch, tag,
-    or changeset to use from the remote repository.
+    An optional identifier after a trailing # indicates a particular branch,
+    tag, or changeset / bookmark to use when pushing to / pulling from the
+    remote repository.
 
     Some features, such as pushing to http:// and https:// URLs are
     only possible if the feature is explicitly enabled on the remote


More information about the Mercurial-devel mailing list