comparison tests/test-upgrade-repo.t @ 48674:f7086f6173f8 stable

dirstate-v2: rename the configuration to enable the format The rename of the old experimental name was overlooked before the 6.0 release. We rename everything to use the new name (and keep the released name as an alias for compatibility). Differential Revision: https://phab.mercurial-scm.org/D12129
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 01 Feb 2022 16:36:20 +0100
parents 6e4999cb085e
children e845537f6adb
comparison
equal deleted inserted replaced
48670:6d2ddea0721a 48674:f7086f6173f8
1643 1643
1644 #endif 1644 #endif
1645 1645
1646 Upgrade to dirstate-v2 1646 Upgrade to dirstate-v2
1647 1647
1648 $ hg debugformat -v --config format.exp-rc-dirstate-v2=1 | grep dirstate-v2 1648 $ hg debugformat -v --config format.use-dirstate-v2=1 | grep dirstate-v2
1649 dirstate-v2: no yes no 1649 dirstate-v2: no yes no
1650 $ hg debugupgraderepo --config format.exp-rc-dirstate-v2=1 --run 1650 $ hg debugupgraderepo --config format.use-dirstate-v2=1 --run
1651 upgrade will perform the following actions: 1651 upgrade will perform the following actions:
1652 1652
1653 requirements 1653 requirements
1654 preserved: * (glob) 1654 preserved: * (glob)
1655 added: dirstate-v2 1655 added: dirstate-v2
1705 $ cd .. 1705 $ cd ..
1706 1706
1707 dirstate-v2: upgrade and downgrade from and empty repository: 1707 dirstate-v2: upgrade and downgrade from and empty repository:
1708 ------------------------------------------------------------- 1708 -------------------------------------------------------------
1709 1709
1710 $ hg init --config format.exp-rc-dirstate-v2=no dirstate-v2-empty 1710 $ hg init --config format.use-dirstate-v2=no dirstate-v2-empty
1711 $ cd dirstate-v2-empty 1711 $ cd dirstate-v2-empty
1712 $ hg debugformat | grep dirstate-v2 1712 $ hg debugformat | grep dirstate-v2
1713 dirstate-v2: no 1713 dirstate-v2: no
1714 1714
1715 upgrade 1715 upgrade
1716 1716
1717 $ hg debugupgraderepo --run --config format.exp-rc-dirstate-v2=yes 1717 $ hg debugupgraderepo --run --config format.use-dirstate-v2=yes
1718 upgrade will perform the following actions: 1718 upgrade will perform the following actions:
1719 1719
1720 requirements 1720 requirements
1721 preserved: * (glob) 1721 preserved: * (glob)
1722 added: dirstate-v2 1722 added: dirstate-v2
1739 $ hg debugformat | grep dirstate-v2 1739 $ hg debugformat | grep dirstate-v2
1740 dirstate-v2: yes 1740 dirstate-v2: yes
1741 1741
1742 downgrade 1742 downgrade
1743 1743
1744 $ hg debugupgraderepo --run --config format.exp-rc-dirstate-v2=no 1744 $ hg debugupgraderepo --run --config format.use-dirstate-v2=no
1745 upgrade will perform the following actions: 1745 upgrade will perform the following actions:
1746 1746
1747 requirements 1747 requirements
1748 preserved: * (glob) 1748 preserved: * (glob)
1749 removed: dirstate-v2 1749 removed: dirstate-v2