##// END OF EJS Templates
format: add pattern filtering to debugformat...
marmoute -
r53354:8dede0df default
parent child Browse files
Show More
@@ -1625,12 +1625,20 def debug_repair_issue6528(ui, repo, **o
1625 )
1625 )
1626
1626
1627
1627
1628 @command(b'debugformat', [] + cmdutil.formatteropts)
1628 @command(
1629 def debugformat(ui, repo, **opts):
1629 b'debugformat',
1630 [] + cmdutil.formatteropts,
1631 b'[PATTERN] ... [PATTERN]',
1632 )
1633 def debugformat(ui, repo, *patterns, **opts):
1630 """display format information about the current repository
1634 """display format information about the current repository
1631
1635
1632 Use --verbose to get extra information about current config value and
1636 Use --verbose to get extra information about current config value and
1633 Mercurial default."""
1637 Mercurial default.
1638
1639 If patterns are specified, only format matching at least one of these
1640 pattern will be displayed.
1641 """
1634 maxvariantlength = max(len(fv.name) for fv in upgrade.allformatvariant)
1642 maxvariantlength = max(len(fv.name) for fv in upgrade.allformatvariant)
1635 maxvariantlength = max(len(b'format-variant'), maxvariantlength)
1643 maxvariantlength = max(len(b'format-variant'), maxvariantlength)
1636
1644
@@ -1658,6 +1666,14 def debugformat(ui, repo, **opts):
1658 fm.plain(b' config default')
1666 fm.plain(b' config default')
1659 fm.plain(b'\n')
1667 fm.plain(b'\n')
1660 for fv in upgrade.allformatvariant:
1668 for fv in upgrade.allformatvariant:
1669 if patterns:
1670 for p in patterns:
1671 # XXX support "re:" at some point
1672 if p in fv.name:
1673 break
1674 else:
1675 # no pattern matches, continue
1676 continue
1661 fm.startitem()
1677 fm.startitem()
1662 repovalue = fv.fromrepo(repo)
1678 repovalue = fv.fromrepo(repo)
1663 configvalue = fv.fromconfig(repo)
1679 configvalue = fv.fromconfig(repo)
@@ -1649,7 +1649,8 We upgrade a repository that is not usin
1649 > [format]
1649 > [format]
1650 > exp-use-copies-side-data-changeset = yes
1650 > exp-use-copies-side-data-changeset = yes
1651 > EOF
1651 > EOF
1652 $ hg debugformat -v | grep -E 'changelog-v2|revlog-v2|copies-sdc'
1652 $ hg debugformat -v changelog-v2 revlog-v2 copies-sdc
1653 format-variant repo config default
1653 copies-sdc: no yes no
1654 copies-sdc: no yes no
1654 revlog-v2: no no no
1655 revlog-v2: no no no
1655 changelog-v2: no yes no
1656 changelog-v2: no yes no
@@ -1675,7 +1676,8 We upgrade a repository that is not usin
1675 > enabled=yes
1676 > enabled=yes
1676 > numcpus=8
1677 > numcpus=8
1677 > EOF
1678 > EOF
1678 $ hg debugformat -v | grep -E 'changelog-v2|revlog-v2|copies-sdc'
1679 $ hg debugformat -v changelog-v2 revlog-v2 copies-sdc
1680 format-variant repo config default
1679 copies-sdc: no yes no
1681 copies-sdc: no yes no
1680 revlog-v2: no no no
1682 revlog-v2: no no no
1681 changelog-v2: no yes no
1683 changelog-v2: no yes no
@@ -32,13 +32,13 Check that copies are recorded correctly
32 $ hg init repo
32 $ hg init repo
33 $ cd repo
33 $ cd repo
34 #if sidedata
34 #if sidedata
35 $ hg debugformat -v | grep -E 'format-variant|revlog-v2|copies-sdc|changelog-v2'
35 $ hg debugformat -v format-variant revlog-v2 copies-sdc changelog-v2
36 format-variant repo config default
36 format-variant repo config default
37 copies-sdc: yes yes no
37 copies-sdc: yes yes no
38 revlog-v2: no no no
38 revlog-v2: no no no
39 changelog-v2: yes yes no
39 changelog-v2: yes yes no
40 #else
40 #else
41 $ hg debugformat -v | grep -E 'format-variant|revlog-v2|copies-sdc|changelog-v2'
41 $ hg debugformat -v format-variant revlog-v2 copies-sdc changelog-v2
42 format-variant repo config default
42 format-variant repo config default
43 copies-sdc: no no no
43 copies-sdc: no no no
44 revlog-v2: no no no
44 revlog-v2: no no no
@@ -419,7 +419,7 Test upgrading/downgrading to sidedata s
419
419
420 downgrading
420 downgrading
421
421
422 $ hg debugformat -v | grep -E 'format-variant|revlog-v2|copies-sdc|changelog-v2'
422 $ hg debugformat -v format-variant revlog-v2 copies-sdc changelog-v2
423 format-variant repo config default
423 format-variant repo config default
424 copies-sdc: yes yes no
424 copies-sdc: yes yes no
425 revlog-v2: no no no
425 revlog-v2: no no no
@@ -445,7 +445,7 downgrading
445 processed revlogs:
445 processed revlogs:
446 - changelog
446 - changelog
447
447
448 $ hg debugformat -v | grep -E 'format-variant|revlog-v2|copies-sdc|changelog-v2'
448 $ hg debugformat -v format-variant revlog-v2 copies-sdc changelog-v2
449 format-variant repo config default
449 format-variant repo config default
450 copies-sdc: no no no
450 copies-sdc: no no no
451 revlog-v2: no no no
451 revlog-v2: no no no
@@ -470,7 +470,7 upgrading
470 processed revlogs:
470 processed revlogs:
471 - changelog
471 - changelog
472
472
473 $ hg debugformat -v | grep -E 'format-variant|revlog-v2|copies-sdc|changelog-v2'
473 $ hg debugformat -v format-variant revlog-v2 copies-sdc changelog-v2
474 format-variant repo config default
474 format-variant repo config default
475 copies-sdc: yes yes no
475 copies-sdc: yes yes no
476 revlog-v2: no no no
476 revlog-v2: no no no
@@ -615,10 +615,12 read/write patterns.
615 $ hg share race-repo ./other-wc --config format.use-share-safe=yes
615 $ hg share race-repo ./other-wc --config format.use-share-safe=yes
616 updating working directory
616 updating working directory
617 5001 files updated, 0 files merged, 0 files removed, 0 files unresolved
617 5001 files updated, 0 files merged, 0 files removed, 0 files unresolved
618 $ hg debugformat -R ./race-repo | grep -E 'share-safe|persistent-nodemap'
618 $ hg debugformat -R ./race-repo share-safe persistent-nodemap
619 format-variant repo
619 share-safe: yes
620 share-safe: yes
620 persistent-nodemap: yes
621 persistent-nodemap: yes
621 $ hg debugformat -R ./other-wc/ | grep -E 'share-safe|persistent-nodemap'
622 $ hg debugformat -R ./other-wc/ share-safe persistent-nodemap
623 format-variant repo
622 share-safe: yes
624 share-safe: yes
623 persistent-nodemap: yes
625 persistent-nodemap: yes
624 $ hg -R ./other-wc update 'min(head())'
626 $ hg -R ./other-wc update 'min(head())'
@@ -19,7 +19,8 Create a modern server with an older clo
19 $ hg init server
19 $ hg init server
20
20
21 $ hg clone --quiet --pull server client --config format.usegeneraldelta=no
21 $ hg clone --quiet --pull server client --config format.usegeneraldelta=no
22 $ hg debugformat -R client | grep generaldelta
22 $ hg debugformat -R client generaldelta
23 format-variant repo
23 generaldelta: no
24 generaldelta: no
24
25
25 Create some complexe history
26 Create some complexe history
@@ -334,7 +334,8 Even if requested to be used, some of th
334 > --config format.usegeneraldelta=no \
334 > --config format.usegeneraldelta=no \
335 > --config format.sparse-revlog=no \
335 > --config format.sparse-revlog=no \
336 > local-forced-full-p1-no-gd
336 > local-forced-full-p1-no-gd
337 $ hg debugformat -R local-forced-full-p1-no-gd | grep generaldelta
337 $ hg debugformat -R local-forced-full-p1-no-gd generaldelta
338 format-variant repo
338 generaldelta: no
339 generaldelta: no
339 $ hg -R local-forced-full-p1-no-gd pull --quiet local-pre-pull-full \
340 $ hg -R local-forced-full-p1-no-gd pull --quiet local-pre-pull-full \
340 > --config debug.revlog.debug-delta=no
341 > --config debug.revlog.debug-delta=no
@@ -631,7 +631,8 create an initial repository
631 $ hg debugbuilddag -R auto-upgrade --new-file .+5
631 $ hg debugbuilddag -R auto-upgrade --new-file .+5
632 $ hg -R auto-upgrade update
632 $ hg -R auto-upgrade update
633 6 files updated, 0 files merged, 0 files removed, 0 files unresolved
633 6 files updated, 0 files merged, 0 files removed, 0 files unresolved
634 $ hg debugformat -R auto-upgrade | grep share-safe
634 $ hg debugformat -R auto-upgrade share-safe
635 format-variant repo
635 share-safe: no
636 share-safe: no
636
637
637 upgrade it to share-safe automatically
638 upgrade it to share-safe automatically
@@ -641,7 +642,8 upgrade it to share-safe automatically
641 > --config format.use-share-safe=yes
642 > --config format.use-share-safe=yes
642 automatically upgrading repository to the `share-safe` feature
643 automatically upgrading repository to the `share-safe` feature
643 (see `hg help config.format.use-share-safe` for details)
644 (see `hg help config.format.use-share-safe` for details)
644 $ hg debugformat -R auto-upgrade | grep share-safe
645 $ hg debugformat -R auto-upgrade share-safe
646 format-variant repo
645 share-safe: yes
647 share-safe: yes
646
648
647 downgrade it from share-safe automatically
649 downgrade it from share-safe automatically
@@ -651,5 +653,6 downgrade it from share-safe automatical
651 > --config format.use-share-safe=no
653 > --config format.use-share-safe=no
652 automatically downgrading repository from the `share-safe` feature
654 automatically downgrading repository from the `share-safe` feature
653 (see `hg help config.format.use-share-safe` for details)
655 (see `hg help config.format.use-share-safe` for details)
654 $ hg debugformat -R auto-upgrade | grep share-safe
656 $ hg debugformat -R auto-upgrade share-safe
657 format-variant repo
655 share-safe: no
658 share-safe: no
@@ -295,11 +295,13 Check that (safe) share can control wc-s
295 #endif
295 #endif
296
296
297 $ hg init repo-safe-d1 --config format.use-share-safe=yes --config format.exp-rc-dirstate-v2=no
297 $ hg init repo-safe-d1 --config format.use-share-safe=yes --config format.exp-rc-dirstate-v2=no
298 $ hg debugformat -R repo-safe-d1 | grep dirstate-v2
298 $ hg debugformat -R repo-safe-d1 dirstate-v2
299 format-variant repo
299 dirstate-v2: no
300 dirstate-v2: no
300
301
301 $ hg share repo-safe-d1 share-safe-d2 --config format.use-share-safe=yes --config format.exp-rc-dirstate-v2=yes
302 $ hg share repo-safe-d1 share-safe-d2 --config format.use-share-safe=yes --config format.exp-rc-dirstate-v2=yes
302 updating working directory
303 updating working directory
303 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
304 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
304 $ hg debugformat -R share-safe-d2 | grep dirstate-v2
305 $ hg debugformat -R share-safe-d2 dirstate-v2
306 format-variant repo
305 dirstate-v2: yes
307 dirstate-v2: yes
@@ -61,10 +61,12 Check that we can upgrade to sidedata
61 -------------------------------------
61 -------------------------------------
62
62
63 $ hg init up-no-side-data --config experimental.revlogv2=no
63 $ hg init up-no-side-data --config experimental.revlogv2=no
64 $ hg debugformat -v -R up-no-side-data | grep -E 'changelog-v2|revlog-v2'
64 $ hg debugformat -v -R up-no-side-data changelog-v2 revlog-v2
65 format-variant repo config default
65 revlog-v2: no no no
66 revlog-v2: no no no
66 changelog-v2: no no no
67 changelog-v2: no no no
67 $ hg debugformat -v -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data | grep -E 'changelog-v2|revlog-v2'
68 $ hg debugformat -v -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data changelog-v2 revlog-v2
69 format-variant repo config default
68 revlog-v2: no yes no
70 revlog-v2: no yes no
69 changelog-v2: no no no
71 changelog-v2: no no no
70 $ hg debugupgraderepo -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data > /dev/null
72 $ hg debugupgraderepo -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data > /dev/null
@@ -73,10 +75,12 Check that we can downgrade from sidedat
73 -----------------------------------------
75 -----------------------------------------
74
76
75 $ hg init up-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
77 $ hg init up-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
76 $ hg debugformat -v -R up-side-data | grep -E 'changelog-v2|revlog-v2'
78 $ hg debugformat -v -R up-side-data changelog-v2 revlog-v2
79 format-variant repo config default
77 revlog-v2: yes no no
80 revlog-v2: yes no no
78 changelog-v2: no no no
81 changelog-v2: no no no
79 $ hg debugformat -v -R up-side-data --config experimental.revlogv2=no | grep -E 'changelog-v2|revlog-v2'
82 $ hg debugformat -v -R up-side-data --config experimental.revlogv2=no changelog-v2 revlog-v2
83 format-variant repo config default
80 revlog-v2: yes no no
84 revlog-v2: yes no no
81 changelog-v2: no no no
85 changelog-v2: no no no
82 $ hg debugupgraderepo -R up-side-data --config experimental.revlogv2=no > /dev/null
86 $ hg debugupgraderepo -R up-side-data --config experimental.revlogv2=no > /dev/null
@@ -211,7 +211,8 create an initial repository
211 $ hg debugbuilddag -R auto-upgrade --new-file .+5
211 $ hg debugbuilddag -R auto-upgrade --new-file .+5
212 $ hg -R auto-upgrade update
212 $ hg -R auto-upgrade update
213 6 files updated, 0 files merged, 0 files removed, 0 files unresolved
213 6 files updated, 0 files merged, 0 files removed, 0 files unresolved
214 $ hg debugformat -R auto-upgrade | grep tracked
214 $ hg debugformat -R auto-upgrade tracked-hint
215 format-variant repo
215 tracked-hint: no
216 tracked-hint: no
216
217
217 upgrade it to dirstate-tracked-hint automatically
218 upgrade it to dirstate-tracked-hint automatically
@@ -221,7 +222,8 upgrade it to dirstate-tracked-hint auto
221 > --config format.use-dirstate-tracked-hint=yes
222 > --config format.use-dirstate-tracked-hint=yes
222 automatically upgrading repository to the `tracked-hint` feature
223 automatically upgrading repository to the `tracked-hint` feature
223 (see `hg help config.format.use-dirstate-tracked-hint` for details)
224 (see `hg help config.format.use-dirstate-tracked-hint` for details)
224 $ hg debugformat -R auto-upgrade | grep tracked
225 $ hg debugformat -R auto-upgrade tracked-hint
226 format-variant repo
225 tracked-hint: yes
227 tracked-hint: yes
226
228
227 rhg supports this feature
229 rhg supports this feature
@@ -236,5 +238,6 downgrade it from dirstate-tracked-hint
236 > --config format.use-dirstate-tracked-hint=no
238 > --config format.use-dirstate-tracked-hint=no
237 automatically downgrading repository from the `tracked-hint` feature
239 automatically downgrading repository from the `tracked-hint` feature
238 (see `hg help config.format.use-dirstate-tracked-hint` for details)
240 (see `hg help config.format.use-dirstate-tracked-hint` for details)
239 $ hg debugformat -R auto-upgrade | grep tracked
241 $ hg debugformat -R auto-upgrade tracked
242 format-variant repo
240 tracked-hint: no
243 tracked-hint: no
@@ -61,9 +61,11 Unless the action is compatible with sha
61
61
62 no revlogs to process
62 no revlogs to process
63
63
64 $ hg debugformat -R share-child | grep dirstate-v2
64 $ hg debugformat -R share-child dirstate-v2
65 format-variant repo
65 dirstate-v2: yes
66 dirstate-v2: yes
66 $ hg debugformat -R share-parent | grep dirstate-v2
67 $ hg debugformat -R share-parent dirstate-v2
68 format-variant repo
67 dirstate-v2: no
69 dirstate-v2: no
68 $ hg status --all -R share-child
70 $ hg status --all -R share-child
69 C nf0
71 C nf0
@@ -131,9 +133,11 Unless the action is compatible with sha
131
133
132 no revlogs to process
134 no revlogs to process
133
135
134 $ hg debugformat -R share-child | grep dirstate-v2
136 $ hg debugformat -R share-child dirstate-v2
137 format-variant repo
135 dirstate-v2: no
138 dirstate-v2: no
136 $ hg debugformat -R share-parent | grep dirstate-v2
139 $ hg debugformat -R share-parent dirstate-v2
140 format-variant repo
137 dirstate-v2: no
141 dirstate-v2: no
138 $ hg status --all -R share-child
142 $ hg status --all -R share-child
139 C nf0
143 C nf0
@@ -1869,7 +1873,8 Demonstrate that nothing to perform upgr
1869
1873
1870 Upgrade to dirstate-v2
1874 Upgrade to dirstate-v2
1871
1875
1872 $ hg debugformat -v --config format.use-dirstate-v2=1 | grep dirstate-v2
1876 $ hg debugformat -v --config format.use-dirstate-v2=1 dirstate-v2
1877 format-variant repo config default
1873 dirstate-v2: no yes no
1878 dirstate-v2: no yes no
1874 $ hg debugupgraderepo --config format.use-dirstate-v2=1 --run
1879 $ hg debugupgraderepo --config format.use-dirstate-v2=1 --run
1875 upgrade will perform the following actions:
1880 upgrade will perform the following actions:
@@ -1892,7 +1897,8 Upgrade to dirstate-v2
1892 removing temporary repository $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
1897 removing temporary repository $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
1893 $ ls .hg/upgradebackup.*/dirstate
1898 $ ls .hg/upgradebackup.*/dirstate
1894 .hg/upgradebackup.*/dirstate (glob)
1899 .hg/upgradebackup.*/dirstate (glob)
1895 $ hg debugformat -v | grep dirstate-v2
1900 $ hg debugformat -v dirstate-v2
1901 format-variant repo config default
1896 dirstate-v2: yes no no
1902 dirstate-v2: yes no no
1897 $ hg status
1903 $ hg status
1898 $ dd bs=12 count=1 if=.hg/dirstate 2> /dev/null
1904 $ dd bs=12 count=1 if=.hg/dirstate 2> /dev/null
@@ -1916,7 +1922,8 Downgrade from dirstate-v2
1916 downgrading from dirstate-v2 to v1
1922 downgrading from dirstate-v2 to v1
1917 replaced files will be backed up at $TESTTMP/sparserevlogrepo/.hg/upgradebackup.* (glob)
1923 replaced files will be backed up at $TESTTMP/sparserevlogrepo/.hg/upgradebackup.* (glob)
1918 removing temporary repository $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
1924 removing temporary repository $TESTTMP/sparserevlogrepo/.hg/upgrade.* (glob)
1919 $ hg debugformat -v | grep dirstate-v2
1925 $ hg debugformat -v dirstate-v2
1926 format-variant repo config default
1920 dirstate-v2: no no no
1927 dirstate-v2: no no no
1921 $ hg status
1928 $ hg status
1922
1929
@@ -1927,7 +1934,8 dirstate-v2: upgrade and downgrade from
1927
1934
1928 $ hg init --config format.use-dirstate-v2=no dirstate-v2-empty
1935 $ hg init --config format.use-dirstate-v2=no dirstate-v2-empty
1929 $ cd dirstate-v2-empty
1936 $ cd dirstate-v2-empty
1930 $ hg debugformat | grep dirstate-v2
1937 $ hg debugformat dirstate-v2
1938 format-variant repo
1931 dirstate-v2: no
1939 dirstate-v2: no
1932
1940
1933 upgrade
1941 upgrade
@@ -1951,7 +1959,8 upgrade
1951 upgrading to dirstate-v2 from v1
1959 upgrading to dirstate-v2 from v1
1952 replaced files will be backed up at $TESTTMP/dirstate-v2-empty/.hg/upgradebackup.* (glob)
1960 replaced files will be backed up at $TESTTMP/dirstate-v2-empty/.hg/upgradebackup.* (glob)
1953 removing temporary repository $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
1961 removing temporary repository $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
1954 $ hg debugformat | grep dirstate-v2
1962 $ hg debugformat dirstate-v2
1963 format-variant repo
1955 dirstate-v2: yes
1964 dirstate-v2: yes
1956
1965
1957 downgrade
1966 downgrade
@@ -1972,7 +1981,8 downgrade
1972 downgrading from dirstate-v2 to v1
1981 downgrading from dirstate-v2 to v1
1973 replaced files will be backed up at $TESTTMP/dirstate-v2-empty/.hg/upgradebackup.* (glob)
1982 replaced files will be backed up at $TESTTMP/dirstate-v2-empty/.hg/upgradebackup.* (glob)
1974 removing temporary repository $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
1983 removing temporary repository $TESTTMP/dirstate-v2-empty/.hg/upgrade.* (glob)
1975 $ hg debugformat | grep dirstate-v2
1984 $ hg debugformat dirstate-v2
1985 format-variant repo
1976 dirstate-v2: no
1986 dirstate-v2: no
1977
1987
1978 $ cd ..
1988 $ cd ..
@@ -1993,7 +2003,8 create an initial repository
1993 $ hg debugbuilddag -R auto-upgrade --new-file .+5
2003 $ hg debugbuilddag -R auto-upgrade --new-file .+5
1994 $ hg -R auto-upgrade update
2004 $ hg -R auto-upgrade update
1995 6 files updated, 0 files merged, 0 files removed, 0 files unresolved
2005 6 files updated, 0 files merged, 0 files removed, 0 files unresolved
1996 $ hg debugformat -R auto-upgrade | grep dirstate-v2
2006 $ hg debugformat -R auto-upgrade dirstate-v2
2007 format-variant repo
1997 dirstate-v2: no
2008 dirstate-v2: no
1998
2009
1999 upgrade it to dirstate-v2 automatically
2010 upgrade it to dirstate-v2 automatically
@@ -2003,7 +2014,8 upgrade it to dirstate-v2 automatically
2003 > --config format.use-dirstate-v2=yes
2014 > --config format.use-dirstate-v2=yes
2004 automatically upgrading repository to the `dirstate-v2` feature
2015 automatically upgrading repository to the `dirstate-v2` feature
2005 (see `hg help config.format.use-dirstate-v2` for details)
2016 (see `hg help config.format.use-dirstate-v2` for details)
2006 $ hg debugformat -R auto-upgrade | grep dirstate-v2
2017 $ hg debugformat -R auto-upgrade dirstate-v2
2018 format-variant repo
2007 dirstate-v2: yes
2019 dirstate-v2: yes
2008
2020
2009 downgrade it from dirstate-v2 automatically
2021 downgrade it from dirstate-v2 automatically
@@ -2013,14 +2025,16 downgrade it from dirstate-v2 automatica
2013 > --config format.use-dirstate-v2=no
2025 > --config format.use-dirstate-v2=no
2014 automatically downgrading repository from the `dirstate-v2` feature
2026 automatically downgrading repository from the `dirstate-v2` feature
2015 (see `hg help config.format.use-dirstate-v2` for details)
2027 (see `hg help config.format.use-dirstate-v2` for details)
2016 $ hg debugformat -R auto-upgrade | grep dirstate-v2
2028 $ hg debugformat -R auto-upgrade dirstate-v2
2029 format-variant repo
2017 dirstate-v2: no
2030 dirstate-v2: no
2018
2031
2019
2032
2020 For multiple change at the same time
2033 For multiple change at the same time
2021 ------------------------------------
2034 ------------------------------------
2022
2035
2023 $ hg debugformat -R auto-upgrade | grep -E '(dirstate-v2|tracked|share-safe)'
2036 $ hg debugformat -R auto-upgrade dirstate-v2 tracked share-safe
2037 format-variant repo
2024 dirstate-v2: no
2038 dirstate-v2: no
2025 tracked-hint: yes
2039 tracked-hint: yes
2026 share-safe: no
2040 share-safe: no
@@ -2038,7 +2052,8 For multiple change at the same time
2038 (see `hg help config.format.use-share-safe` for details)
2052 (see `hg help config.format.use-share-safe` for details)
2039 automatically downgrading repository from the `tracked-hint` feature
2053 automatically downgrading repository from the `tracked-hint` feature
2040 (see `hg help config.format.use-dirstate-tracked-hint` for details)
2054 (see `hg help config.format.use-dirstate-tracked-hint` for details)
2041 $ hg debugformat -R auto-upgrade | grep -E '(dirstate-v2|tracked|share-safe)'
2055 $ hg debugformat -R auto-upgrade dirstate-v2 tracked share-safe
2056 format-variant repo
2042 dirstate-v2: yes
2057 dirstate-v2: yes
2043 tracked-hint: no
2058 tracked-hint: no
2044 share-safe: yes
2059 share-safe: yes
@@ -2047,7 +2062,8 Quiet upgrade and downgrade
2047 ---------------------------
2062 ---------------------------
2048
2063
2049
2064
2050 $ hg debugformat -R auto-upgrade | grep -E '(dirstate-v2|tracked|share-safe)'
2065 $ hg debugformat -R auto-upgrade dirstate-v2 tracked share-safe
2066 format-variant repo
2051 dirstate-v2: yes
2067 dirstate-v2: yes
2052 tracked-hint: no
2068 tracked-hint: no
2053 share-safe: yes
2069 share-safe: yes
@@ -2062,7 +2078,8 Quiet upgrade and downgrade
2062 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories:quiet=yes \
2078 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories:quiet=yes \
2063 > --config format.use-share-safe=no
2079 > --config format.use-share-safe=no
2064
2080
2065 $ hg debugformat -R auto-upgrade | grep -E '(dirstate-v2|tracked|share-safe)'
2081 $ hg debugformat -R auto-upgrade dirstate-v2 tracked share-safe
2082 format-variant repo
2066 dirstate-v2: no
2083 dirstate-v2: no
2067 tracked-hint: yes
2084 tracked-hint: yes
2068 share-safe: no
2085 share-safe: no
@@ -2077,7 +2094,8 Quiet upgrade and downgrade
2077 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories=yes \
2094 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories=yes \
2078 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories:quiet=yes \
2095 > --config format.use-share-safe.automatic-upgrade-of-mismatching-repositories:quiet=yes \
2079 > --config format.use-share-safe=yes
2096 > --config format.use-share-safe=yes
2080 $ hg debugformat -R auto-upgrade | grep -E '(dirstate-v2|tracked|share-safe)'
2097 $ hg debugformat -R auto-upgrade dirstate-v2 tracked share-safe
2098 format-variant repo
2081 dirstate-v2: yes
2099 dirstate-v2: yes
2082 tracked-hint: no
2100 tracked-hint: no
2083 share-safe: yes
2101 share-safe: yes
@@ -2092,7 +2110,8 Attempting Auto-upgrade on a read-only r
2092 $ hg status -R auto-upgrade \
2110 $ hg status -R auto-upgrade \
2093 > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
2111 > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
2094 > --config format.use-dirstate-v2=no
2112 > --config format.use-dirstate-v2=no
2095 $ hg debugformat -R auto-upgrade | grep dirstate-v2
2113 $ hg debugformat -R auto-upgrade dirstate-v2
2114 format-variant repo
2096 dirstate-v2: yes
2115 dirstate-v2: yes
2097
2116
2098 $ chmod -R u+w auto-upgrade
2117 $ chmod -R u+w auto-upgrade
@@ -2107,7 +2126,8 Attempting Auto-upgrade on a locked repo
2107 $ hg status -R auto-upgrade \
2126 $ hg status -R auto-upgrade \
2108 > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
2127 > --config format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories=yes \
2109 > --config format.use-dirstate-v2=no
2128 > --config format.use-dirstate-v2=no
2110 $ hg debugformat -R auto-upgrade | grep dirstate-v2
2129 $ hg debugformat -R auto-upgrade dirstate-v2
2130 format-variant repo
2111 dirstate-v2: yes
2131 dirstate-v2: yes
2112
2132
2113 $ killdaemons.py
2133 $ killdaemons.py
General Comments 0
You need to be logged in to leave comments. Login now