diff options
author | Ian Clatworthy <ian.clatworthy@internode.on.net> | 2009-04-09 10:55:27 +1000 |
---|---|---|
committer | Ian Clatworthy <ian.clatworthy@internode.on.net> | 2009-04-09 10:55:27 +1000 |
commit | 6ef0a73fb4421d1177f2a09e8e2af5186172a8f2 (patch) | |
tree | 39744800bf761b191f4a446f37cb683edd78f8e8 | |
parent | fb1e2266d98f387136b5379cae3dc4ef69b0b428 (diff) | |
download | bzr-fastimport-6ef0a73fb4421d1177f2a09e8e2af5186172a8f2.tar.gz |
report triggering commit when exception occurs
-rw-r--r-- | processors/generic_processor.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/processors/generic_processor.py b/processors/generic_processor.py index 8cac856..610e300 100644 --- a/processors/generic_processor.py +++ b/processors/generic_processor.py @@ -455,7 +455,11 @@ class GenericProcessor(processor.ImportProcessor): # 'Commit' the revision and report progress handler = self.commit_handler_factory(cmd, self.cache_mgr, self.rev_store, verbose=self.verbose) - handler.process() + try: + handler.process() + except: + print "ABORT: exception occurred processing commit %s" % (cmd.id) + raise self.cache_mgr.revision_ids[cmd.id] = handler.revision_id self._revision_count += 1 self.report_progress("(%s)" % cmd.id) |