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

  • Committer: Jelmer Vernooij
  • Date: 2016-07-03 12:37:40 UTC
  • mto: (0.200.1643 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20160703123740-apsj70abappsk6yk
Use new RefsContainer.follow().

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
        repo = self.open_repository()
378
378
        from bzrlib.plugins.git.branch import LocalGitBranch
379
379
        ref = self._get_selected_ref(name, ref)
380
 
        ref, sha = self._git.refs._follow(ref)
381
 
        if not ref in self._git.refs:
 
380
        ref_chain, sha = self._git.refs.follow(ref)
 
381
        if sha is None:
382
382
            raise bzr_errors.NotBranchError(self.root_transport.base,
383
383
                    bzrdir=self)
384
384
        return LocalGitBranch(self, repo, ref)