Plugins/VcsPlugins/vcsPySvn/SvnLogBrowserDialog.py

changeset 424
d0915392cbd7
parent 96
9624a110667d
child 537
72b32daeb8d6
equal deleted inserted replaced
422:dd7c1558b1df 424:d0915392cbd7
136 """ 136 """
137 if revision == "": 137 if revision == "":
138 rev = "" 138 rev = ""
139 self.__lastRev = 0 139 self.__lastRev = 0
140 else: 140 else:
141 rev = "%7d" % revision.number 141 rev = "{0:7d}".format(revision.number)
142 self.__lastRev = revision.number 142 self.__lastRev = revision.number
143 if date == "": 143 if date == "":
144 dt = "" 144 dt = ""
145 else: 145 else:
146 dt = formatTime(date) 146 dt = formatTime(date)
156 else: 156 else:
157 copyPath = changedPath["copyfrom_path"] 157 copyPath = changedPath["copyfrom_path"]
158 if changedPath["copyfrom_revision"] is None: 158 if changedPath["copyfrom_revision"] is None:
159 copyRev = "" 159 copyRev = ""
160 else: 160 else:
161 copyRev = "%7d" % changedPath["copyfrom_revision"].number 161 copyRev = "{0:7d}".format(changedPath["copyfrom_revision"].number)
162 change = { 162 change = {
163 "action" : changedPath["action"], 163 "action" : changedPath["action"],
164 "path" : changedPath["path"], 164 "path" : changedPath["path"],
165 "copyfrom_path" : copyPath, 165 "copyfrom_path" : copyPath,
166 "copyfrom_revision" : copyRev, 166 "copyfrom_revision" : copyRev,
473 searchRx = QRegExp(self.rxEdit.text(), Qt.CaseInsensitive) 473 searchRx = QRegExp(self.rxEdit.text(), Qt.CaseInsensitive)
474 elif txt == self.trUtf8("Revision"): 474 elif txt == self.trUtf8("Revision"):
475 fieldIndex = 0 475 fieldIndex = 0
476 txt = self.rxEdit.text() 476 txt = self.rxEdit.text()
477 if txt.startswith("^"): 477 if txt.startswith("^"):
478 searchRx = QRegExp("^\s*%s" % txt[1:], Qt.CaseInsensitive) 478 searchRx = QRegExp("^\s*{0}".format(txt[1:]), Qt.CaseInsensitive)
479 else: 479 else:
480 searchRx = QRegExp(txt, Qt.CaseInsensitive) 480 searchRx = QRegExp(txt, Qt.CaseInsensitive)
481 else: 481 else:
482 fieldIndex = 3 482 fieldIndex = 3
483 searchRx = QRegExp(self.rxEdit.text(), Qt.CaseInsensitive) 483 searchRx = QRegExp(self.rxEdit.text(), Qt.CaseInsensitive)

eric ide

mercurial