Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py

changeset 6247
5c677a7f7d51
parent 6048
82ad8ec9548c
child 6645
ad476851d7e0
equal deleted inserted replaced
6246:fe07a9f16f23 6247:5c677a7f7d51
72 self.process.readyReadStandardError.connect(self.__readStderr) 72 self.process.readyReadStandardError.connect(self.__readStderr)
73 73
74 self.rx_sep1 = QRegExp('\\-+\\s*') 74 self.rx_sep1 = QRegExp('\\-+\\s*')
75 self.rx_sep2 = QRegExp('=+\\s*') 75 self.rx_sep2 = QRegExp('=+\\s*')
76 self.rx_rev1 = QRegExp( 76 self.rx_rev1 = QRegExp(
77 'rev ([0-9]+): ([^|]*) \| ([^|]*) \| ([0-9]+) .*') 77 r'rev ([0-9]+): ([^|]*) \| ([^|]*) \| ([0-9]+) .*')
78 # "rev" followed by one or more decimals followed by a colon followed 78 # "rev" followed by one or more decimals followed by a colon followed
79 # anything up to " | " (twice) followed by one or more decimals 79 # anything up to " | " (twice) followed by one or more decimals
80 # followed by anything 80 # followed by anything
81 self.rx_rev2 = QRegExp( 81 self.rx_rev2 = QRegExp(
82 'r([0-9]+) \| ([^|]*) \| ([^|]*) \| ([0-9]+) .*') 82 r'r([0-9]+) \| ([^|]*) \| ([^|]*) \| ([0-9]+) .*')
83 # "r" followed by one or more decimals followed by " | " followed 83 # "r" followed by one or more decimals followed by " | " followed
84 # anything up to " | " (twice) followed by one or more decimals 84 # anything up to " | " (twice) followed by one or more decimals
85 # followed by anything 85 # followed by anything
86 self.rx_flags1 = QRegExp( 86 self.rx_flags1 = QRegExp(
87 r""" ([ADM])\s(.*)\s+\(\w+\s+(.*):([0-9]+)\)\s*""") 87 r""" ([ADM])\s(.*)\s+\(\w+\s+(.*):([0-9]+)\)\s*""")
662 elif txt == self.tr("Revision"): 662 elif txt == self.tr("Revision"):
663 fieldIndex = 0 663 fieldIndex = 0
664 txt = self.rxEdit.text() 664 txt = self.rxEdit.text()
665 if txt.startswith("^"): 665 if txt.startswith("^"):
666 searchRx = QRegExp( 666 searchRx = QRegExp(
667 "^\s*{0}".format(txt[1:]), Qt.CaseInsensitive) 667 r"^\s*{0}".format(txt[1:]), Qt.CaseInsensitive)
668 else: 668 else:
669 searchRx = QRegExp(txt, Qt.CaseInsensitive) 669 searchRx = QRegExp(txt, Qt.CaseInsensitive)
670 else: 670 else:
671 fieldIndex = 3 671 fieldIndex = 3
672 searchRx = QRegExp(self.rxEdit.text(), Qt.CaseInsensitive) 672 searchRx = QRegExp(self.rxEdit.text(), Qt.CaseInsensitive)

eric ide

mercurial