summaryrefslogtreecommitdiff
path: root/src/mozclient/lib
diff options
context:
space:
mode:
authorFabien Tassin <fta@ubuntu.com>2008-11-26 15:44:53 +0100
committerFabien Tassin <fta@ubuntu.com>2008-11-26 15:44:53 +0100
commitd2b212fe547ef90abce02b9c4c88d0b3683beb33 (patch)
tree9c83f47a0e4dca64da8bc622954d5cab3fd36123 /src/mozclient/lib
parentc680ae4c7256dfa44352a7d0ab3340bbaa3bb8a8 (diff)
* [mozclient] fix hg incorrectly requesting branches
- update src/mozclient/lib/MozClient/Mercurial.pm
Diffstat (limited to 'src/mozclient/lib')
-rw-r--r--src/mozclient/lib/MozClient/Mercurial.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mozclient/lib/MozClient/Mercurial.pm b/src/mozclient/lib/MozClient/Mercurial.pm
index 45fcbbc..40f2879 100644
--- a/src/mozclient/lib/MozClient/Mercurial.pm
+++ b/src/mozclient/lib/MozClient/Mercurial.pm
@@ -78,10 +78,14 @@ sub checkout {
$self->{'MOZCLIENT_PROJECT'}, $module);
}
}
- my $cmd = sprintf "hg clone %s %s %s %s", $self->{'mozclient_date'},
- $self->{'co_tag'}, join(" ", @$modules), $self->{'MOZCLIENT_MOZDIRNAME'};
+ my $cmd = sprintf "hg clone %s %s", join(" ", @$modules),
+ $self->{'MOZCLIENT_MOZDIRNAME'};
$self->run_system($cmd);
- $self->chdir("..");
+ $self->chdir($self->{'MOZCLIENT_MOZDIRNAME'});
+ my $rev = $self->{'mozclient_date'} ? $self->{'mozclient_date'} : $self->{'co_tag'};
+ $cmd = sprintf "hg update %s", $rev;
+ $self->run_system($cmd);
+ $self->chdir("../..");
}
sub tar_exclude {