Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py

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

eric ide

mercurial