~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/missing.py

  • Committer: Neil Martinsen-Burrell
  • Date: 2012-04-11 02:22:42 UTC
  • mto: This revision was merged to the branch mainline in revision 6521.
  • Revision ID: nmb@wartburg.edu-20120411022242-ipigxsc6v6bnxnji
pass in tag dictionary instead of branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import bzrlib.revision as _mod_revision
26
26
 
27
27
 
28
 
def iter_log_revisions(revisions, revision_source, verbose, branch=None):
 
28
def iter_log_revisions(revisions, revision_source, verbose, rev_tag_dict=None):
29
29
    last_tree = revision_source.revision_tree(_mod_revision.NULL_REVISION)
30
30
    last_rev_id = None
31
31
 
32
 
    if branch is not None and branch.supports_tags():
33
 
        rev_tag_dict = branch.tags.get_reverse_tag_dict()
34
 
    else:
 
32
    if rev_tag_dict is None:
35
33
        rev_tag_dict = {}
36
34
    for rev in revisions:
37
35
        # We need the following for backward compatibilty (hopefully