# HG changeset patch # User "Mathieu Clabaut " # Date 1153868613 -7200 # Node ID ec05ce9cbf474337d60a45062a5d426144c1a07c # Parent 7c81e337fed22ec79ad8d88a4ea6755919235705 mq: uniform verbose display of patche[s]. In verbose mode, display: "index patchname" for unapplied patches "index cset:patchnames" for applied patches "index status patchname" in the serie listing. diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -852,6 +852,8 @@ class queue: else: start = self.series.index(patch) + 1 for p in self.series[start:]: + if self.ui.verbose: + self.ui.write("%d " % self.series.index(p)) self.ui.write("%s\n" % p) def qseries(self, repo, missing=None): @@ -999,8 +1001,11 @@ class queue: def appliedname(self, index): p = self.applied[index] + pname = p.split(':')[1] if not self.ui.verbose: - p = p.split(':')[1] + p = pname + else: + p = str(self.series.index(pname)) + " " + p return p def top(self, repo): @@ -1015,7 +1020,10 @@ class queue: if end == len(self.series): self.ui.write("All patches applied\n") else: - self.ui.write(self.series[end] + '\n') + p = self.series[end] + if self.ui.verbose: + self.ui.write("%d " % self.series.index(p)) + self.ui.write(p + '\n') def prev(self, repo): if len(self.applied) > 1: