/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

Fix branch cloning.

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 k,v in self.repository._git.tags.iteritems():
39
 
            ret[k] = self.branch.mapping.revision_id_foreign_to_bzr(v)
 
38
        for tag in self.repository._git.tags:
 
39
            ret[tag.name] = self.branch.mapping.revision_id_foreign_to_bzr(tag.ref)
40
40
        return ret
41
41
 
42
42
    def set_tag(self, name, revid):
43
 
        self.repository._git.tags[name] = revid
 
43
        raise NotImplementedError(self.set_tag)
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
 
 
95
92
    def lock_read(self):
96
93
        self.control_files.lock_read()
97
94