~ubuntu-branches/ubuntu/gutsy/bzr/gutsy

« back to all changes in this revision

Viewing changes to bzrlib/tag.py

  • Committer: Bazaar Package Importer
  • Author(s): Etienne Goyer
  • Date: 2007-04-27 17:53:49 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20070427175349-rvowqx994rfuikuu
Tags: 0.16~rc1-0ubuntu1
New upstream development release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
        finally:
113
113
            self.branch.unlock()
114
114
 
 
115
    def get_reverse_tag_dict(self):
 
116
        """Returns a dict with revisions as keys
 
117
           and a list of tags for that revision as value"""
 
118
        d = self.get_tag_dict()
 
119
        rev = {}
 
120
        for key in d:
 
121
            try:
 
122
                rev[d[key]].append(key)
 
123
            except KeyError:
 
124
                rev[d[key]] = [key]
 
125
        return rev
 
126
 
115
127
    def delete_tag(self, tag_name):
116
128
        """Delete a tag definition.
117
129
        """