/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

Provide proper colocated branch support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
248
248
class LocalGitBranch(GitBranch):
249
249
    """A local Git branch."""
250
250
 
 
251
    def __init__(self, bzrdir, repository, name, lockfiles, tagsdict=None):
 
252
        super(LocalGitBranch, self).__init__(bzrdir, repository, name, 
 
253
              lockfiles, tagsdict)
 
254
        if not name in repository._git.refs:
 
255
            raise errors.NotBranchError(self.base)
 
256
 
251
257
    def create_checkout(self, to_location, revision_id=None, lightweight=False,
252
258
        accelerator_tree=None, hardlink=False):
253
259
        if lightweight: