Changeset 363 for trunk


Ignore:
Timestamp:
05/20/10 14:45:20 (14 years ago)
Author:
bas
Message:

Automaticaly determine trac version. There is no need for trac_version in /etc/email2trac.conf

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r360 r363  
    1 2010-XX-XX
     12010-05-20
    22  * email2trac crashed if there are '/' and '\' characters in a filename.
    33    These characters are now being replace by '_', closes #196
     
    3636   Author: ibarton add fit dot vutbr dot cz (alias Blackhex)
    3737   Applied by with some modification: Bas van der Vlies
     38
     39  * Trac version is now automatically determined. No need anymore for
     40    trac_version in /etc/email2trac.conf
     41    Author: Bas van der Vlies
    3842
    39432010-03-20
  • trunk/debian/changelog

    r360 r363  
     1email2trac (1.4.0-3) stable; urgency=low
     2
     3  * Automatically determine trac version
     4
     5 -- Bas van der Vlies <basv@sara.nl>  Thu, 20 May 2010 14:43:05 +0200
     6
    17email2trac (1.4.0-2) stable; urgency=low
    28
  • trunk/email2trac.py.in

    r362 r363  
    4242    project      : /data/trac/test   # REQUIRED
    4343    debug        : 1                 # OPTIONAL, if set print some DEBUG info
    44     trac_version : 0.10              # OPTIONAL, default is 0.11
    4544
    4645    [jouvin]                         # OPTIONAL project declaration, if set both fields necessary
     
    7574import traceback
    7675
     76from trac import __version__ as trac_version
    7777
    7878# Will fail where unavailable, e.g. Windows
     
    20412041        settings['dry_run'] = dry_run
    20422042        settings['verbose'] = verbose
     2043
     2044
     2045        # Determine major trac version used to be in email2trac.conf
     2046        #
     2047        version = '0.%s' %(trac_version.split('.')[1])
     2048        if verbose:
     2049                print "Found trac version: %s" %(version)
    20432050       
    2044         if settings.has_key('trac_version'):
    2045                 version = settings['trac_version']
    2046         else:
    2047                 version = trac_default_version
    2048 
    2049 
    20502051        #debug HvB
    20512052        #print settings
Note: See TracChangeset for help on using the changeset viewer.