Author: rob
Date: Tue Oct  4 22:29:36 2011
New Revision: 29650
URL: https://ssl.nixos.org/websvn/nix/?rev=29650&sc=1

Log:
make default branch default, remove quotes

Modified:
   hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm

Modified: hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm
==============================================================================
--- hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm       Tue Oct  4 21:03:33 
2011        (r29649)
+++ hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm       Tue Oct  4 22:29:36 
2011        (r29650)
@@ -469,6 +469,7 @@
     my ($db, $project, $jobset, $name, $type, $value) = @_;
     
     (my $uri, my $id) = split ' ', $value;
+    $id = defined $id ? $id : "default";
 
     # init local hg clone
 
@@ -489,7 +490,7 @@
         ("hg", "pull"));
     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;
 
     my ($revision, $branch) = split ' ', $stdout;
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to