status: Extend issue 6483 test to exclude patterns
authorSimon Sapin <simon.sapin@octobus.net>
Fri, 07 May 2021 16:44:36 +0200
changeset 47131 46c6be5f1efa
parent 47130 cfbbafb04037
child 47132 65e6970042c5
status: Extend issue 6483 test to exclude patterns With `hg status -X`, not just include pattern with `hg status -I` Differential Revision: https://phab.mercurial-scm.org/D10700
tests/test-status.t
--- a/tests/test-status.t	Fri May 07 16:41:07 2021 +0200
+++ b/tests/test-status.t	Fri May 07 16:44:36 2021 +0200
@@ -700,6 +700,11 @@
   $ hg st -aI "*.py"
   A a.py
 
+Also check exclude pattern
+
+  $ hg st -aX "*.rs"
+  A a.py
+
 issue6335
 When a directory containing a tracked file gets symlinked, as of 5.8
 `hg st` only gives the correct answer about clean (or deleted) files