##// END OF EJS Templates
changelog: make it possible to use closed branches in ?branch=......
Mads Kiilerich -
r3555:ff0646d1 beta
parent child Browse files
Show More
@@ -79,6 +79,13 b' class MercurialRepository(BaseRepository'
79 79 def branches(self):
80 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 89 def _get_branches(self, closed=False):
83 90 """
84 91 Get's branches for this repository
@@ -460,7 +467,7 b' class MercurialRepository(BaseRepository'
460 467 raise RepositoryError("Start revision '%s' cannot be "
461 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 471 raise BranchDoesNotExistError('Branch %s not found in'
465 472 ' this repository' % branch_name)
466 473 if end_pos is not None:
General Comments 0
You need to be logged in to leave comments. Login now