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.
--- 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: