- Timestamp:
- May 5, 2009, 12:24:23 PM (15 years ago)
- Location:
- CMT/HEAD
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/ChangeLog
r499 r500 1 2009-05-05 <rybkin@lal.in2p3.fr> 395 2 3 * mgr/cmt_svn_checkout.py: Improve error messages (string representation 4 of SubversionException is simply a tuple) 5 1 6 2009-05-04 <rybkin@lal.in2p3.fr> 394 2 7 -
CMT/HEAD/mgr/cmt_svn_checkout.py
r498 r500 38 38 from svn import client, core 39 39 except ImportError, e: 40 print >>sys.stderr, '%s: %s: cannot import Subversion Python bindings' \40 print >>sys.stderr, '%s: cannot import Subversion Python bindings: %s' \ 41 41 % (self, str(e)) 42 42 sys.exit(1) … … 82 82 pass 83 83 84 def error(instance, location='', file = sys.stderr): 85 try: 86 message = ': '.join([str(arg) for arg in instance.args]) 87 except AttributeError: 88 message = instance 89 if location: location += ': ' 90 print >> file, "%s%s" % (location, message) 91 84 92 class CmtContext(object): 85 93 def __init__(self, … … 243 251 m.version = rev_tag[max(rev_tag.keys())] 244 252 except core.SubversionException, e: 245 print >> sys.stderr, e 253 error(e) 254 #print >> sys.stderr, e 246 255 m.version = 'HEAD' 247 256 except ValueError, e: # max() arg is an empty sequence … … 301 310 if not done: 302 311 for e in err: 303 print >> sys.stderr, e 312 error(e) 313 #print >> sys.stderr, e 304 314 sc += 1 305 315 continue
Note: See TracChangeset
for help on using the changeset viewer.