/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

Provide proper colocated branch support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        return get_rich_root_format(stacked)
79
79
 
80
80
    def _branch_name_to_ref(self, name):
81
 
        if name is None and name != "HEAD":
 
81
        if name is None:
82
82
            return "HEAD"
83
83
        if not "/" in name:
84
84
            return "refs/heads/%s" % name
120
120
    get_workingtree_transport = get_branch_transport
121
121
 
122
122
 
123
 
    def open_branch(self, ignore_fallbacks=None, name=None, unsupported=False):
 
123
    def open_branch(self, name=None, ignore_fallbacks=None, unsupported=False):
124
124
        """'create' a branch for this dir."""
125
125
        repo = self.open_repository()
126
126
        from bzrlib.plugins.git.branch import LocalGitBranch