Plugins/VcsPlugins/vcsMercurial/HgTagBranchListDialog.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3034
7ce719013078
child 3145
a9de05d4a22f
equal deleted inserted replaced
3058:0a02c433f52d 3060:5883ce99ee12
249 """ 249 """
250 Private method to process the lines of output. 250 Private method to process the lines of output.
251 251
252 @param line output line to be processed (string) 252 @param line output line to be processed (string)
253 """ 253 """
254 l = line.split() 254 li = line.split()
255 if l[-1][0] in "1234567890": 255 if li[-1][0] in "1234567890":
256 # last element is a rev:changeset 256 # last element is a rev:changeset
257 if self.tagsMode: 257 if self.tagsMode:
258 status = "" 258 status = ""
259 else: 259 else:
260 status = self.trUtf8("active") 260 status = self.trUtf8("active")
261 rev, changeset = l[-1].split(":", 1) 261 rev, changeset = li[-1].split(":", 1)
262 del l[-1] 262 del li[-1]
263 else: 263 else:
264 if self.tagsMode: 264 if self.tagsMode:
265 status = self.trUtf8("yes") 265 status = self.trUtf8("yes")
266 else: 266 else:
267 status = l[-1][1:-1] 267 status = li[-1][1:-1]
268 rev, changeset = l[-2].split(":", 1) 268 rev, changeset = li[-2].split(":", 1)
269 del l[-2:] 269 del li[-2:]
270 name = " ".join(l) 270 name = " ".join(li)
271 self.__generateItem(rev, changeset, status, name) 271 self.__generateItem(rev, changeset, status, name)
272 if name not in ["tip", "default"]: 272 if name not in ["tip", "default"]:
273 if self.tagsList is not None: 273 if self.tagsList is not None:
274 self.tagsList.append(name) 274 self.tagsList.append(name)
275 if self.allTagsList is not None: 275 if self.allTagsList is not None:

eric ide

mercurial