Allow use of a single Git clone for several branches.

[?]
Apr 12, 2012, 2:55 PM
DAKY4N64CDWYVPNGCNSWLI5UQFX45DUFLRLY7KGNYZSJLMP5BBPQC

Dependencies

  • [2] 3I6BNF4S hydra: do not use refs/heads while checking for latest commit in branch
  • [3] HABC6L4G Revert "Use git fetch --all to update local clone in stead of git pull. Also, do not use --branch in initial clone."
  • [4] VJ4BZV5R Add branch to local clone path of git repositories for now.
  • [5] BK24VA6Q * for git inputs, check latest revision of branch (defaults to master for now), if there is change, only use input if last checkout was > hour ago.
  • [6] BMSQD2ZH Indentation
  • [7] CHQEG6WY Hydra/29: Added timeout to svn/git checkouts, job evaluation
  • [8] ARD6Z67T Do incremental SVN checkouts
  • [9] C7CXMZ66 hydra: do not perform git clone every time. in stead work on local clone and pull
  • [10] TM6XBAG2 git branches can share local clones
  • [11] UO67NQMR Change `fetchInputGit' to do `git clone -b BRANCH' instead of `git clone'.
  • [12] PNPT3Y7R Use git fetch --all to update local clone in stead of git pull. Also, do not use --branch in initial clone.
  • [*] OOQ2D3KC * Refactoring: move fetchInput out of hydra_scheduler into a separate
  • [*] JTRG7RDQ add support for git as jobinput

Change contents

  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 326
    [5.124][4.0:62]()
    my $clonePath = scmPath . "/" . sha256_hex($uri.$branch);
    [5.124]
    [5.179]
    my $clonePath = scmPath . "/" . sha256_hex($uri);
  • replacement in src/lib/Hydra/Helper/AddBuilds.pm at line 338
    [5.175][3.71:97]()
    ("git", "pull"));
    [5.175]
    [5.483]
    ("git", "pull", "--all"));
  • edit in src/lib/Hydra/Helper/AddBuilds.pm at line 346
    [15.516]
    [2.152]
    # Take the first commit ID returned by `ls-remote'. The
    # assumption is that `ls-remote' returned both `refs/heads/BRANCH'
    # and `refs/remotes/origin/BRANCH', and that both point at the
    # same commit.