X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=push-all;h=e48692397c44cb06523f63f4a34939e53c872d25;hp=014c4b0cb08078ff70365f53b16f289d9cce256f;hb=b494094bdec3f756010583342ce7bd1fed805281;hpb=f4ab409231b5b904b9a25c07ac4e849c4a9be887 diff --git a/push-all b/push-all index 014c4b0..e486923 100644 --- a/push-all +++ b/push-all @@ -13,6 +13,8 @@ my $ignore_failure = 0; my $checked_out = 0; # --core-only says we only want to push corelibs, not extralibs my $core_only = 0; +# --push or --pull? +my $push_pull = "push"; sub message { if ($verbose) { @@ -32,7 +34,7 @@ sub darcs { } sub darcs_push { - darcs ("push", "--no-set-default", @_); + darcs ($push_pull, "--no-set-default", @_); } sub pushall { @@ -75,12 +77,21 @@ sub main { if ($arg eq "-q") { $verbose = 0; } + elsif ($arg eq "--ignore-failure") { + $ignore_failure = 1; + } elsif ($arg eq "--checked-out") { $checked_out = 1; } elsif ($arg eq "--core-only") { $core_only = 1; } + elsif ($arg eq "--push") { + $push_pull = "push"; + } + elsif ($arg eq "--pull") { + $push_pull = "pull"; + } else { $reporoot = $arg; if (grep /^-q$/, @_) {