Plugins/VcsPlugins/vcsPySvn/ProjectBrowserHelper.py

changeset 1267
5eddb59304c7
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1266:ce8a103501a5 1267:5eddb59304c7
242 menu.addSeparator() 242 menu.addSeparator()
243 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), 243 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"),
244 self.trUtf8('Show log'), self._VCSLog) 244 self.trUtf8('Show log'), self._VCSLog)
245 self.vcsMenuActions.append(act) 245 self.vcsMenuActions.append(act)
246 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), 246 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"),
247 self.trUtf8('Show limited log'), self.__SVNLogLimited)
248 self.vcsMenuActions.append(act)
249 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"),
250 self.trUtf8('Show log browser'), self.__SVNLogBrowser) 247 self.trUtf8('Show log browser'), self.__SVNLogBrowser)
251 self.vcsMenuActions.append(act) 248 self.vcsMenuActions.append(act)
252 menu.addSeparator() 249 menu.addSeparator()
253 act = menu.addAction(UI.PixmapCache.getIcon("vcsStatus.png"), 250 act = menu.addAction(UI.PixmapCache.getIcon("vcsStatus.png"),
254 self.trUtf8('Show status'), self._VCSStatus) 251 self.trUtf8('Show status'), self._VCSStatus)
507 self.__SVNRemoveFromChangelist) 504 self.__SVNRemoveFromChangelist)
508 self.vcsMenuActions.append(act) 505 self.vcsMenuActions.append(act)
509 menu.addSeparator() 506 menu.addSeparator()
510 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), 507 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"),
511 self.trUtf8('Show log'), self._VCSLog) 508 self.trUtf8('Show log'), self._VCSLog)
512 self.vcsDirMenuActions.append(act)
513 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"),
514 self.trUtf8('Show limited log'), self.__SVNLogLimited)
515 self.vcsDirMenuActions.append(act) 509 self.vcsDirMenuActions.append(act)
516 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), 510 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"),
517 self.trUtf8('Show log browser'), self.__SVNLogBrowser) 511 self.trUtf8('Show log browser'), self.__SVNLogBrowser)
518 self.vcsDirMenuActions.append(act) 512 self.vcsDirMenuActions.append(act)
519 menu.addSeparator() 513 menu.addSeparator()
771 names.append(itm.fileName()) 765 names.append(itm.fileName())
772 except AttributeError: 766 except AttributeError:
773 names.append(itm.dirName()) 767 names.append(itm.dirName())
774 self.vcs.svnUrlDiff(names) 768 self.vcs.svnUrlDiff(names)
775 769
776 def __SVNLogLimited(self):
777 """
778 Private slot called by the context menu to show the limited log of a file.
779 """
780 itm = self.browser.currentItem()
781 try:
782 fn = itm.fileName()
783 except AttributeError:
784 fn = itm.dirName()
785 self.vcs.svnLogLimited(fn)
786
787 def __SVNLogBrowser(self): 770 def __SVNLogBrowser(self):
788 """ 771 """
789 Private slot called by the context menu to show the log browser for a file. 772 Private slot called by the context menu to show the log browser for a file.
790 """ 773 """
791 itm = self.browser.currentItem() 774 itm = self.browser.currentItem()

eric ide

mercurial