Ignore:
Timestamp:
Sep 6, 2007, 8:13:48 PM (12 years ago)
Author:
bruno
Message:

SImplification on hash management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Base.pm

    r108 r112  
    277277my ($cms) = pb_conf_get("cms");
    278278# This one is optional
    279 my ($cvsroot) = pb_conf_read($ENV{'PBETC'},"cvsroot");
     279my ($cvsroot,$cvsrsh) = pb_conf_read($ENV{'PBETC'},"cvsroot","cvsrsh");
    280280
    281281if ($cms->{$proj} eq "svn") {
     
    295295    #
    296296    $ENV{'CVSROOT'} = $cvsroot->{$proj} if (defined $cvsroot->{$proj});
     297    $ENV{'CVSRSH'} = $cvsrsh->{$proj} if (defined $cvsrsh->{$proj});
    297298} else {
    298299    die "cms $cms->{$proj} unknown";
     
    314315        $tmp = $destdir."/".basename($source);
    315316    }
    316     pb_system("svn export $source $tmp","Exporting $source from SVN");
     317    pb_system("svn export $source $tmp","Exporting $source fr\"om SVN to $tmp");
    317318} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    318319    my $dir=dirname($destdir);
     
    321322    $tmp=basename($source);
    322323    # CVS needs a relative path !
    323     pb_system("cd $dir ; cvs export -D $pbdate -d $base $tmp","Exporting $source from CVS");
     324    pb_system("cd $dir ; cvs export -D \"$pbdate\" -d $base $tmp","Exporting $source from CVS to $destdir");
    324325} else {
    325326    die "cms $cms->{$ENV{'PBPROJ'}} unknown";
     
    333334
    334335if ($cms->{$ENV{'PBPROJ'}} eq "svn") {
    335     pb_system("svn log $pkgdir > $destfile","Extracting log info from SVN");
     336    pb_system("svn log -v $pkgdir > $destfile","Extracting log info from SVN");
    336337} elsif ($cms->{$ENV{'PBPROJ'}} eq "cvs") {
    337338    my $tmp=basename($pkgdir);
Note: See TracChangeset for help on using the changeset viewer.