Changeset 1586 in ProjectBuilder for devel


Ignore:
Timestamp:
May 24, 2012, 12:13:00 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Adds support for the PBVCSOPT env var to pass cli options to the VCS command. Example is authentication method for SVN as in pbtest.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/VCS.pm

    r1576 r1586  
    530530
    531531if (defined $ENV{'PBVCSOPT'}) {
    532     $cmdopt .= $ENV{'PBVCSOPT'};
     532    $cmdopt .= " $ENV{'PBVCSOPT'}";
    533533}
    534534
    535535if ($scheme =~ /hg/) {
    536     return($cmd."hg ".$cmdopt)
     536    return($cmd."hg".$cmdopt)
    537537} elsif ($scheme =~ /git/) {
    538     return($cmd."git ".$cmdopt)
     538    return($cmd."git".$cmdopt)
    539539} elsif ($scheme =~ /svn/) {
    540     return($cmd."svn ".$cmdopt)
     540    return($cmd."svn".$cmdopt)
    541541} elsif ($scheme =~ /svk/) {
    542     return($cmd."svk ".$cmdopt)
     542    return($cmd."svk".$cmdopt)
    543543} elsif ($scheme =~ /cvs/) {
    544     return($cmd."cvs ".$cmdopt)
     544    return($cmd."cvs".$cmdopt)
    545545} elsif (($scheme =~ /http/) || ($scheme =~ /ftp/)) {
    546546    my $command = pb_check_req("wget",1);
Note: See TracChangeset for help on using the changeset viewer.