Show More
@@ -79,6 +79,13 b' class MercurialRepository(BaseRepository' | |||||
79 | def branches(self): |
|
79 | def branches(self): | |
80 | return self._get_branches() |
|
80 | return self._get_branches() | |
81 |
|
81 | |||
|
82 | @LazyProperty | |||
|
83 | def allbranches(self): | |||
|
84 | """ | |||
|
85 | List all branches, including closed branches. | |||
|
86 | """ | |||
|
87 | return self._get_branches(closed=True) | |||
|
88 | ||||
82 | def _get_branches(self, closed=False): |
|
89 | def _get_branches(self, closed=False): | |
83 | """ |
|
90 | """ | |
84 | Get's branches for this repository |
|
91 | Get's branches for this repository | |
@@ -460,7 +467,7 b' class MercurialRepository(BaseRepository' | |||||
460 | raise RepositoryError("Start revision '%s' cannot be " |
|
467 | raise RepositoryError("Start revision '%s' cannot be " | |
461 | "after end revision '%s'" % (start, end)) |
|
468 | "after end revision '%s'" % (start, end)) | |
462 |
|
469 | |||
463 | if branch_name and branch_name not in self.branches.keys(): |
|
470 | if branch_name and branch_name not in self.allbranches.keys(): | |
464 | raise BranchDoesNotExistError('Branch %s not found in' |
|
471 | raise BranchDoesNotExistError('Branch %s not found in' | |
465 | ' this repository' % branch_name) |
|
472 | ' this repository' % branch_name) | |
466 | if end_pos is not None: |
|
473 | if end_pos is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now