218 menu.addSeparator() |
218 menu.addSeparator() |
219 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
219 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
220 self.trUtf8('Show log'), self._VCSLog) |
220 self.trUtf8('Show log'), self._VCSLog) |
221 self.vcsMenuActions.append(act) |
221 self.vcsMenuActions.append(act) |
222 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
222 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
223 self.trUtf8('Show limited log'), self.__HgLogLimited) |
|
224 self.vcsMenuActions.append(act) |
|
225 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
|
226 self.trUtf8('Show log browser'), self.__HgLogBrowser) |
223 self.trUtf8('Show log browser'), self.__HgLogBrowser) |
227 self.vcsMenuActions.append(act) |
224 self.vcsMenuActions.append(act) |
228 menu.addSeparator() |
225 menu.addSeparator() |
229 act = menu.addAction(UI.PixmapCache.getIcon("vcsStatus.png"), |
226 act = menu.addAction(UI.PixmapCache.getIcon("vcsStatus.png"), |
230 self.trUtf8('Show status'), self._VCSStatus) |
227 self.trUtf8('Show status'), self._VCSStatus) |
403 act = menu.addAction(self.trUtf8('Move in repository'), self.__HgMove) |
400 act = menu.addAction(self.trUtf8('Move in repository'), self.__HgMove) |
404 self.vcsDirMenuActions.append(act) |
401 self.vcsDirMenuActions.append(act) |
405 menu.addSeparator() |
402 menu.addSeparator() |
406 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
403 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
407 self.trUtf8('Show log'), self._VCSLog) |
404 self.trUtf8('Show log'), self._VCSLog) |
408 self.vcsDirMenuActions.append(act) |
|
409 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
|
410 self.trUtf8('Show limited log'), self.__HgLogLimited) |
|
411 self.vcsDirMenuActions.append(act) |
405 self.vcsDirMenuActions.append(act) |
412 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
406 act = menu.addAction(UI.PixmapCache.getIcon("vcsLog.png"), |
413 self.trUtf8('Show log browser'), self.__HgLogBrowser) |
407 self.trUtf8('Show log browser'), self.__HgLogBrowser) |
414 self.vcsDirMenuActions.append(act) |
408 self.vcsDirMenuActions.append(act) |
415 menu.addSeparator() |
409 menu.addSeparator() |
566 Private slot called by the context menu to show the annotations of a file. |
560 Private slot called by the context menu to show the annotations of a file. |
567 """ |
561 """ |
568 itm = self.browser.currentItem() |
562 itm = self.browser.currentItem() |
569 fn = itm.fileName() |
563 fn = itm.fileName() |
570 self.vcs.hgAnnotate(fn) |
564 self.vcs.hgAnnotate(fn) |
571 |
|
572 def __HgLogLimited(self): |
|
573 """ |
|
574 Private slot called by the context menu to show the limited log of a file. |
|
575 """ |
|
576 itm = self.browser.currentItem() |
|
577 try: |
|
578 fn = itm.fileName() |
|
579 except AttributeError: |
|
580 fn = itm.dirName() |
|
581 self.vcs.hgLogLimited(fn) |
|
582 |
565 |
583 def __HgLogBrowser(self): |
566 def __HgLogBrowser(self): |
584 """ |
567 """ |
585 Private slot called by the context menu to show the log browser for a file. |
568 Private slot called by the context menu to show the log browser for a file. |
586 """ |
569 """ |