Skip to content
Snippets Groups Projects
Commit 26caf96a5fa9 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

lfs: dedent documentation section about .hglfs file

The leading ".hglfs::" is interpreted as a macro in generated man page
and, as it is unknown, the whole section does not render. Also, having
the section marked as preformatted (::) makes it render verbatim in
HTML, which is not desired as the text contains formatting markers. So
we just dedent the section and remove the ".hglfs::" line. The example
file is still indented and rendered preformatted.
parent f0a2c1972e81
No related branches found
No related tags found
No related merge requests found
......@@ -53,5 +53,8 @@
file to a usercache, to speed up future access. See the `usercache`
config setting described below.
.hglfs::
The extension reads its configuration from a versioned ``.hglfs``
configuration file found in the root of the working directory. The
``.hglfs`` file uses the same syntax as all other Mercurial
configuration files. It uses a single section, ``[track]``.
......@@ -57,12 +60,7 @@
The extension reads its configuration from a versioned ``.hglfs``
configuration file found in the root of the working directory. The
``.hglfs`` file uses the same syntax as all other Mercurial
configuration files. It uses a single section, ``[track]``.
The ``[track]`` section specifies which files are stored as LFS (or
not). Each line is keyed by a file pattern, with a predicate value.
The first file pattern match is used, so put more specific patterns
first. The available predicates are ``all()``, ``none()``, and
``size()``. See "hg help filesets.size" for the latter.
The ``[track]`` section specifies which files are stored as LFS (or
not). Each line is keyed by a file pattern, with a predicate value.
The first file pattern match is used, so put more specific patterns
first. The available predicates are ``all()``, ``none()``, and
``size()``. See "hg help filesets.size" for the latter.
......@@ -68,3 +66,3 @@
Example versioned ``.hglfs`` file::
Example versioned ``.hglfs`` file::
......@@ -70,6 +68,6 @@
[track]
# No Makefile or python file, anywhere, will be LFS
**Makefile = none()
**.py = none()
[track]
# No Makefile or python file, anywhere, will be LFS
**Makefile = none()
**.py = none()
......@@ -75,4 +73,4 @@
**.zip = all()
**.exe = size(">1MB")
**.zip = all()
**.exe = size(">1MB")
......@@ -78,6 +76,6 @@
# Catchall for everything not matched above
** = size(">10MB")
# Catchall for everything not matched above
** = size(">10MB")
Configs::
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment