Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py

changeset 1080
dfd96566f584
parent 945
8cd4d08fa9f6
child 1082
8387830c1089
equal deleted inserted replaced
1079:f05ca3490bd1 1080:dfd96566f584
295 295
296 def __processBuffer(self): 296 def __processBuffer(self):
297 """ 297 """
298 Private method to process the buffered output of the svn log command. 298 Private method to process the buffered output of the svn log command.
299 """ 299 """
300 ioEncoding = Preferences.getSystem("IOEncoding")
301
302 noEntries = 0 300 noEntries = 0
303 log = {"message": []} 301 log = {"message": []}
304 changedPaths = [] 302 changedPaths = []
305 for s in self.buf: 303 for s in self.buf:
306 if self.rx_rev1.exactMatch(s): 304 if self.rx_rev1.exactMatch(s):
314 log["date"] = self.rx_rev2.cap(3) 312 log["date"] = self.rx_rev2.cap(3)
315 # number of lines is ignored 313 # number of lines is ignored
316 elif self.rx_flags1.exactMatch(s): 314 elif self.rx_flags1.exactMatch(s):
317 changedPaths.append({\ 315 changedPaths.append({\
318 "action": 316 "action":
319 str(self.rx_flags1.cap(1).strip(), ioEncoding, 'replace'), 317 self.rx_flags1.cap(1).strip(),
320 "path": 318 "path":
321 str(self.rx_flags1.cap(2).strip(), ioEncoding, 'replace'), 319 self.rx_flags1.cap(2).strip(),
322 "copyfrom_path": 320 "copyfrom_path":
323 str(self.rx_flags1.cap(3).strip(), ioEncoding, 'replace'), 321 self.rx_flags1.cap(3).strip(),
324 "copyfrom_revision": 322 "copyfrom_revision":
325 str(self.rx_flags1.cap(4).strip(), ioEncoding, 'replace'), 323 self.rx_flags1.cap(4).strip(),
326 }) 324 })
327 elif self.rx_flags2.exactMatch(s): 325 elif self.rx_flags2.exactMatch(s):
328 changedPaths.append({\ 326 changedPaths.append({\
329 "action": 327 "action":
330 str(self.rx_flags2.cap(1).strip(), ioEncoding, 'replace'), 328 self.rx_flags2.cap(1).strip(),
331 "path": 329 "path":
332 str(self.rx_flags2.cap(2).strip(), ioEncoding, 'replace'), 330 self.rx_flags2.cap(2).strip(),
333 "copyfrom_path": "", 331 "copyfrom_path": "",
334 "copyfrom_revision": "", 332 "copyfrom_revision": "",
335 }) 333 })
336 elif self.rx_sep1.exactMatch(s) or self.rx_sep2.exactMatch(s): 334 elif self.rx_sep1.exactMatch(s) or self.rx_sep2.exactMatch(s):
337 if len(log) > 1: 335 if len(log) > 1:

eric ide

mercurial