Fix Bug 489 by moving the "--rev xxx" options to the correct place in the command line
authorWilliam Roberts <williamr@symbian.org>
Mon, 19 Oct 2009 16:25:56 +0100
changeset 94 8b3aad972b66
parent 93 219325363815
child 95 d6e129059d35
Fix Bug 489 by moving the "--rev xxx" options to the correct place in the command line
clone_packages/clone_all_packages.pl
--- a/clone_packages/clone_all_packages.pl	Thu Oct 15 16:49:47 2009 +0100
+++ b/clone_packages/clone_all_packages.pl	Mon Oct 19 16:25:56 2009 +0100
@@ -247,7 +247,7 @@
     # The repository already exists, so just do an update
     
     print "Updating $destdir from $package...\n";
-    $ret = do_system("hg", "pull", @pull_options, "-R", $path, $repo_url, @rev_options);
+    $ret = do_system("hg", "pull", @pull_options, @rev_options, "-R", $path, $repo_url);
     if ($ret == 0 && ! $mirror)
       {
       $ret = do_system("hg", "update", "-R", $path, @rev_options)
@@ -258,7 +258,7 @@
     # Clone the repository
     
     print "Cloning $destdir from $package...\n";
-    $ret = do_system("hg", "clone", @clone_options, $repo_url, $path, @rev_options);
+    $ret = do_system("hg", "clone", @clone_options, @rev_options, $repo_url, $path);
     }
   
   $ret = $ret >> 8;   # extract the exit status