test-sparse: make the '.hg' exclusion filter Windows compatible
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 20 Jan 2018 13:57:11 -0500
changeset 35770 0aafeded7957
parent 35769 f00edef84c3b
child 35771 ebb75443969a
test-sparse: make the '.hg' exclusion filter Windows compatible
tests/test-sparse.t
--- a/tests/test-sparse.t	Fri Jan 19 19:20:50 2018 -0500
+++ b/tests/test-sparse.t	Sat Jan 20 13:57:11 2018 -0500
@@ -290,7 +290,7 @@
   $ touch dir1/notshown
   $ hg commit -A dir1/notshown -m "notshown"
   $ hg debugsparse --include 'dir1/dir2'
-  $ $PYTHON $TESTDIR/list-tree.py . | grep -v ./.hg
+  $ $PYTHON $TESTDIR/list-tree.py . | egrep -v '\.[\/]\.hg'
   ./
   ./dir1/
   ./dir1/dir2/
@@ -298,7 +298,7 @@
   ./hide.orig
   $ hg debugsparse --delete 'dir1/dir2'
   $ hg debugsparse --include 'glob:dir1/dir2'
-  $ $PYTHON $TESTDIR/list-tree.py . | grep -v ./.hg
+  $ $PYTHON $TESTDIR/list-tree.py . | egrep -v '\.[\/]\.hg'
   ./
   ./dir1/
   ./dir1/dir2/