Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 6732:3e532b97d1e1
fix default branchheads() argument (e85951aeec6e was very broken)
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 25 Jun 2008 10:54:48 +0200 |
parents | e85951aeec6e |
children | 369ddc9c0339 |
comparison
equal
deleted
inserted
replaced
6731:eed52e7ab9cc | 6732:3e532b97d1e1 |
---|---|
1203 heads = [(-self.changelog.rev(h), h) for h in heads] | 1203 heads = [(-self.changelog.rev(h), h) for h in heads] |
1204 heads.sort() | 1204 heads.sort() |
1205 return [n for (r, n) in heads] | 1205 return [n for (r, n) in heads] |
1206 | 1206 |
1207 def branchheads(self, branch=None, start=None): | 1207 def branchheads(self, branch=None, start=None): |
1208 branch = branch is None and 'default' or self.workingctx().branch() | 1208 branch = branch is None and self.workingctx().branch() or branch |
1209 branches = self.branchtags() | 1209 branches = self.branchtags() |
1210 if branch not in branches: | 1210 if branch not in branches: |
1211 return [] | 1211 return [] |
1212 # The basic algorithm is this: | 1212 # The basic algorithm is this: |
1213 # | 1213 # |