eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

branch
without_py2_and_pyqt4
changeset 7200
ebab8ba287e6
parent 7192
a22eee00b052
parent 7194
b184e8ca7219
child 7201
6b42677d7043
equal deleted inserted replaced
7199:c71bd6f21748 7200:ebab8ba287e6
1427 if foundItems: 1427 if foundItems:
1428 self.logTree.setCurrentItem(foundItems[0]) 1428 self.logTree.setCurrentItem(foundItems[0])
1429 else: 1429 else:
1430 self.logTree.setCurrentItem( 1430 self.logTree.setCurrentItem(
1431 self.logTree.topLevelItem(0)) 1431 self.logTree.topLevelItem(0))
1432 elif self.__projectWorkingDirParents:
1433 for rev in self.__projectWorkingDirParents:
1434 # rev string format must match with the format of the
1435 # __generateLogItem() method
1436 items = self.logTree.findItems(
1437 "{0:>7}:".format(rev), Qt.MatchStartsWith,
1438 self.RevisionColumn)
1439 if items:
1440 self.logTree.setCurrentItem(items[0])
1441 break
1442 else:
1443 self.logTree.setCurrentItem(
1444 self.logTree.topLevelItem(0))
1432 else: 1445 else:
1433 self.logTree.setCurrentItem(self.logTree.topLevelItem(0)) 1446 self.logTree.setCurrentItem(self.logTree.topLevelItem(0))
1434 self.__started = False 1447 self.__started = False
1435 1448
1436 if self.commandMode in ("incoming", "outgoing"): 1449 if self.commandMode in ("incoming", "outgoing"):

eric ide

mercurial