##// END OF EJS Templates
lfs: dedent documentation section about .hglfs file...
Denis Laxalde -
r43597:26caf96a default
parent child Browse files
Show More
@@ -53,31 +53,29 b' locally. Both committing and downloadin'
53 53 file to a usercache, to speed up future access. See the `usercache`
54 54 config setting described below.
55 55
56 .hglfs::
56 The extension reads its configuration from a versioned ``.hglfs``
57 configuration file found in the root of the working directory. The
58 ``.hglfs`` file uses the same syntax as all other Mercurial
59 configuration files. It uses a single section, ``[track]``.
57 60
58 The extension reads its configuration from a versioned ``.hglfs``
59 configuration file found in the root of the working directory. The
60 ``.hglfs`` file uses the same syntax as all other Mercurial
61 configuration files. It uses a single section, ``[track]``.
62
63 The ``[track]`` section specifies which files are stored as LFS (or
64 not). Each line is keyed by a file pattern, with a predicate value.
65 The first file pattern match is used, so put more specific patterns
66 first. The available predicates are ``all()``, ``none()``, and
67 ``size()``. See "hg help filesets.size" for the latter.
61 The ``[track]`` section specifies which files are stored as LFS (or
62 not). Each line is keyed by a file pattern, with a predicate value.
63 The first file pattern match is used, so put more specific patterns
64 first. The available predicates are ``all()``, ``none()``, and
65 ``size()``. See "hg help filesets.size" for the latter.
68 66
69 Example versioned ``.hglfs`` file::
67 Example versioned ``.hglfs`` file::
70 68
71 [track]
72 # No Makefile or python file, anywhere, will be LFS
73 **Makefile = none()
74 **.py = none()
69 [track]
70 # No Makefile or python file, anywhere, will be LFS
71 **Makefile = none()
72 **.py = none()
75 73
76 **.zip = all()
77 **.exe = size(">1MB")
74 **.zip = all()
75 **.exe = size(">1MB")
78 76
79 # Catchall for everything not matched above
80 ** = size(">10MB")
77 # Catchall for everything not matched above
78 ** = size(">10MB")
81 79
82 80 Configs::
83 81
General Comments 0
You need to be logged in to leave comments. Login now