Mercurial > public > mercurial-scm > hg-stable
diff tests/test-persistent-nodemap.t @ 53031:e705fec4a03f stable
branching: merging with 7.0 changes
Since 6.9.3 was made after 7.0rc0 we need to deal with more branching than
usual.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 05 Mar 2025 23:02:19 +0100 |
parents | 89ab2459f62a bbbb12632607 |
children |
line wrap: on
line diff
--- a/tests/test-persistent-nodemap.t Wed Mar 05 22:33:11 2025 +0100 +++ b/tests/test-persistent-nodemap.t Wed Mar 05 23:02:19 2025 +0100 @@ -24,7 +24,7 @@ $ hg init test-repo --config storage.revlog.persistent-nodemap.slow-path=allow $ cd test-repo -Check handling of the default slow-path value +Check handling of the default slow-path value and its variants #if no-pure no-rust @@ -33,6 +33,36 @@ (check `hg help config.format.use-persistent-nodemap` for details) [255] + $ hg id \ + > --config storage.revlog.persistent-nodemap.slow-path=abort + abort: accessing `persistent-nodemap` repository without associated fast implementation. + (check `hg help config.format.use-persistent-nodemap` for details) + [255] + + $ hg id \ + > --config storage.revlog.persistent-nodemap.slow-path=warn + warning: accessing `persistent-nodemap` repository without associated fast implementation. + (check `hg help config.format.use-persistent-nodemap` for details) + 000000000000 tip + + $ hg id \ + > --config storage.all-slow-path=warn + warning: accessing `persistent-nodemap` repository without associated fast implementation. + (check `hg help config.format.use-persistent-nodemap` for details) + 000000000000 tip + + $ hg id \ + > --config storage.all-slow-path=warn \ + > --config storage.revlog.persistent-nodemap.slow-path=abort + abort: accessing `persistent-nodemap` repository without associated fast implementation. + (check `hg help config.format.use-persistent-nodemap` for details) + [255] + + $ hg id \ + > --config storage.all-slow-path=abort \ + > --config storage.revlog.persistent-nodemap.slow-path=allow + 000000000000 tip + Unlock further check (we are here to test the feature) $ cat << EOF >> $HGRCPATH @@ -615,10 +645,12 @@ $ hg share race-repo ./other-wc --config format.use-share-safe=yes updating working directory 5001 files updated, 0 files merged, 0 files removed, 0 files unresolved - $ hg debugformat -R ./race-repo | grep -E 'share-safe|persistent-nodemap' + $ hg debugformat -R ./race-repo share-safe persistent-nodemap + format-variant repo share-safe: yes persistent-nodemap: yes - $ hg debugformat -R ./other-wc/ | grep -E 'share-safe|persistent-nodemap' + $ hg debugformat -R ./other-wc/ share-safe persistent-nodemap + format-variant repo share-safe: yes persistent-nodemap: yes $ hg -R ./other-wc update 'min(head())'