/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

Merge new bzr-foreign.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
    def get_tag_dict(self):
37
37
        ret = {}
38
 
        for tag in self.repository._git.tags:
39
 
            ret[tag.name] = self.branch.mapping.revision_id_foreign_to_bzr(tag.ref)
 
38
        for k,v in self.repository._git.tags.iteritems():
 
39
            ret[k] = self.branch.mapping.revision_id_foreign_to_bzr(v)
40
40
        return ret
41
41
 
42
42
    def set_tag(self, name, revid):
43
 
        raise NotImplementedError(self.set_tag)
 
43
        self.repository._git.tags[name] = revid
44
44
 
45
45
 
46
46
class GitBranchConfig(config.BranchConfig):
89
89
        """See Branch.get_parent()."""
90
90
        return None
91
91
 
 
92
    def set_parent(self, url):
 
93
        pass
 
94
 
92
95
    def lock_read(self):
93
96
        self.control_files.lock_read()
94
97