diff options
author | Ian Clatworthy <ian.clatworthy@canonical.com> | 2009-11-06 18:06:27 +1000 |
---|---|---|
committer | Ian Clatworthy <ian.clatworthy@canonical.com> | 2009-11-06 18:06:27 +1000 |
commit | 44e5328212670b63422fe674863a39504daca414 (patch) | |
tree | 308a42429094ad5c21bc8647954e62c4882dd77a | |
parent | 1d07ce54fba8141889b64ab1877ba8179753d221 (diff) | |
parent | a3506a1547323f377845f01bace1fb8ddf5b56c8 (diff) | |
download | python-fastimport-44e5328212670b63422fe674863a39504daca414.tar.gz |
Merge Max's fixes for tags created via commit commands
-rw-r--r-- | processors/generic_processor.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/processors/generic_processor.py b/processors/generic_processor.py index 3b67fdb..a640c85 100644 --- a/processors/generic_processor.py +++ b/processors/generic_processor.py @@ -474,6 +474,9 @@ class GenericProcessor(processor.ImportProcessor): pass self.cache_mgr._blobs = {} self._revision_count += 1 + if cmd.ref.startswith('refs/tags/'): + tag_name = cmd.ref[len('refs/tags/'):] + self._set_tag(tag_name, cmd.id) return if self.first_incremental_commit: self.first_incremental_commit = None @@ -492,6 +495,10 @@ class GenericProcessor(processor.ImportProcessor): self._revision_count += 1 self.report_progress("(%s)" % cmd.id) + if cmd.ref.startswith('refs/tags/'): + tag_name = cmd.ref[len('refs/tags/'):] + self._set_tag(tag_name, cmd.id) + # Check if we should finish up or automatically checkpoint if (self.max_commits is not None and self._revision_count >= self.max_commits): |