312 try: |
312 try: |
313 fn = itm.fileName() |
313 fn = itm.fileName() |
314 except AttributeError: |
314 except AttributeError: |
315 fn = itm.dirName() |
315 fn = itm.dirName() |
316 self.vcs.vcsLog(fn) |
316 self.vcs.vcsLog(fn) |
|
317 |
|
318 def _VCSLogBrowser(self): |
|
319 """ |
|
320 Protected slot called by the context menu to show the log browser for a |
|
321 file. |
|
322 """ |
|
323 itm = self.browser.currentItem() |
|
324 try: |
|
325 fn = itm.fileName() |
|
326 isFile = True |
|
327 except AttributeError: |
|
328 fn = itm.dirName() |
|
329 isFile = False |
|
330 self.vcs.vcsLogBrowser(fn, isFile=isFile) |
317 |
331 |
318 def _VCSDiff(self): |
332 def _VCSDiff(self): |
319 """ |
333 """ |
320 Protected slot called by the context menu to show the difference of a |
334 Protected slot called by the context menu to show the difference of a |
321 file/directory to the repository. |
335 file/directory to the repository. |