Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py

changeset 3349
2a034a7f1f54
parent 3190
a9a94491c4fd
child 3471
31a6d4300906
child 3484
645c12de6b0c
equal deleted inserted replaced
3346:39f9273ebd61 3349:2a034a7f1f54
253 UI.PixmapCache.getIcon("vcsLog.png"), 253 UI.PixmapCache.getIcon("vcsLog.png"),
254 self.tr('Show log'), self._VCSLog) 254 self.tr('Show log'), self._VCSLog)
255 self.vcsMenuActions.append(act) 255 self.vcsMenuActions.append(act)
256 act = menu.addAction( 256 act = menu.addAction(
257 UI.PixmapCache.getIcon("vcsLog.png"), 257 UI.PixmapCache.getIcon("vcsLog.png"),
258 self.tr('Show log browser'), self.__SVNLogBrowser) 258 self.tr('Show log browser'), self._VCSLogBrowser)
259 self.vcsMenuActions.append(act) 259 self.vcsMenuActions.append(act)
260 menu.addSeparator() 260 menu.addSeparator()
261 act = menu.addAction( 261 act = menu.addAction(
262 UI.PixmapCache.getIcon("vcsStatus.png"), 262 UI.PixmapCache.getIcon("vcsStatus.png"),
263 self.tr('Show status'), self._VCSStatus) 263 self.tr('Show status'), self._VCSStatus)
565 UI.PixmapCache.getIcon("vcsLog.png"), 565 UI.PixmapCache.getIcon("vcsLog.png"),
566 self.tr('Show log'), self._VCSLog) 566 self.tr('Show log'), self._VCSLog)
567 self.vcsDirMenuActions.append(act) 567 self.vcsDirMenuActions.append(act)
568 act = menu.addAction( 568 act = menu.addAction(
569 UI.PixmapCache.getIcon("vcsLog.png"), 569 UI.PixmapCache.getIcon("vcsLog.png"),
570 self.tr('Show log browser'), self.__SVNLogBrowser) 570 self.tr('Show log browser'), self._VCSLogBrowser)
571 self.vcsDirMenuActions.append(act) 571 self.vcsDirMenuActions.append(act)
572 menu.addSeparator() 572 menu.addSeparator()
573 act = menu.addAction( 573 act = menu.addAction(
574 UI.PixmapCache.getIcon("vcsStatus.png"), 574 UI.PixmapCache.getIcon("vcsStatus.png"),
575 self.tr('Show status'), self._VCSStatus) 575 self.tr('Show status'), self._VCSStatus)
869 """ 869 """
870 itm = self.browser.currentItem() 870 itm = self.browser.currentItem()
871 fn = itm.fileName() 871 fn = itm.fileName()
872 self.vcs.svnSbsDiff(fn, extended=True) 872 self.vcs.svnSbsDiff(fn, extended=True)
873 873
874 def __SVNLogBrowser(self):
875 """
876 Private slot called by the context menu to show the log browser for a
877 file.
878 """
879 itm = self.browser.currentItem()
880 try:
881 fn = itm.fileName()
882 isFile = True
883 except AttributeError:
884 fn = itm.dirName()
885 isFile = False
886 self.vcs.svnLogBrowser(fn, isFile=isFile)
887
888 def __SVNBlame(self): 874 def __SVNBlame(self):
889 """ 875 """
890 Private slot called by the context menu to show the blame of a file. 876 Private slot called by the context menu to show the blame of a file.
891 """ 877 """
892 itm = self.browser.currentItem() 878 itm = self.browser.currentItem()

eric ide

mercurial