[Updated] D12601: test-dirstate: fix detection of Rust environment variable
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Wed May 4 14:24:28 UTC 2022
Closed by commit rHG5d610521a285: test-dirstate: fix detection of Rust environment variable (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12601?vs=33337&id=33344
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12601/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12601
AFFECTED FILES
tests/test-dirstate.t
CHANGE DETAILS
diff --git a/tests/test-dirstate.t b/tests/test-dirstate.t
--- a/tests/test-dirstate.t
+++ b/tests/test-dirstate.t
@@ -133,8 +133,8 @@
> }
$ dirstate_uuid_has_not_changed () {
- > # Pure Python always rewrites the whole dirstate
- > if [ $# -eq 1 ] || [ "$HGMODULEPOLICY" = *"rust"* ] || [ -n "$RHG_INSTALLED_AS_HG" ]; then
+ > # Non-Rust always rewrites the whole dirstate
+ > if [ $# -eq 1 ] || ([ -n "$HGMODULEPOLICY" ] && [ -z "${HGMODULEPOLICY##*rust*}" ]) || [ -n "$RHG_INSTALLED_AS_HG" ]; then
> test $current_uid = $(find_dirstate_uuid)
> fi
> }
To: Alphare, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220504/9e377c8c/attachment-0002.html>
More information about the Mercurial-patches
mailing list