VCS/ProjectBrowserHelper.py

changeset 3349
2a034a7f1f54
parent 3190
a9a94491c4fd
child 3484
645c12de6b0c
diff -r 39f9273ebd61 -r 2a034a7f1f54 VCS/ProjectBrowserHelper.py
--- a/VCS/ProjectBrowserHelper.py	Sun Mar 09 12:16:00 2014 +0100
+++ b/VCS/ProjectBrowserHelper.py	Sun Mar 09 17:06:40 2014 +0100
@@ -314,6 +314,20 @@
         except AttributeError:
             fn = itm.dirName()
         self.vcs.vcsLog(fn)
+    
+    def _VCSLogBrowser(self):
+        """
+        Protected 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.vcsLogBrowser(fn, isFile=isFile)
         
     def _VCSDiff(self):
         """

eric ide

mercurial