mercurial/localrepo.py
changeset 6732 3e532b97d1e1
parent 6726 e85951aeec6e
child 6736 369ddc9c0339
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         #