~maxb/bzr-fastimport/tag-on-fi-commit-to-tag-ref

« back to all changes in this revision

Viewing changes to processors/generic_processor.py

  • Committer: Max Bowsher
  • Date: 2009-11-04 01:58:36 UTC
  • Revision ID: maxb@f2s.com-20091104015836-030fuz82vbpjw1vm
Also catch tagging via commit when resuming a crashed import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
474
474
                pass
475
475
            self.cache_mgr._blobs = {}
476
476
            self._revision_count += 1
 
477
            if cmd.ref.startswith('refs/tags/'):
 
478
                tag_name = cmd.ref[len('refs/tags/'):]
 
479
                self._set_tag(tag_name, cmd.id)
477
480
            return
478
481
        if self.first_incremental_commit:
479
482
            self.first_incremental_commit = None