[Updated] D9045: tests: update test-share-safe to work with non-zstd versions

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed Sep 23 15:37:56 UTC 2020


Closed by commit rHG68906595016c: tests: update test-share-safe to work with non-zstd versions (authored by pulkit).
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/D9045?vs=22771&id=22802

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D9045/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D9045

AFFECTED FILES
  tests/test-share-safe.t

CHANGE DETAILS

diff --git a/tests/test-share-safe.t b/tests/test-share-safe.t
--- a/tests/test-share-safe.t
+++ b/tests/test-share-safe.t
@@ -170,13 +170,12 @@
 Update the source repository format and check that shared repo works
 
   $ cd ../source
+
+Disable zstd related tests because its not present on pure version
+#if zstd
   $ echo "[format]" >> .hg/hgrc
   $ echo "revlog-compression=zstd" >> .hg/hgrc
 
-  $ hg debugupgraderepo --run -q -R ../shared1
-  abort: cannot upgrade repository; unsupported source requirement: shared
-  [255]
-
   $ hg debugupgraderepo --run -q
   upgrade will perform the following actions:
   
@@ -190,6 +189,29 @@
   date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     added b
   
+#endif
+  $ echo "[format]" >> .hg/hgrc
+  $ echo "use-persistent-nodemap=True" >> .hg/hgrc
+
+  $ hg debugupgraderepo --run -q -R ../shared1
+  abort: cannot upgrade repository; unsupported source requirement: shared
+  [255]
+
+  $ hg debugupgraderepo --run -q
+  upgrade will perform the following actions:
+  
+  requirements
+     preserved: dotencode, exp-sharesafe, fncache, generaldelta, revlogv1, sparserevlog, store (no-zstd !)
+     preserved: dotencode, exp-sharesafe, fncache, generaldelta, revlog-compression-zstd, revlogv1, sparserevlog, store (zstd !)
+     added: persistent-nodemap
+  
+  $ hg log -r .
+  changeset:   1:5f6d8a4bf34a
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  summary:     added b
+  
+
 Shared one should work
   $ cd ../shared1
   $ hg log -r .



To: pulkit, #hg-reviewers, indygreg, marmoute
Cc: marmoute, indygreg, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20200923/c8d368b5/attachment-0002.html>


More information about the Mercurial-patches mailing list