Changeset 7483
- Timestamp:
- Sep 4, 2009, 4:16:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/system_tools.py
r7317 r7483 11 11 import getpass 12 12 import tarfile 13 import warnings 14 13 15 try: 14 16 import hashlib … … 67 69 68 70 def get_revision_from_svn_entries(): 69 '''Get a subversion revision number from the .svn/ent ires file.'''71 '''Get a subversion revision number from the .svn/entries file.''' 70 72 71 73 msg = ''' … … 140 142 return get_revision_from_svn_entries() 141 143 142 # split revision number from data144 # Split revision number from data 143 145 if ':' in version_info: 144 (_, revision_number) = version_info.split(':') 145 elif version_info.endswith('M'): 146 revision_number = version_info[:-1] 146 revision_number, _ = version_info.split(':',1) 147 msg = ('Some modules have not been checked in. ' 148 'Using last version from repository: %s' % revision_number) 149 warnings.warn(msg) 147 150 else: 148 151 revision_number = version_info
Note: See TracChangeset
for help on using the changeset viewer.