Plugins/VcsPlugins/vcsPySvn/subversion.py

changeset 1267
5eddb59304c7
parent 1112
8a7d1b9d18db
child 1268
4fc337f391c9
equal deleted inserted replaced
1266:ce8a103501a5 1267:5eddb59304c7
861 Public method used to view the log of a file/directory from the 861 Public method used to view the log of a file/directory from the
862 Subversion repository. 862 Subversion repository.
863 863
864 @param name file/directory name to show the log of (string) 864 @param name file/directory name to show the log of (string)
865 """ 865 """
866 self.log = SvnLogDialog(self) 866 noEntries, ok = QInputDialog.getInteger(
867 self.log.show() 867 None,
868 QApplication.processEvents() 868 self.trUtf8("Subversion Log"),
869 self.log.start(name) 869 self.trUtf8("Select number of entries to show."),
870 self.getPlugin().getPreferences("LogLimit"), 1, 999999, 1)
871 if ok:
872 self.log = SvnLogDialog(self)
873 self.log.show()
874 QApplication.processEvents()
875 self.log.start(name, noEntries)
870 876
871 def vcsDiff(self, name): 877 def vcsDiff(self, name):
872 """ 878 """
873 Public method used to view the difference of a file/directory to the 879 Public method used to view the difference of a file/directory to the
874 Subversion repository. 880 Subversion repository.
1728 self.diff = SvnDiffDialog(self) 1734 self.diff = SvnDiffDialog(self)
1729 self.diff.show() 1735 self.diff.show()
1730 QApplication.processEvents() 1736 QApplication.processEvents()
1731 self.diff.start(name, urls=urls, summary=summary) 1737 self.diff.start(name, urls=urls, summary=summary)
1732 1738
1733 def svnLogLimited(self, name):
1734 """
1735 Public method used to view the (limited) log of a file/directory from the
1736 Subversion repository.
1737
1738 @param name file/directory name to show the log of (string)
1739 """
1740 noEntries, ok = QInputDialog.getInteger(
1741 None,
1742 self.trUtf8("Subversion Log"),
1743 self.trUtf8("Select number of entries to show."),
1744 self.getPlugin().getPreferences("LogLimit"), 1, 999999, 1)
1745 if ok:
1746 self.log = SvnLogDialog(self)
1747 self.log.show()
1748 QApplication.processEvents()
1749 self.log.start(name, noEntries)
1750
1751 def svnLogBrowser(self, path): 1739 def svnLogBrowser(self, path):
1752 """ 1740 """
1753 Public method used to browse the log of a file/directory from the 1741 Public method used to browse the log of a file/directory from the
1754 Subversion repository. 1742 Subversion repository.
1755 1743

eric ide

mercurial