/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to remote.py

  • Committer: Jelmer Vernooij
  • Date: 2009-03-16 13:56:04 UTC
  • mto: (0.200.259 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090316135604-9nkd7d2ztiygybiy
Strip ref directory name from tag names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
        for k,v in refs.iteritems():
181
181
            if k.startswith("refs/tags/") and not k.endswith("^{}"):
182
182
                v = refs.get(k+"^{}", v)
183
 
                ret[k] = self.branch.mapping.revision_id_foreign_to_bzr(v)
 
183
                ret[k[len("refs/tags/"):]] = self.branch.mapping.revision_id_foreign_to_bzr(v)
184
184
        return ret
185
185
 
186
186
    def set_tag(self, name, revid):