diff hgext/mq.py @ 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 437489d8dfbf
children 193e9c6d1a6d
line wrap: on
line diff
--- 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 = []