[PATCH] doc: Add back quotes around filenames

Javi Merino cibervicho at gmail.com
Sat Feb 5 08:02:02 CST 2011


# HG changeset patch
# User Javi Merino <cibervicho at gmail.com>
# Date 1296914374 0
# Branch stable
# Node ID 26c674a6ee2627764705bfb89f027fdf369ba652
# Parent  259760fb51f780817bc76d0a27036428abd49da4
doc: Add back quotes around filenames

Filenames starting with a dot (.hg and .hgignore) confuse man when
creating the ps documentation with "man -t hg >hg.ps" if they are not
enclosed in back quotes.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -58,7 +58,7 @@ def addremove(ui, repo, *pats, **opts):
     repository.
 
     New files are ignored if they match any of the patterns in
-    .hgignore. As with add, these changes take effect at the next
+    ``.hgignore``. As with add, these changes take effect at the next
     commit.
 
     Use the -s/--similarity option to detect renamed files. With a
@@ -670,12 +670,12 @@ def clone(ui, source, dest=None, **opts)
     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.
+    ``.hg/hgrc`` file, as the default to be used for future pulls.
 
     See :hg:`help urls` 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.
+    ``.hg/hgrc`` and working directory will be created on the remote side.
     Please see :hg:`help urls` for important details about ``ssh://`` URLs.
 
     A set of changesets (tags, or branch names) to pull may be specified


More information about the Mercurial-devel mailing list