Changeset 285
- Timestamp:
- Mar 9, 2009, 5:25:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dasscm/dasscm
r284 r285 580 580 } 581 581 582 sub svn_remove_unknown_files( ;$ ) 583 { 584 my $path = shift || $DASSCM_REPO; 585 586 ( my $rc_update, my @result ) = run_command("$SVN status '$path'" ); 587 588 if ( $rc_update != 0 ) { 589 print "\n", @result; 590 error("failed to receive subversion repository information"); 591 } else { 592 foreach (@result) { 593 if( s/^\? +// ) { 594 chomp; 595 # if file is unknown to subversion (line starts with "?") 596 # remove it 597 print "removing $_\n"; 598 unlink( $_ ); 599 } 600 } 601 } 602 } 603 582 604 sub getModifiedFiles( ;$ ) 583 605 { … … 1176 1198 1177 1199 svn_revert($DASSCM_REPO); 1200 svn_remove_unknown_files($DASSCM_REPO); 1178 1201 } 1179 1202
Note:
See TracChangeset
for help on using the changeset viewer.