[Updated] D10372: help: document the `path://` url scheme
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Apr 15 00:38:46 UTC 2021
Closed by commit rHG95a5ed7db9ca: help: document the `path://` url scheme (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10372?vs=26825&id=26890
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10372/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10372
AFFECTED FILES
mercurial/helptext/config.txt
mercurial/helptext/urls.txt
tests/test-help.t
CHANGE DETAILS
diff --git a/tests/test-help.t b/tests/test-help.t
--- a/tests/test-help.t
+++ b/tests/test-help.t
@@ -1842,6 +1842,9 @@
my_server = https://example.com/my_path
my_server:pushurl = ssh://example.com/my_path
+ Paths using the 'path://otherpath' scheme will inherit the sub-options
+ value from the path they point to.
+
The following sub-options can be defined:
"pushurl"
diff --git a/mercurial/helptext/urls.txt b/mercurial/helptext/urls.txt
--- a/mercurial/helptext/urls.txt
+++ b/mercurial/helptext/urls.txt
@@ -5,6 +5,7 @@
http://[user[:pass]@]host[:port]/[path][#revision]
https://[user[:pass]@]host[:port]/[path][#revision]
ssh://[user@]host[:port]/[path][#revision]
+ path://pathname
Paths in the local filesystem can either point to Mercurial
repositories or to bundle files (as created by :hg:`bundle` or
@@ -64,3 +65,12 @@
default-push:
The push command will look for a path named 'default-push', and
prefer it over 'default' if both are defined.
+
+These alias can also be use in the `path://` scheme::
+
+ [paths]
+ alias1 = URL1
+ alias2 = path://alias1
+ ...
+
+check :hg:`help config.paths` for details about the behavior of such "sub-path".
diff --git a/mercurial/helptext/config.txt b/mercurial/helptext/config.txt
--- a/mercurial/helptext/config.txt
+++ b/mercurial/helptext/config.txt
@@ -1712,6 +1712,9 @@
my_server = https://example.com/my_path
my_server:pushurl = ssh://example.com/my_path
+Paths using the `path://otherpath` scheme will inherit the sub-options value from
+the path they point to.
+
The following sub-options can be defined:
``pushurl``
To: marmoute, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210415/d9e478ba/attachment-0002.html>
More information about the Mercurial-patches
mailing list