Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1267
5eddb59304c7
parent 1263
1b6054a9b668
child 1274
442c748018c5
equal deleted inserted replaced
1266:ce8a103501a5 1267:5eddb59304c7
717 Public method used to view the log of a file/directory from the 717 Public method used to view the log of a file/directory from the
718 Mercurial repository. 718 Mercurial repository.
719 719
720 @param name file/directory name to show the log of (string) 720 @param name file/directory name to show the log of (string)
721 """ 721 """
722 self.log = HgLogDialog(self) 722 noEntries, ok = QInputDialog.getInteger(
723 self.log.show() 723 None,
724 self.log.start(name) 724 self.trUtf8("Mercurial Log"),
725 self.trUtf8("Select number of entries to show."),
726 self.getPlugin().getPreferences("LogLimit"), 1, 999999, 1)
727 if ok:
728 self.log = HgLogDialog(self)
729 self.log.show()
730 self.log.start(name, noEntries)
725 731
726 def vcsDiff(self, name): 732 def vcsDiff(self, name):
727 """ 733 """
728 Public method used to view the difference of a file/directory to the 734 Public method used to view the difference of a file/directory to the
729 Mercurial repository. 735 Mercurial repository.
1490 if dlg.exec_() == QDialog.Accepted: 1496 if dlg.exec_() == QDialog.Accepted:
1491 revisions = dlg.getRevisions() 1497 revisions = dlg.getRevisions()
1492 self.diff = HgDiffDialog(self) 1498 self.diff = HgDiffDialog(self)
1493 self.diff.show() 1499 self.diff.show()
1494 self.diff.start(name, revisions) 1500 self.diff.start(name, revisions)
1495
1496 def hgLogLimited(self, name):
1497 """
1498 Public method used to view the (limited) log of a file/directory from the
1499 Mercurial repository.
1500
1501 @param name file/directory name to show the log of (string)
1502 """
1503 noEntries, ok = QInputDialog.getInteger(
1504 None,
1505 self.trUtf8("Mercurial Log"),
1506 self.trUtf8("Select number of entries to show."),
1507 self.getPlugin().getPreferences("LogLimit"), 1, 999999, 1)
1508 if ok:
1509 self.log = HgLogDialog(self)
1510 self.log.show()
1511 self.log.start(name, noEntries)
1512 1501
1513 def hgLogBrowser(self, path): 1502 def hgLogBrowser(self, path):
1514 """ 1503 """
1515 Public method used to browse the log of a file/directory from the 1504 Public method used to browse the log of a file/directory from the
1516 Mercurial repository. 1505 Mercurial repository.

eric ide

mercurial