/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

Cope with open_branch() actually checking whether there is a branch present.

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
    def __init__(self, bzrdir, repository, name, lockfiles, tagsdict=None):
252
252
        super(LocalGitBranch, self).__init__(bzrdir, repository, name, 
253
253
              lockfiles, tagsdict)
254
 
        if not name in repository._git.refs.get_refs().keys():
 
254
        if not name in repository._git.get_refs().keys():
255
255
            raise errors.NotBranchError(self.base)
256
256
 
257
257
    def create_checkout(self, to_location, revision_id=None, lightweight=False,