Author: ludo
Date: Tue Mar 22 22:21:19 2011
New Revision: 26462
URL: https://svn.nixos.org/websvn/nix/?rev=26462&sc=1
Log:
fetchInputGit: Populate TopGit branches when on a topic branch.
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 Mar 22 14:57:00
2011 (r26461)
+++ hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm Tue Mar 22 22:21:19
2011 (r26462)
@@ -326,6 +326,15 @@
(my $revision, my $ref) = split ' ', $first;
die unless $revision =~ /^[0-9a-fA-F]+$/;
+ if (-f ".topdeps") {
+ # This is a TopGit branch. Fetch all the topic branches so
+ # that builders can run "tg patch" and similar.
+ (my $res, $stdout, $stderr) = captureStdoutStderr(600,
+ ("tg", "remote", "--populate", "origin"));
+
+ print STDERR "Warning: `tg remote --populate origin' failed:\n$stderr"
unless $res;
+ }
+
# Some simple caching: don't check a uri/branch more than once every hour,
but prefer exact match on uri/branch/revision.
my $cachedInput ;
($cachedInput) = $db->resultset('CachedGitInputs')->search(
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits