diff -r 637627f31c74 -r d73c3034deee mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Dec 03 11:23:38 2010 +0100 +++ b/mercurial/localrepo.py Fri Dec 03 11:30:45 2010 +0100 @@ -1220,7 +1220,7 @@ def heads(self, start=None): heads = self.changelog.heads(start) # sort the output in rev descending order - return sorted(heads, key=self.changelog.rev, reverse=True) + return sorted(heads, key=self.changelog.rev, reverse=True) def branchheads(self, branch=None, start=None, closed=False): '''return a (possibly filtered) list of heads for the given branch