Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py

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

eric ide

mercurial