/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

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 18:52:18 UTC
  • mto: (7490.7.7 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200322185218-4q1r1g0gof7ya53j
Fix reference handling.

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