Changeset 8837


Ignore:
Timestamp:
Apr 18, 2013, 11:24:00 PM (12 years ago)
Author:
steve
Message:

A kludge to get the get_revision_number to sort of work on windows with svn 1.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/system_tools.py

    r8764 r8837  
    8989        fd = open(os.path.join('.svn', 'entries'))
    9090    except:
    91         raise Exception, msg
     91        #raise Exception, msg
     92
     93
     94        #FIXME SR: Need to fix this up
     95        # svn 1.7 no longer has a .svn folder in all folders
     96        # so will need a better way to get revision number
     97       
     98        from anuga.utilities.stored_version_info import version_info
     99        return process_version_info(version_info)
    92100
    93101    line = fd.readlines()[3]
     
    188196        return __get_revision_from_svn_client__()
    189197
     198
     199    return process_version_info(version_info)
     200
     201def process_version_info(version_info):
     202
    190203    # split revision number from data
    191204    for line in version_info.split('\n'):
     
    206219
    207220    return revision_number
    208 
    209221
    210222def store_version_info(destination_path='.', verbose=False):
Note: See TracChangeset for help on using the changeset viewer.