test: create some history in test-dirstate-backup
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 13 Feb 2023 23:56:13 +0100
changeset 49990 ffd19d73518d
parent 49989 93d72a7dd486
child 49991 3997c64eff8b
test: create some history in test-dirstate-backup An empty repository, based on `null` is quite a corner cases. We create a more "natural" setup for this tests to make sure it can keep testing what it intend to test in the future.
tests/test-dirstate-backup.t
--- a/tests/test-dirstate-backup.t	Tue Feb 07 12:42:45 2023 +0100
+++ b/tests/test-dirstate-backup.t	Mon Feb 13 23:56:13 2023 +0100
@@ -2,6 +2,9 @@
 
   $ hg init repo
   $ cd repo
+  $ echo a > a
+  $ hg add a
+  $ hg commit -m a
 
 Try to import an empty patch