Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py

changeset 3349
2a034a7f1f54
parent 3312
7535e5a5cbce
child 3359
6b6c224d67d6
--- a/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sun Mar 09 12:16:00 2014 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/ProjectBrowserHelper.py	Sun Mar 09 17:06:40 2014 +0100
@@ -313,7 +313,7 @@
         self.vcsMenuActions.append(act)
         act = menu.addAction(
             UI.PixmapCache.getIcon("vcsLog.png"),
-            self.tr('Show log browser'), self.__HgLogBrowser)
+            self.tr('Show log browser'), self._VCSLogBrowser)
         self.vcsMenuActions.append(act)
         menu.addSeparator()
         act = menu.addAction(
@@ -531,7 +531,7 @@
         self.vcsDirMenuActions.append(act)
         act = menu.addAction(
             UI.PixmapCache.getIcon("vcsLog.png"),
-            self.tr('Show log browser'), self.__HgLogBrowser)
+            self.tr('Show log browser'), self._VCSLogBrowser)
         self.vcsDirMenuActions.append(act)
         menu.addSeparator()
         act = menu.addAction(
@@ -739,20 +739,6 @@
         fn = itm.fileName()
         self.vcs.hgAnnotate(fn)
     
-    def __HgLogBrowser(self):
-        """
-        Private slot called by the context menu to show the log browser for a
-        file.
-        """
-        itm = self.browser.currentItem()
-        try:
-            fn = itm.fileName()
-            isFile = True
-        except AttributeError:
-            fn = itm.dirName()
-            isFile = False
-        self.vcs.hgLogBrowser(fn, isFile=isFile)
-    
     def __HgResolve(self):
         """
         Private slot called by the context menu to resolve conflicts of a file.

eric ide

mercurial