Show More
@@ -1284,8 +1284,14 b' coreconfigitem(' | |||
|
1284 | 1284 | ) |
|
1285 | 1285 | coreconfigitem( |
|
1286 | 1286 | b'format', |
|
1287 |
b' |
|
|
1288 |
default= |
|
|
1287 | b'dirstate-tracked-key', | |
|
1288 | default=False, | |
|
1289 | experimental=True, | |
|
1290 | ) | |
|
1291 | coreconfigitem( | |
|
1292 | b'format', | |
|
1293 | b'dirstate-tracked-key.version', | |
|
1294 | default=1, | |
|
1289 | 1295 | experimental=True, |
|
1290 | 1296 | ) |
|
1291 | 1297 | coreconfigitem( |
@@ -944,16 +944,13 b' https://www.mercurial-scm.org/wiki/Missi' | |||
|
944 | 944 | |
|
945 | 945 | For a more comprehensive guide, see :hg:`help internals.dirstate-v2`. |
|
946 | 946 | |
|
947 |
`` |
|
|
947 | ``dirstate-tracked-key`` | |
|
948 | 948 | Enable or disable the writing of "tracked key" file alongside the dirstate. |
|
949 | (default to disabled) | |
|
949 | 950 | |
|
950 | 951 | That "tracked-key" can help external automations to detect changes to the |
|
951 | 952 | set of tracked files. |
|
952 | 953 | |
|
953 | Two values are currently supported: | |
|
954 | - 0: no file is written (the default), | |
|
955 | - 1: a file in version "1" is written. | |
|
956 | ||
|
957 | 954 | The tracked-key is written in a new `.hg/dirstate-tracked-key`. That file |
|
958 | 955 | contains two lines: |
|
959 | 956 | - the first line is the file version (currently: 1), |
@@ -3695,14 +3695,12 b' def newreporequirements(ui, createopts):' | |||
|
3695 | 3695 | else: |
|
3696 | 3696 | requirements.add(requirementsmod.SHARED_REQUIREMENT) |
|
3697 | 3697 | |
|
3698 |
|
|
|
3699 | if tracked_key: | |
|
3700 | if tracked_key != 1: | |
|
3701 | msg = _("ignoring unknown tracked key version: %d\n") | |
|
3702 | hint = _( | |
|
3703 | "see `hg help config.format.exp-dirstate-tracked-key-version" | |
|
3704 | ) | |
|
3705 | ui.warn(msg % tracked_key, hint=hint) | |
|
3698 | if ui.configbool(b'format', b'dirstate-tracked-key'): | |
|
3699 | version = ui.configint(b'format', b'dirstate-tracked-key.version') | |
|
3700 | msg = _("ignoring unknown tracked key version: %d\n") | |
|
3701 | hint = _("see `hg help config.format.exp-dirstate-tracked-key-version") | |
|
3702 | if version != 1: | |
|
3703 | ui.warn(msg % version, hint=hint) | |
|
3706 | 3704 | else: |
|
3707 | 3705 | requirements.add(requirementsmod.DIRSTATE_TRACKED_KEY_V1) |
|
3708 | 3706 |
General Comments 0
You need to be logged in to leave comments.
Login now