ParallelVersionControlSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Extract some source dependendency resolution logic that is common to the offline and online modes into a decorator and add some synchronization so that versions for a given Git repo are not resolved in parallel, but versions from different Git repos are.

    • -112
    • +0
    ./ParallelVersionControlSpec.groovy
  1. … 7 more files in changeset.
Run `git reset` instead of `git update` on the Git clone created for source dependencies, to avoid unnecessary remote operations. Also renamed the working dirs and metadata dirs used for source dependencies.

  1. … 16 more files in changeset.
Changed source dependency resolution to map `latest.integration` to the `master` branch rather than the target Git repo's HEAD.

  1. … 7 more files in changeset.
Fix unit tests

  1. … 5 more files in changeset.
Added a `GitHttpRepository` fixture, which allows test to make assertion about the interactions with the Git server. This is important for performance reasons. Changed a test class to use this instead of a file repo.

  1. … 14 more files in changeset.
Changed source dependency resolution to match only tags, rather than all references such as branches, when selecting a version.

This removes the accidental support for declaring a dependency on a branch, pending an actual implementation.

  1. … 3 more files in changeset.
Simplify uses of GitRepository.commit()

The different File-taking overloads weren't that useful. You almost

always want to commit everything.

  1. … 8 more files in changeset.
Use a simpler same directory

This way windoze won't be angry

Remove annotations and share a directory

  1. … 1 more file in changeset.
Add a ParallelVersionControlSpec

This is supposed to show that it is safe to have multiple parallel

actors attempting to clone into the same working directory, and that

multiple parallel actors are able to clone into separate directories

in parallel.

But, I don't think it really does either of those things.

    • -0
    • +117
    ./ParallelVersionControlSpec.groovy
  1. … 1 more file in changeset.