eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 7194
b184e8ca7219
parent 7187
11b0c7802a70
child 7200
ebab8ba287e6
equal deleted inserted replaced
7193:76eac32382ef 7194:b184e8ca7219
1431 if foundItems: 1431 if foundItems:
1432 self.logTree.setCurrentItem(foundItems[0]) 1432 self.logTree.setCurrentItem(foundItems[0])
1433 else: 1433 else:
1434 self.logTree.setCurrentItem( 1434 self.logTree.setCurrentItem(
1435 self.logTree.topLevelItem(0)) 1435 self.logTree.topLevelItem(0))
1436 elif self.__projectWorkingDirParents:
1437 for rev in self.__projectWorkingDirParents:
1438 # rev string format must match with the format of the
1439 # __generateLogItem() method
1440 items = self.logTree.findItems(
1441 "{0:>7}:".format(rev), Qt.MatchStartsWith,
1442 self.RevisionColumn)
1443 if items:
1444 self.logTree.setCurrentItem(items[0])
1445 break
1446 else:
1447 self.logTree.setCurrentItem(
1448 self.logTree.topLevelItem(0))
1436 else: 1449 else:
1437 self.logTree.setCurrentItem(self.logTree.topLevelItem(0)) 1450 self.logTree.setCurrentItem(self.logTree.topLevelItem(0))
1438 self.__started = False 1451 self.__started = False
1439 1452
1440 if self.commandMode in ("incoming", "outgoing"): 1453 if self.commandMode in ("incoming", "outgoing"):

eric ide

mercurial