# 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 --git a/hgext/mq.py b/hgext/mq.py --- 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 = [] diff --git a/tests/test-mq b/tests/test-mq --- 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 diff --git a/tests/test-mq.out b/tests/test-mq.out --- 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