VCS/ProjectBrowserHelper.py

changeset 3349
2a034a7f1f54
parent 3190
a9a94491c4fd
child 3484
645c12de6b0c
equal deleted inserted replaced
3346:39f9273ebd61 3349:2a034a7f1f54
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.

eric ide

mercurial