From: Ian Lynagh Date: Wed, 27 Apr 2011 15:15:30 +0000 (+0100) Subject: Add checkout support to sync-all X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=72bebc47dbee2eb5435ea8eed512bc5dfc01b7a6;ds=sidebyside Add checkout support to sync-all --- diff --git a/sync-all b/sync-all index 3ccbc86..c9c4dc4 100755 --- a/sync-all +++ b/sync-all @@ -377,6 +377,10 @@ sub scmall { } scm ($localpath, $scm, @scm_args, @args); } + elsif ($command =~ /^checkout$/) { + scm ($localpath, $scm, "checkout", @args) + unless $scm eq "darcs"; + } elsif ($command =~ /^grep$/) { # Hack around 'git grep' failing if there are no matches $ignore_failure = 1; @@ -423,6 +427,7 @@ Supported commands: * remote add * remote rm * remote set-url [--push] + * checkout * grep * clean * reset