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. |