1266 changedPaths = [] |
1266 changedPaths = [] |
1267 fileCopies = {} |
1267 fileCopies = {} |
1268 |
1268 |
1269 self.__resizeColumnsLog() |
1269 self.__resizeColumnsLog() |
1270 |
1270 |
1271 if self.__started: |
1271 if self.__started and not self.__finishCallbacks: |
1272 if not self.__finishCallbacks: |
1272 # we are really done |
1273 # we are really done |
1273 if self.__selectedRevisions: |
1274 if self.__selectedRevisions: |
1274 foundItems = self.logTree.findItems( |
1275 foundItems = self.logTree.findItems( |
1275 self.__selectedRevisions[0], Qt.MatchFlag.MatchExactly, |
1276 self.__selectedRevisions[0], Qt.MatchFlag.MatchExactly, |
1276 self.RevisionColumn) |
|
1277 if foundItems: |
|
1278 self.logTree.setCurrentItem(foundItems[0]) |
|
1279 else: |
|
1280 self.logTree.setCurrentItem( |
|
1281 self.logTree.topLevelItem(0)) |
|
1282 elif self.__projectWorkingDirParents: |
|
1283 for rev in self.__projectWorkingDirParents: |
|
1284 # rev string format must match with the format of the |
|
1285 # __generateLogItem() method |
|
1286 items = self.logTree.findItems( |
|
1287 "{0:>7}:".format(rev), |
|
1288 Qt.MatchFlag.MatchStartsWith, |
1277 self.RevisionColumn) |
1289 self.RevisionColumn) |
1278 if foundItems: |
1290 if items: |
1279 self.logTree.setCurrentItem(foundItems[0]) |
1291 self.logTree.setCurrentItem(items[0]) |
1280 else: |
1292 break |
1281 self.logTree.setCurrentItem( |
|
1282 self.logTree.topLevelItem(0)) |
|
1283 elif self.__projectWorkingDirParents: |
|
1284 for rev in self.__projectWorkingDirParents: |
|
1285 # rev string format must match with the format of the |
|
1286 # __generateLogItem() method |
|
1287 items = self.logTree.findItems( |
|
1288 "{0:>7}:".format(rev), |
|
1289 Qt.MatchFlag.MatchStartsWith, |
|
1290 self.RevisionColumn) |
|
1291 if items: |
|
1292 self.logTree.setCurrentItem(items[0]) |
|
1293 break |
|
1294 else: |
|
1295 self.logTree.setCurrentItem( |
|
1296 self.logTree.topLevelItem(0)) |
|
1297 else: |
1293 else: |
1298 self.logTree.setCurrentItem(self.logTree.topLevelItem(0)) |
1294 self.logTree.setCurrentItem( |
1299 self.__started = False |
1295 self.logTree.topLevelItem(0)) |
|
1296 else: |
|
1297 self.logTree.setCurrentItem(self.logTree.topLevelItem(0)) |
|
1298 self.__started = False |
1300 |
1299 |
1301 if self.commandMode in ("incoming", "outgoing"): |
1300 if self.commandMode in ("incoming", "outgoing"): |
1302 self.commandMode = "log" # switch to log mode |
1301 self.commandMode = "log" # switch to log mode |
1303 if self.__lastRev > 0: |
1302 if self.__lastRev > 0: |
1304 self.nextButton.setEnabled(True) |
1303 self.nextButton.setEnabled(True) |