Ignore:
Timestamp:
02/08/10 02:23:11 (2 years ago)
Author:
adamk
Message:

Added support for --reset to flush and reset the configuration to defaults, because the Swarm plugin is instantly segfaulting Padre at startup and I didn't want to have to keep resetting the configuration by hand all the time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Util.pm

    r10436 r10615  
    535535} 
    536536 
    537 # TODO: A much better variant would be a constant set by svn. 
    538 sub revision { 
    539     if ( $0 =~ /padre$/ ) { 
    540         my $dir = $0; 
    541         $dir =~ s/padre$//; 
    542         my $revision = Padre::Util::svn_directory_revision($dir); 
    543         if ( -d "$dir.svn" ) { 
    544             return 'r' . $revision; 
    545         } 
    546     } 
    547     return; 
    548 } 
    549  
    5505371; 
    551538 
Note: See TracChangeset for help on using the changeset viewer.