Is there a way to say, build all which are under some prefixes?

I am working in a project where we use the some kind of prefix to say,
this branch is "ready to be merged", and we may want to get all
branches build by a build farm.

git ls-remote $uri | grep "refs/heads/prefix/"

On Mon, Mar 15, 2010 at 11:02, Rob Vermaas <[email protected]> wrote:
> Author: rob
> Date: 2010-03-15 10:02:30 +0000 (Mon, 15 Mar 2010)
> New Revision: 20626
>
> You can view the changes in this commit at:
>   https://svn.nixos.org/viewvc/nix?rev=20626&view=rev
>
> Modified:
>   hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm
>
> Log:
> * hydra: on git ls-remote add refs/heads/ prefix to branchname to avoid other 
> branches called master (or $branchname)
>
> Changes:
>
> Modified: hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm
> ===================================================================
> --- hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm       2010-03-15 10:02:24 
> UTC (rev 20625)
> +++ hydra/trunk/src/lib/Hydra/Helper/AddBuilds.pm       2010-03-15 10:02:30 
> UTC (rev 20626)
> @@ -274,7 +274,7 @@
>     # First figure out the last-modified revision of the URI.
>     my $stdout; my $stderr;
>     (my $res, $stdout, $stderr) = captureStdoutStderr(
> -        "git", "ls-remote", $uri, $branch);
> +        "git", "ls-remote", $uri, "refs/heads/".$branch);
>     die "Cannot get head revision of Git branch '$branch' at 
> `$uri':\n$stderr" unless $res;
>
>     (my $revision, my $ref) = split ' ', $stdout;
>
> _______________________________________________
> nix-commits mailing list
> [email protected]
> http://mail.cs.uu.nl/mailman/listinfo/nix-commits
>



-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to