##// END OF EJS Templates
dirstate-tracked-key: update the config value to match latest discussion...
marmoute -
r49623:79a96712 default
parent child Browse files
Show More
@@ -1284,8 +1284,14 b' coreconfigitem('
1284 1284 )
1285 1285 coreconfigitem(
1286 1286 b'format',
1287 b'exp-dirstate-tracked-key-version',
1288 default=0,
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 ``exp-dirstate-tracked-key-version``
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 tracked_key = ui.configint(b'format', b'exp-dirstate-tracked-key-version')
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
@@ -1599,7 +1599,7 b' Separate sections from subsections'
1599 1599
1600 1600 "use-dirstate-v2"
1601 1601
1602 "exp-dirstate-tracked-key-version"
1602 "dirstate-tracked-key"
1603 1603
1604 1604 "use-persistent-nodemap"
1605 1605
@@ -9,7 +9,7 b' basic setup'
9 9
10 10 $ cat << EOF >> $HGRCPATH
11 11 > [format]
12 > exp-dirstate-tracked-key-version=1
12 > dirstate-tracked-key=yes
13 13 > EOF
14 14
15 15 $ hg init tracked-key-test
General Comments 0
You need to be logged in to leave comments. Login now