204 self.__revColors[p] = self.__revColor |
204 self.__revColors[p] = self.__revColor |
205 self.__revColor += 1 |
205 self.__revColor += 1 |
206 |
206 |
207 # add edges to the graph |
207 # add edges to the graph |
208 edges = [] |
208 edges = [] |
209 ## if rev and parents[0] != -1: |
|
210 if parents[0] != -1: |
209 if parents[0] != -1: |
211 for ecol, erev in enumerate(self.__revs): |
210 for ecol, erev in enumerate(self.__revs): |
212 if erev in next: |
211 if erev in next: |
213 edges.append((ecol, next.index(erev), self.__revColors[erev])) |
212 edges.append((ecol, next.index(erev), self.__revColors[erev])) |
214 elif erev == rev: |
213 elif erev == rev: |
468 'Ensure, that it is in the search path.' |
467 'Ensure, that it is in the search path.' |
469 ).format('hg')) |
468 ).format('hg')) |
470 |
469 |
471 def start(self, fn): |
470 def start(self, fn): |
472 """ |
471 """ |
473 Public slot to start the svn log command. |
472 Public slot to start the hg log command. |
474 |
473 |
475 @param fn filename to show the log for (string) |
474 @param fn filename to show the log for (string) |
476 """ |
475 """ |
477 self.errorGroup.hide() |
476 self.errorGroup.hide() |
478 QApplication.processEvents() |
477 QApplication.processEvents() |
525 self.inputGroup.setEnabled(False) |
524 self.inputGroup.setEnabled(False) |
526 self.inputGroup.hide() |
525 self.inputGroup.hide() |
527 |
526 |
528 def __processBuffer(self): |
527 def __processBuffer(self): |
529 """ |
528 """ |
530 Private method to process the buffered output of the svn log command. |
529 Private method to process the buffered output of the hg log command. |
531 """ |
530 """ |
532 noEntries = 0 |
531 noEntries = 0 |
533 log = {"message" : []} |
532 log = {"message" : []} |
534 changedPaths = [] |
533 changedPaths = [] |
535 initialText = True |
534 initialText = True |