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) |