Patchwork D10700: status: Extend issue 6483 test to exclude patterns

login
register
mail settings
Submitter phabricator
Date May 7, 2021, 4:45 p.m.
Message ID <differential-rev-PHID-DREV-vew4sayu7tprgzyvb34q-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49018/
State Superseded
Headers show

Comments

phabricator - May 7, 2021, 4:45 p.m.
SimonSapin created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  With `hg status -X`, not just include pattern with `hg status -I`

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10700

AFFECTED FILES
  tests/test-status.t

CHANGE DETAILS




To: SimonSapin, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-status.t b/tests/test-status.t
--- a/tests/test-status.t
+++ b/tests/test-status.t
@@ -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