[PATCH 2 of 3] acl: simplified 'skiplines' function as suggested by Cameron Simpson

elifarley at gmail.com elifarley at gmail.com
Wed May 30 11:53:03 CDT 2012


# HG changeset patch
# User Elifarley Callado Coelho Cruz
# Date 1338389399 10800
# Node ID 478157db4bd3797be5093a8d327fcb5f5b798f4a
# Parent  a26e4029515fe04ecb2bdb16fb5f1f06ae6e35f7
acl: simplified 'skiplines' function as suggested by Cameron Simpson

diff --git a/tests/test-acl.t b/tests/test-acl.t
--- a/tests/test-acl.t
+++ b/tests/test-acl.t
@@ -1,14 +1,19 @@
   > skiplines() {
-  > sed -e /^files:/d -e /^bundling:/d -e /^changesets:/d -e /^manifests:/d \
-  > -e '/^searching for changes/d' \
-  > -e '/^all remote heads known locally/d' \
-  > -e '/^invalidating branch cache/d' \
-  > -e '/^list of changesets:/d' \
-  > -e '/^adding changesets/d' \
-  > -e '/^adding manifests/d' \
-  > -e '/^checking for updated bookmarks/d' \
-  > -e '/^adding file changes/d' \
-  > -e '/^updating the branch cache/d'
+  > sed -e '
+  > /^files:/d
+  > /^bundling:/d
+  > /^changesets:/d
+  > /^manifests:/d
+  > /^searching for changes/d
+  > /^all remote heads known locally/d
+  > /^invalidating branch cache/d
+  > /^list of changesets:/d
+  > /^adding changesets/d
+  > /^adding manifests/d
+  > /^checking for updated bookmarks/d
+  > /^adding file changes/d
+  > /^updating the branch cache/d
+  > '
   > }
 
   > do_push()


More information about the Mercurial-devel mailing list