changeset 3681:05d877dfd33d

fix qseries -v when there are unapplied patches
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sun, 19 Nov 2006 17:01:59 -0200
parents 69cf255a55a1
children 20912eb2667d
files hgext/mq.py tests/test-mq tests/test-mq.out
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = []
--- 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
--- 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