--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1106,7 +1106,6 @@ class queue:
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 @@ class queue:
else:
status = 'G'
pfx = '%d %s ' % (i, status)
+ patch = pname(i)
self.ui.write('%s%s\n' % (pfx, displayname(patch)))
else:
msng_list = []
--- a/tests/test-mq
+++ b/tests/test-mq
@@ -87,6 +87,9 @@ hg --traceback qpush -a
echo % qseries
hg qseries
+hg qpop
+hg qseries -vs
+hg qpush
echo % qapplied
hg qapplied
--- a/tests/test-mq.out
+++ b/tests/test-mq.out
@@ -89,6 +89,11 @@ Now at: test2.patch
% 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