summaryrefslogtreecommitdiff
path: root/processors/generic_processor.py
diff options
context:
space:
mode:
authortermie <code@term.ie>2011-01-30 14:31:03 -0800
committertermie <code@term.ie>2011-01-30 14:31:03 -0800
commit1efe12dfdf0b360f89ec30ed1f30b749f826bcba (patch)
tree903dc7a698177a0efb7983ddb383895cdf7f8f6c /processors/generic_processor.py
parent76db1c7174544db3223397743d81e9a67802577f (diff)
downloadbzr-fastimport-1efe12dfdf0b360f89ec30ed1f30b749f826bcba.tar.gz
Add a bunch of mark id normalization.
bzr-fastimport is getting marks from a variety of sources, all of which us the format ':\d+' but it really wants just the raw number internally. This patch cleans up the symptoms of many places where this normalization was not occuring.
Diffstat (limited to 'processors/generic_processor.py')
-rw-r--r--processors/generic_processor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/processors/generic_processor.py b/processors/generic_processor.py
index 093a432..e17a2ff 100644
--- a/processors/generic_processor.py
+++ b/processors/generic_processor.py
@@ -533,9 +533,9 @@ class GenericProcessor(processor.ImportProcessor):
except:
print "ABORT: exception occurred processing commit %s" % (cmd.id)
raise
- self.cache_mgr.revision_ids[cmd.id] = handler.revision_id
+ self.cache_mgr.revision_ids[cmd.id.lstrip(':')] = handler.revision_id
self._revision_count += 1
- self.report_progress("(%s)" % cmd.id)
+ self.report_progress("(%s)" % cmd.id.lstrip(':'))
if cmd.ref.startswith('refs/tags/'):
tag_name = cmd.ref[len('refs/tags/'):]