def _get_ui_branches(self, reverse=False): """Generates the list of displayable branches """ repos = Repository(self.env) branches = repos.get_branch_names_with_prop() branches = sorted(branches, reverse=reverse, cmp=self.cmp_func) branches.insert(0, ('all', None)) return branches