Changeset 8453 for trunk/misc/tools/pytools/rcvs.py
- Timestamp:
- Jun 22, 2012, 5:22:58 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/misc/tools/pytools/rcvs.py
r18 r8453 98 98 if len(username) == 0: 99 99 msg = 'Could not infer user name from environment variable CVSROOT (%s)' %s 100 raise msg100 raise Exception(msg) 101 101 102 102 if len(cvs_client) == 0: 103 103 msg = 'Could not infer CVS client from environment variable CVSROOT (%s)' %s 104 raise msg104 raise Exception(msg) 105 105 106 106 … … 159 159 160 160 if not 'CVS' in os.listdir(localdir): 161 raise 'No CVS directory in current directory'161 raise Exception('No CVS directory in current directory') 162 162 163 163 FN = localdir + sep + 'CVS' + sep + 'Entries' … … 166 166 except: 167 167 msg = 'Could not open %s' %FN 168 raise msg168 raise Exception(msg) 169 169 else: 170 170 files = '' … … 186 186 187 187 if not 'CVS' in os.listdir(localdir): 188 raise 'No CVS directory in current directory'188 raise Exception('No CVS directory in current directory') 189 189 190 190 … … 194 194 except: 195 195 msg = 'Could not open %s' %FN 196 raise msg196 raise Exception(msg) 197 197 else: 198 198 repository = fid.readlines()[0].strip() … … 205 205 # msg = 'Local directory (%s) and ' %local 206 206 # msg += 'CVS repository (%s) must have the same name' %repository 207 # raise msg207 # raise Exception(msg) 208 208 209 209 return repository … … 290 290 pass 291 291 #msg = 'Could not create directory %s' %arg 292 #raise msg292 #raise Exception(msg) 293 293 294 294 os.chdir(arg)
Note: See TracChangeset
for help on using the changeset viewer.