Plugins/VcsPlugins/vcsMercurial/QueuesExtension/queues.py

changeset 3034
7ce719013078
parent 3020
542e97d4ecb3
child 3036
30c81c9e88b8
equal deleted inserted replaced
3033:58fe260e7469 3034:7ce719013078
115 output = str( 115 output = str(
116 process.readAllStandardOutput(), ioEncoding, 'replace') 116 process.readAllStandardOutput(), ioEncoding, 'replace')
117 117
118 for line in output.splitlines(): 118 for line in output.splitlines():
119 if withSummary: 119 if withSummary:
120 l = line.strip().split(": ") 120 li = line.strip().split(": ")
121 if len(l) == 1: 121 if len(li) == 1:
122 patch, summary = l[0][:-1], "" 122 patch, summary = li[0][:-1], ""
123 else: 123 else:
124 patch, summary = l[0], l[1] 124 patch, summary = li[0], li[1]
125 patchesList.append("{0}@@{1}".format(patch, summary)) 125 patchesList.append("{0}@@{1}".format(patch, summary))
126 else: 126 else:
127 patchesList.append(line.strip()) 127 patchesList.append(line.strip())
128 128
129 return patchesList 129 return patchesList

eric ide

mercurial