diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1076,7 +1076,7 @@ class queue(object): if move: if not patch: - raise util.Abort(_("please specify the patch to move")) + raise util.Abort(_("please specify the patch to move")) for i, rpn in enumerate(self.full_series[start:]): # strip markers for patch guards if self.guard_re.split(rpn, 1)[0] == patch: diff --git a/hgext/record.py b/hgext/record.py --- a/hgext/record.py +++ b/hgext/record.py @@ -344,10 +344,10 @@ def filterpatch(ui, chunks): # new hunk if resp_file[0] is None and resp_all[0] is None: chunk.pretty(ui) - r = total == 1 and prompt(_('record this change to %r?') % - chunk.filename()) \ - or prompt(_('record change %d/%d to %r?') % - (pos, total, chunk.filename())) + r = (total == 1 + and prompt(_('record this change to %r?') % chunk.filename()) + or prompt(_('record change %d/%d to %r?') % + (pos, total, chunk.filename()))) if r: if fixoffset: chunk = copy.copy(chunk) diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1220,7 +1220,7 @@ class localrepository(repo.repository): 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