Patchwork [1,of,3] test-sparse: make the '.hg' exclusion filter Windows compatible

login
register
mail settings
Submitter Matt Harbison
Date Jan. 20, 2018, 8:14 p.m.
Message ID <0aafeded795752ed6272.1516479263@Envy>
Download mbox | patch
Permalink /patch/27005/
State Accepted
Headers show

Comments

Matt Harbison - Jan. 20, 2018, 8:14 p.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1516474631 18000
#      Sat Jan 20 13:57:11 2018 -0500
# Node ID 0aafeded795752ed627208cfb3bf547ed5a8074f
# Parent  f00edef84c3b36d7c6d5a3adedeef3aa8caab8fc
test-sparse: make the '.hg' exclusion filter Windows compatible

Patch

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