rhg: add test for bug with matchers in rhg status --rev --rev
authorMitchell Kember <mkember@janestreet.com>
Tue, 03 Dec 2024 15:14:59 -0500
changeset 52394 4e58b5499860
parent 52393 10f98d358f6c
child 52395 136e74c2bf8f
rhg: add test for bug with matchers in rhg status --rev --rev This bug was not caught before because most tests use the --rev A:B syntax, which rhg does not yet support.
tests/test-status.t
--- a/tests/test-status.t	Thu Dec 05 13:17:18 2024 -0500
+++ b/tests/test-status.t	Tue Dec 03 15:14:59 2024 -0500
@@ -487,6 +487,27 @@
   R removed
   C deleted
 
+Like previous tests but using --rev --rev instead of --change:
+
+  $ hg status --rev 0 --rev 1
+  M modified
+  A added
+  A copied
+  R removed
+
+  $ hg status --rev 0 --rev 1 unrelated
+  M modified (known-bad-output rhg !)
+  A added (known-bad-output rhg !)
+  A copied (known-bad-output rhg !)
+  R removed (known-bad-output rhg !)
+
+  $ hg status -C --rev 0 --rev 1 added modified copied removed deleted
+  M modified
+  A added
+  A copied
+    modified
+  R removed
+
   $ cd ..
 
 hg status with --rev and reverted changes: