41 self.setupUi(self) |
41 self.setupUi(self) |
42 |
42 |
43 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
43 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) |
44 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
44 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) |
45 |
45 |
46 self.process = None |
|
47 self.vcs = vcs |
46 self.vcs = vcs |
|
47 |
|
48 self.process = QProcess() |
|
49 self.process.finished.connect(self.__procFinished) |
|
50 self.process.readyReadStandardOutput.connect(self.__readStdout) |
|
51 self.process.readyReadStandardError.connect(self.__readStderr) |
48 |
52 |
49 self.rx_status = QRegExp( |
53 self.rx_status = QRegExp( |
50 '(.{8,9})\\s+([0-9-]+)\\s+([0-9?]+)\\s+(\\S+)\\s+(.+)\\s*') |
54 '(.{8,9})\\s+([0-9-]+)\\s+([0-9?]+)\\s+(\\S+)\\s+(.+)\\s*') |
51 # flags (8 or 9 anything), revision, changed rev, author, path |
55 # flags (8 or 9 anything), revision, changed rev, author, path |
52 self.rx_status2 = \ |
56 self.rx_status2 = \ |
86 self.errorGroup.hide() |
90 self.errorGroup.hide() |
87 self.intercept = False |
91 self.intercept = False |
88 |
92 |
89 self.path = path |
93 self.path = path |
90 self.currentChangelist = "" |
94 self.currentChangelist = "" |
91 |
|
92 self.process = QProcess() |
|
93 self.process.finished.connect(self.__procFinished) |
|
94 self.process.readyReadStandardOutput.connect(self.__readStdout) |
|
95 self.process.readyReadStandardError.connect(self.__readStderr) |
|
96 |
95 |
97 args = [] |
96 args = [] |
98 args.append('status') |
97 args.append('status') |
99 self.vcs.addArguments(args, self.vcs.options['global']) |
98 self.vcs.addArguments(args, self.vcs.options['global']) |
100 self.vcs.addArguments(args, self.vcs.options['status']) |
99 self.vcs.addArguments(args, self.vcs.options['status']) |