Add checkout support to sync-all
authorIan Lynagh <igloo@earth.li>
Wed, 27 Apr 2011 15:15:30 +0000 (16:15 +0100)
committerIan Lynagh <igloo@earth.li>
Wed, 27 Apr 2011 15:22:37 +0000 (16:22 +0100)
sync-all

index 3ccbc86..c9c4dc4 100755 (executable)
--- 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 <branch-name>
  * remote rm <branch-name>
  * remote set-url [--push] <branch-name>
+ * checkout
  * grep
  * clean
  * reset