Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py

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

eric ide

mercurial