# HG changeset patch # User Alexis S. L. Carvalho # Date 1163962919 7200 # Node ID 05d877dfd33d12bf3cf74cc36f85645c75ad063f # Parent 69cf255a55a13337c84d68f0a4372ae25fd52299 fix qseries -v when there are unapplied patches diff -r 69cf255a55a1 -r 05d877dfd33d hgext/mq.py --- a/hgext/mq.py Sun Nov 19 16:09:04 2006 +0100 +++ b/hgext/mq.py Sun Nov 19 17:01:59 2006 -0200 @@ -1106,7 +1106,6 @@ if not missing: for i in xrange(start, start+length): pfx = '' - patch = pname(i) if self.ui.verbose: if i < unapplied: status = 'A' @@ -1115,6 +1114,7 @@ else: status = 'G' pfx = '%d %s ' % (i, status) + patch = pname(i) self.ui.write('%s%s\n' % (pfx, displayname(patch))) else: msng_list = [] diff -r 69cf255a55a1 -r 05d877dfd33d tests/test-mq --- a/tests/test-mq Sun Nov 19 16:09:04 2006 +0100 +++ b/tests/test-mq Sun Nov 19 17:01:59 2006 -0200 @@ -87,6 +87,9 @@ echo % qseries hg qseries +hg qpop +hg qseries -vs +hg qpush echo % qapplied hg qapplied diff -r 69cf255a55a1 -r 05d877dfd33d tests/test-mq.out --- a/tests/test-mq.out Sun Nov 19 16:09:04 2006 +0100 +++ b/tests/test-mq.out Sun Nov 19 17:01:59 2006 -0200 @@ -89,6 +89,11 @@ % qseries test.patch test2.patch +Now at: test.patch +0 A test.patch: foo bar +1 U test2.patch: +applying test2.patch +Now at: test2.patch % qapplied test.patch test2.patch