~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-09 02:53:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6521.
  • Revision ID: nmb@wartburg.edu-20120409025317-xtp7a6kctetx6ioc
Show tag names when using missing command

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):
 
28
def iter_log_revisions(revisions, revision_source, verbose, branch=None):
29
29
    last_tree = revision_source.revision_tree(_mod_revision.NULL_REVISION)
30
30
    last_rev_id = None
 
31
 
 
32
    if branch is not None and branch.supports_tags():
 
33
        rev_tag_dict = branch.tags.get_reverse_tag_dict()
 
34
    else:
 
35
        rev_tag_dict = {}
31
36
    for rev in revisions:
32
37
        # We need the following for backward compatibilty (hopefully
33
38
        # this will be deprecated soon :-/) -- vila 080911
41
46
            delta = revision_source.get_revision_delta(rev_id)
42
47
        else:
43
48
            delta = None
44
 
        yield log.LogRevision(rev, revno, merge_depth, delta=delta)
 
49
        yield log.LogRevision(rev, revno, merge_depth, delta=delta,
 
50
                              tags=rev_tag_dict.get(rev_id))
45
51
 
46
52
 
47
53
def find_unmerged(local_branch, remote_branch, restrict='all',