make default branch default, remove quotes
This commit is contained in:
parent
eb3b5ef6a0
commit
6ca9501632
@ -469,6 +469,7 @@ sub fetchInputHg {
|
|||||||
my ($db, $project, $jobset, $name, $type, $value) = @_;
|
my ($db, $project, $jobset, $name, $type, $value) = @_;
|
||||||
|
|
||||||
(my $uri, my $id) = split ' ', $value;
|
(my $uri, my $id) = split ' ', $value;
|
||||||
|
$id = defined $id ? $id : "default";
|
||||||
|
|
||||||
# init local hg clone
|
# init local hg clone
|
||||||
|
|
||||||
@ -489,7 +490,7 @@ sub fetchInputHg {
|
|||||||
("hg", "pull"));
|
("hg", "pull"));
|
||||||
die "Error pulling latest change mercurial repo at `$uri':\n$stderr" unless $res;
|
die "Error pulling latest change mercurial repo at `$uri':\n$stderr" unless $res;
|
||||||
|
|
||||||
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,("hg", "log", "-r", $id, "--template", "'{node|short} {branch}'"));
|
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,("hg", "log", "-r", $id, "--template", "{node|short} {branch}"));
|
||||||
die "Error getting branch and revision of $id from `$uri':\n$stderr" unless $res1;
|
die "Error getting branch and revision of $id from `$uri':\n$stderr" unless $res1;
|
||||||
|
|
||||||
my ($revision, $branch) = split ' ', $stdout;
|
my ($revision, $branch) = split ' ', $stdout;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user