[PATCH] add url-encode example for escaping # on file: paths

ziphims ziphims at gmail.com
Fri Nov 18 11:16:28 CST 2011


# HG changeset patch
# User ariel <tedhima at yahoo dot co dot uk>
# Date 1321636550 -25200
# Node ID e1c9f3eab7dad242cf72f3a10dcbfb36bdbf437e
# Parent  25ea33fe7e5cb4f14dd919f50fbdbee376b6bf78
add url-encode example for escaping # on file: paths

diff --git a/mercurial/help/urls.txt b/mercurial/help/urls.txt
--- a/mercurial/help/urls.txt
+++ b/mercurial/help/urls.txt
@@ -12,7 +12,12 @@
 
 An optional identifier after # indicates a particular branch, tag, or
 changeset to use from the remote repository. See also :hg:`help
-revisions`.
+revisions`. If the path to the repository contains # you must
+url-encode it into %23, e.g.::
+
+  file://local/filesystem/%23path/exampleA[#revision]
+  file:../../c%23/exampleB[#revision]
+  file:~/mywork/example-%23C[#revision]
 
 Some features, such as pushing to http:// and https:// URLs are only
 possible if the feature is explicitly enabled on the remote Mercurial


More information about the Mercurial-devel mailing list