test-remove: fix for non-gnu find
authorFlorent Guillaume <fg@nuxeo.com>
Sun, 23 Mar 2008 01:04:51 +0100
changeset 6357 62980dd86bf6
parent 6356 b34b876d1f6f
child 6358 7cb9af02e250
test-remove: fix for non-gnu find
tests/test-remove
--- a/tests/test-remove	Sat Mar 22 21:13:22 2008 +0100
+++ b/tests/test-remove	Sun Mar 23 01:04:51 2008 +0100
@@ -4,7 +4,7 @@
     hg rm $@
     hg st
     # do not use ls -R, which recurses in .hg subdirs on Mac OS X 10.5
-    find . ! -regex '.*/\.hg.*' -a -type f
+    find . -name .hg -prune -o -type f -print
     hg up -C
 }