[PATCH] "escape" .hg/hgrc in command doc strings for asciidoc (#1072)

Christian Ebert blacktrash at gmx.net
Thu Apr 3 06:12:58 CDT 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1207221128 -7200
# Node ID ebcbb901378edf57a750d8c5dd9c191efe6f5fe2
# Parent  da752414978770dd8aaa8f4303eac98563e4555d
"escape" .hg/hgrc in command doc strings for asciidoc (#1072)

.hg/hgrc at beginning of line screws up hg(1), issue 1072.

For consistency with the fixes in me1c1ef561d541, ba40e267762b
this patch uses repo/.hg/hgrc

Other workaround possibilities:
- rewrap, so .hg/hgrc is not at bol
- possibly quoting ".hg/hgrc" would work

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -497,7 +497,7 @@
     basename of the source.
 
     The location of the source is added to the new repository's
-    .hg/hgrc file, as the default to be used for future pulls.
+    repo/.hg/hgrc file, as the default to be used for future pulls.
 
     For efficiency, hardlinks are used for cloning whenever the source
     and destination are on the same filesystem (note this applies only
@@ -523,7 +523,7 @@
     See pull for valid source format details.
 
     It is possible to specify an ssh:// URL as the destination, but no
-    .hg/hgrc and working directory will be created on the remote side.
+    repo/.hg/hgrc and working directory will be created on the remote side.
     Look at the help text for the pull command for important details
     about ssh:// URLs.
     """
@@ -1973,7 +1973,7 @@
     definition of available names.
 
     Path names are defined in the [paths] section of /etc/mercurial/hgrc
-    and $HOME/.hgrc. If run inside a repository, .hg/hgrc is used, too.
+    and $HOME/.hgrc. If run inside a repository, repo/.hg/hgrc is used, too.
     """
     if search:
         for name, path in ui.configitems("paths"):


More information about the Mercurial-devel mailing list