Subversion Repositories DevTools

Rev

Rev 4076 | Rev 4185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4076 Rev 4094
Line 498... Line 498...
498
        Warning ("SvnCreatePackage: Unexpected files found",
498
        Warning ("SvnCreatePackage: Unexpected files found",
499
               "Path: $package",
499
               "Path: $package",
500
               "Unexpected files found: @$ref_files");
500
               "Unexpected files found: @$ref_files");
501
    }
501
    }
502
 
502
 
-
 
503
    #
-
 
504
    #   Check sanity of the users source directory - if importing
-
 
505
    #   The following directories are not allowed
-
 
506
    #       .svn - attempting to import an svn workspace
-
 
507
    #       tags, trunk, branches - attempt to import directory with reserved names
-
 
508
    #       .git, .hg, .cvs  - other  version control systems
-
 
509
    #
-
 
510
    if ( $import_target )
-
 
511
    {
-
 
512
        my $search = JatsLocateFiles->new("--Recurse=1",
-
 
513
                                           "--DirsOnly", 
-
 
514
                                           "--FullPath",
-
 
515
                                           "--FilterIn=.svn",
-
 
516
                                           "--FilterIn=.git",
-
 
517
                                           "--FilterIn=.hg",
-
 
518
                                           "--FilterIn=.cvs",
-
 
519
                                           "--FilterIn=tags",
-
 
520
                                           "--FilterIn=trunk",
-
 
521
                                           "--FilterIn=branches",
-
 
522
                                           );
-
 
523
        my @badDirs = $search->search($opt{'import'});
-
 
524
        if (@badDirs)
-
 
525
        {
-
 
526
            Error("SvnCreatePackage: Invalid directories found within imported source tree:", @badDirs);
-
 
527
        }
-
 
528
    }
-
 
529
 
503
    if ( @$ref_svn )
530
    if ( @$ref_svn )
504
    {
531
    {
505
        #
532
        #
506
        #   Do we need a new one
533
        #   Do we need a new one
507
        #
534
        #