Changeset 8837 for trunk/anuga_core/source/anuga/utilities/system_tools.py
- Timestamp:
- Apr 18, 2013, 11:24:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/utilities/system_tools.py
r8764 r8837 89 89 fd = open(os.path.join('.svn', 'entries')) 90 90 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) 92 100 93 101 line = fd.readlines()[3] … … 188 196 return __get_revision_from_svn_client__() 189 197 198 199 return process_version_info(version_info) 200 201 def process_version_info(version_info): 202 190 203 # split revision number from data 191 204 for line in version_info.split('\n'): … … 206 219 207 220 return revision_number 208 209 221 210 222 def store_version_info(destination_path='.', verbose=False):
Note: See TracChangeset
for help on using the changeset viewer.