large-files: prepare a test for more changes
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 21 Feb 2023 01:09:11 +0100
changeset 50104 7989646f1d5a
parent 50103 5a0c1d70ebcf
child 50105 2323b74f927b
large-files: prepare a test for more changes The behavior around this test is about to change. We update the test to make it more robust and the changes clearer.
tests/test-largefiles-update.t
--- a/tests/test-largefiles-update.t	Tue Feb 21 00:32:40 2023 +0100
+++ b/tests/test-largefiles-update.t	Tue Feb 21 01:09:11 2023 +0100
@@ -778,7 +778,10 @@
 Start with clean dirstates:
   $ hg up --quiet --clean --rev "8^"
   $ sleep 1
+  $ cat large1
+  large1 in #3
   $ hg st
+
 Update standins without updating largefiles - large1 is modified and largeX is
 added:
   $ cat << EOF > ../crashupdatelfiles.py
@@ -790,12 +793,14 @@
   $ hg up -Cr "8" --config extensions.crashupdatelfiles=../crashupdatelfiles.py
   [254]
 Check large1 content and status ... and that update will undo modifications:
+  $ hg id
+  f1bf30eb88cc
   $ cat large1
   large1 in #3
   $ hg st
   M large1
   ! largeX
-  $ hg up -Cr .
+  $ hg up -Cr 8
   getting changed largefiles
   2 largefiles updated, 0 removed
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved