VCS/ProjectBrowserHelper.py

changeset 5452
9f89364d9ffd
parent 5389
9b1c800daff3
child 5669
63295be38bc6
equal deleted inserted replaced
5451:8ee36e8a315f 5452:9f89364d9ffd
309 def _VCSLog(self): 309 def _VCSLog(self):
310 """ 310 """
311 Protected slot called by the context menu to show the VCS log of a 311 Protected slot called by the context menu to show the VCS log of a
312 file/directory. 312 file/directory.
313 """ 313 """
314 itm = self.browser.currentItem() 314 # kept for backward compatibility for plug-ins
315 try: 315 self._VCSLogBrowser()
316 fn = itm.fileName()
317 except AttributeError:
318 fn = itm.dirName()
319 self.vcs.vcsLog(fn)
320 316
321 def _VCSLogBrowser(self): 317 def _VCSLogBrowser(self):
322 """ 318 """
323 Protected slot called by the context menu to show the log browser for a 319 Protected slot called by the context menu to show the log browser for a
324 file. 320 file.

eric ide

mercurial