Fix Bug 489 by moving the "--rev xxx" options to the correct place in the command line
--- 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