/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 breezy/controldir.py

Add a 'brz clone' command.

Merged from https://code.launchpad.net/~jelmer/brz/clone/+merge/379369

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        """
130
130
        return list(self.get_branches().values())
131
131
 
 
132
    def branch_names(self):
 
133
        """List all branch names in this control directory.
 
134
 
 
135
        :return: List of branch names
 
136
        """
 
137
        try:
 
138
            self.get_branch_reference()
 
139
        except (errors.NotBranchError, errors.NoRepositoryPresent):
 
140
            return []
 
141
        else:
 
142
            return [""]
 
143
 
132
144
    def get_branches(self):
133
145
        """Get all branches in this control directory, as a dictionary.
134
146