~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-03 23:52:58 UTC
  • Revision ID: maxb@f2s.com-20091103235258-jerhw9puli9ioz3l
Set a tag when touching a refs/tags/ ref with a commit command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
492
492
        self._revision_count += 1
493
493
        self.report_progress("(%s)" % cmd.id)
494
494
 
 
495
        if cmd.ref.startswith('refs/tags/'):
 
496
            tag_name = cmd.ref[len('refs/tags/'):]
 
497
            self._set_tag(tag_name, cmd.id)
 
498
 
495
499
        # Check if we should finish up or automatically checkpoint
496
500
        if (self.max_commits is not None and
497
501
            self._revision_count >= self.max_commits):