Pass additional attributes for Git inputs

[?]
Dec 5, 2011, 2:13 PM
4FWDVNWAUAFDXPXIOBOVM2ZRPZG4LLE4JBKYIXUKR45YN6MEOMXQC

Dependencies

  • [2] CHQEG6WY Hydra/29: Added timeout to svn/git checkouts, job evaluation
  • [3] KQS7DSKJ * Clean up indentation.
  • [4] KW3M6NSR hydra: run nix-prefetch-git on local clone of git repo
  • [5] WWUOQ7V4 * hydra: indentation and fixed duplicate key in cachedgitinputs bug
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [*] JTRG7RDQ add support for git as jobinput
  • [*] 3XTHEUMP * Implemented the clone feature.

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 385
    [3.7419][3.943:948](),[3.943][3.943:948]()
    [3.7419]
    [2.236]
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 389
    [3.7625][3.1144:1149](),[3.1144][3.1144:1149]()
    [3.7625]
    [3.7626]
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 402
    [7.10014]
    [8.1922]
    # For convenience in producing readable version names, pass the
    # number of commits in the history of this revision (‘revCount‘)
    # and the output of git-describe (‘gitTag’).
    my $revCount = `git rev-list $revision | wc -l`; chomp $revCount;
    die "git rev-list failed" if $? != 0;
    my $gitTag = `git describe --always $revision`; chomp $gitTag;
    die "git describe failed" if $? != 0;
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 416
    [3.8565]
    [3.8565]
    , revCount => int($revCount)
    , gitTag => $gitTag
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 632
    [9.2074]
    [9.2074]
    (defined $alt->{revCount} ? "; revCount = " . $alt->{revCount} . "" : "") .
    (defined $alt->{gitTag} ? "; gitTag = \"" . $alt->{gitTag} . "\"" : "") .