diff test-onsub.t @ 3:a2184bbf38e6

Implement --ignore-errors.
author Martin Geisler <mg@lazybytes.net>
date Mon, 06 Sep 2010 12:35:30 +0200
parents e49f3bbfec4d
children 73658c424c7b
line wrap: on
line diff
--- a/test-onsub.t	Mon Sep 06 12:21:02 2010 +0200
+++ b/test-onsub.t	Mon Sep 06 12:35:30 2010 +0200
@@ -6,7 +6,7 @@
 Check help formatting:
 
   $ hg help onsub
-  hg onsub [-b] [-0] CMD
+  hg onsub [-b] [-0] [--ignore-errors] CMD
   
   execute a command in each subrepository
   
@@ -40,6 +40,7 @@
   options:
   
    -b --breadth-first  use breadth-first traversal
+      --ignore-errors  continue execution despite errors
    -0 --print0         end subrepository names with NUL, for use with xargs
   
   use "hg -v help onsub" to show global options
@@ -113,6 +114,19 @@
   executing 'test $HG_SUBPATH != "a/y/r"' in a/y/r
   abort: terminated onsub in a/y/r: test exited with status 1
 
+Test aborting:
+
+  $ hg onsub -v --ignore-errors false
+  executing 'false' in a
+  executing 'false' in a/x
+  executing 'false' in a/y
+  executing 'false' in a/y/r
+  executing 'false' in a/y/s
+  executing 'false' in a/y/t
+  executing 'false' in b
+  executing 'false' in b/u
+  executing 'false' in b/v
+
 Test --print0:
 
   $ mv a 'with spaces'