[PATCH 2 of 2] Use find instead of ls -R

Will Maier willmaier at ml1.net
Thu Jun 4 19:44:22 CDT 2009


# HG changeset patch
# User Will Maier <willmaier at ml1.net>
# Date 1244160671 21600
# Node ID c100d271cffc0b8dcbbeb5eeb3f61e5e4e2b2c7d
# Parent  aa1c5d2271021f3ed211aad6db3223b27fa4102f
test-fncache: Use find instead of ls -R.

Different platforms implement -R differently (and it produces
unneccessarily verbose output in this case). find is just as
good and more consistent. Unbreaks test on OpenBSD.

diff --git a/tests/test-fncache b/tests/test-fncache
--- a/tests/test-fncache
+++ b/tests/test-fncache
@@ -56,7 +56,7 @@
 mkdir tst.d
 echo foo > tst.d/foo
 hg ci -Amfoo
-ls -R .hg
+find .hg
 
 cd ..
 echo % non fncache repo
@@ -65,6 +65,6 @@
 mkdir tst.d
 echo foo > tst.d/Foo
 hg ci -Amfoo
-ls -R .hg
+find .hg
 
 exit 0
diff --git a/tests/test-fncache.out b/tests/test-fncache.out
--- a/tests/test-fncache.out
+++ b/tests/test-fncache.out
@@ -43,39 +43,29 @@
 (first damaged changeset appears to be 0)
 % non store repo
 adding tst.d/foo
-.hg:
-00changelog.i
-00manifest.i
-data
-dirstate
-requires
-undo
-undo.branch
-undo.dirstate
-
-.hg/data:
-tst.d.hg
-
-.hg/data/tst.d.hg:
-foo.i
+.hg
+.hg/requires
+.hg/dirstate
+.hg/undo.branch
+.hg/data
+.hg/data/tst.d.hg
+.hg/data/tst.d.hg/foo.i
+.hg/00manifest.i
+.hg/00changelog.i
+.hg/undo
+.hg/undo.dirstate
 % non fncache repo
 adding tst.d/Foo
-.hg:
-00changelog.i
-dirstate
-requires
-store
-undo.branch
-undo.dirstate
-
-.hg/store:
-00changelog.i
-00manifest.i
-data
-undo
-
-.hg/store/data:
-tst.d.hg
-
-.hg/store/data/tst.d.hg:
-_foo.i
+.hg
+.hg/store
+.hg/store/data
+.hg/store/data/tst.d.hg
+.hg/store/data/tst.d.hg/_foo.i
+.hg/store/00manifest.i
+.hg/store/00changelog.i
+.hg/store/undo
+.hg/00changelog.i
+.hg/requires
+.hg/undo.branch
+.hg/dirstate
+.hg/undo.dirstate


-- 

[Will Maier]-----------------[willmaier at ml1.net|http://www.lfod.us/]


More information about the Mercurial-devel mailing list