Changeset 2022 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Dec 6, 2015, 3:46:51 AM (9 years ago)
- Location:
- devel/pb-modules/lib/ProjectBuilder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/lib/ProjectBuilder/Env.pm
r1958 r2022 309 309 # 310 310 pb_vcs_compliant("pbconfdir",'PBCONFDIR',"$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}/pbconf",$pbconf{$ENV{'PBPROJ'}},$pbinit); 311 my ($scheme, $account, $host, $port, $path) = pb_get_uri($pbconf{$ENV{'PBPROJ'}}); 311 312 312 313 # Check where is our PBROOTDIR (release tag name can't be guessed the first time) … … 327 328 # transform in full path if relative 328 329 $ENV{'PBROOTDIR'} = "$ENV{'PBCONFDIR'}/$ENV{'PBROOTDIR'}" if ($ENV{'PBROOTDIR'} !~ /^\//); 330 # If git, then versions are in branch not in dirs. 331 $ENV{'PBROOTDIR'} = "$ENV{'PBCONFDIR'}" if ($scheme =~ /^git/); 329 332 pb_mkdir_p($ENV{'PBROOTDIR'}) if (defined $pbinit); 330 333 die "$ENV{'PBROOTDIR'} is not a directory" if (not -d $ENV{'PBROOTDIR'}); -
devel/pb-modules/lib/ProjectBuilder/VCS.pm
r1958 r2022 447 447 } elsif ($scheme =~ /^((hg)|(git))/o) { 448 448 foreach my $d (@dir) { 449 pb_system("(cd $d && $vcscmd pull)", "Updating $d ");449 pb_system("(cd $d && $vcscmd fetch)", "Updating $d "); 450 450 } 451 451 } elsif ($scheme =~ /^(flat)|(ftp)|(http)|(file)\b/o) { … … 545 545 my $l = undef; 546 546 547 if ($scheme =~ /^((svn)|(cvs)|(svk) )/o) {547 if ($scheme =~ /^((svn)|(cvs)|(svk)|(git))/o) { 548 548 open(PIPE,"$vcscmd diff $dir |") || confess "Unable to get $vcscmd diff from $dir"; 549 549 $l = 0; … … 685 685 # Either we have a version in the uri, and it should be the same 686 686 # as the one in the envar. Or we should add the version to the uri 687 # #But not if it's git as it manages version branches internally687 # But not if it's git as it manages version branches internally 688 688 if ((basename($uri) ne basename($ENV{$envar})) && ($scheme !~ /^git/)) { 689 689 $uri .= "/".basename($ENV{$envar}) … … 704 704 # remove schema from `git+file:` and `git+dir:` urls 705 705 # TODO: handle query-parameters 706 $uri =~ s/^git\+(file|dir )://;706 $uri =~ s/^git\+(file|dir|ssh):[\/]*//; 707 707 # Expand potential env variable in it -- this is required due to the consistency check 708 708 $uri =~ s/(\$ENV.+\})/$1/eeg;
Note:
See TracChangeset
for help on using the changeset viewer.