Lock paths in the scm cache
[?]
Feb 21, 2017, 5:11 PM
7EGUBBRQLBNFHH2E3ZMOTJBV36JG2A4Y5J2CR5I7V3WOXJVNLXYACDependencies
- [2]
IBW53PUCHipChat notification: add support for Mercurial inputs for determining who might have broken the build. - [3]
CKYPPACOHopefully fix UTF-8 chars in Hipchat notification messages - [4]
3BTJRSU3GitInput.pm: Don't do a chdir to the Git clone - [5]
NB2VOKIRInclude names of committers in HipChat notifications - [6]
JAH3UPWASupport revision control systems via plugins
Change contents
- edit in src/lib/Hydra/Plugin/GitInput.pm at line 10
use Fcntl qw(:flock); - replacement in src/lib/Hydra/Plugin/GitInput.pm at line 22
# Clone or update a branch of a repository into our SCM cache.sub _cloneRepo {my ($self, $uri, $branch, $deepClone) = @_;sub _parseValue {my ($value) = @_;(my $uri, my $branch, my $deepClone) = split ' ', $value;$branch = defined $branch ? $branch : "master";return ($uri, $branch, $deepClone);}sub fetchInput {my ($self, $type, $name, $value) = @_;return undef if $type ne "git";my ($uri, $branch, $deepClone) = _parseValue($value); - edit in src/lib/Hydra/Plugin/GitInput.pm at line 36
# Clone or update a branch of the repository into our SCM cache. - edit in src/lib/Hydra/Plugin/GitInput.pm at line 40
open(my $lock, ">", "$clonePath.lock") or die;flock($lock, LOCK_EX) or die; - edit in src/lib/Hydra/Plugin/GitInput.pm at line 78
return $clonePath;}sub _parseValue {my ($value) = @_;(my $uri, my $branch, my $deepClone) = split ' ', $value;$branch = defined $branch ? $branch : "master";return ($uri, $branch, $deepClone);}sub fetchInput {my ($self, $type, $name, $value) = @_;return undef if $type ne "git"; - edit in src/lib/Hydra/Plugin/GitInput.pm at line 79
my ($uri, $branch, $deepClone) = _parseValue($value);my $clonePath = $self->_cloneRepo($uri, $branch, $deepClone); - edit in src/lib/Hydra/Plugin/MercurialInput.pm at line 9
use Fcntl qw(:flock); - edit in src/lib/Hydra/Plugin/MercurialInput.pm at line 43
open(my $lock, ">", "$clonePath.lock") or die;flock($lock, LOCK_EX) or die;