/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 branch.py

Use bzr-foreign function names for converting between git and bzr revids.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    def get_tag_dict(self):
36
36
        ret = {}
37
37
        for tag in self.repository._git.tags:
38
 
            ret[tag.name] = default_mapping.convert_revision_id_git_to_bzr(tag.commit.id)
 
38
            ret[tag.name] = default_mapping.revision_id_foreign_to_bzr(tag.commit.id)
39
39
        return ret
40
40
 
41
41
    def set_tag(self, name, revid):
84
84
        # perhaps should escape this ?
85
85
        if self.head is None:
86
86
            return revision.NULL_REVISION
87
 
        return default_mapping.convert_revision_id_git_to_bzr(self.head)
 
87
        return default_mapping.revision_id_foreign_to_bzr(self.head)
88
88
 
89
89
    def _make_tags(self):
90
90
        return GitTagDict(self)
109
109
            skip += max_count
110
110
            for cm in cms:
111
111
                if cm.id == nextid:
112
 
                    ret.append(default_mapping.convert_revision_id_git_to_bzr(cm.id))
 
112
                    ret.append(default_mapping.revision_id_foreign_to_bzr(cm.id))
113
113
                    if cm.parents == []:
114
114
                        nextid = None
115
115
                    else: