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