comparison 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
comparison
equal deleted inserted replaced
3680:69cf255a55a1 3681:05d877dfd33d
1104 if not length: 1104 if not length:
1105 length = len(self.series) - start 1105 length = len(self.series) - start
1106 if not missing: 1106 if not missing:
1107 for i in xrange(start, start+length): 1107 for i in xrange(start, start+length):
1108 pfx = '' 1108 pfx = ''
1109 patch = pname(i)
1110 if self.ui.verbose: 1109 if self.ui.verbose:
1111 if i < unapplied: 1110 if i < unapplied:
1112 status = 'A' 1111 status = 'A'
1113 elif self.pushable(i)[0]: 1112 elif self.pushable(i)[0]:
1114 status = 'U' 1113 status = 'U'
1115 else: 1114 else:
1116 status = 'G' 1115 status = 'G'
1117 pfx = '%d %s ' % (i, status) 1116 pfx = '%d %s ' % (i, status)
1117 patch = pname(i)
1118 self.ui.write('%s%s\n' % (pfx, displayname(patch))) 1118 self.ui.write('%s%s\n' % (pfx, displayname(patch)))
1119 else: 1119 else:
1120 msng_list = [] 1120 msng_list = []
1121 for root, dirs, files in os.walk(self.path): 1121 for root, dirs, files in os.walk(self.path):
1122 d = root[len(self.path) + 1:] 1122 d = root[len(self.path) + 1:]