[PATCH] a small patch for mq
Xiaofeng Ling
xiaofeng.ling at intel.com
Thu Sep 8 20:54:43 CDT 2005
Chris,
I make a small patch to show the patches more clearly.
also, I add "qlist" just because it is much more easy to type:)
diff -r cfe262dcc6f3 contrib/mq
--- a/contrib/mq Wed Sep 7 19:12:52 2005
+++ b/contrib/mq Fri Sep 9 09:45:45 2005
@@ -524,8 +524,11 @@
self.ui.write("%s\n" % p)
def qseries(self, repo):
- for p in self.series:
- self.ui.write("%s\n" % p)
+ start = len(self.applied)
+ for p in self.series[:start]:
+ self.ui.write("%s \t[A]\n" % p)
+ for p in self.series[start:]:
+ self.ui.write("%s \t[U]\n" % p)
def qapplied(self, repo, patch=None):
if patch and patch not in self.series:
@@ -660,6 +663,7 @@
'hg qpush [options] [patch]'),
"^qrefresh": (refresh, [('s', 'short', None, 'short refresh')],"hg
qrefresh"),
"qseries": (series, [], "hg qseries"),
+ "qlist": (series, [], "hg qseries"),
"^strip": (strip, [('f', 'force', None, 'force multi-head
removal')], "hg strip rev"),
"qtop": (top, [], "hg qtop"),
"qunapplied": (unapplied, [], "hg qunapplied [patch]"),
Chris Mason wrote:
> On Thu, 8 Sep 2005 23:43:51 +0800
> "Ling, Xiaofeng" <xiaofeng.ling at intel.com> wrote:
>
>
>
>>good, I'm just thinking that if we have these enhanced commands,it
>>will be perfect. 1. hg qimport <patch1> <patch2> ...
More information about the Mercurial
mailing list