646 Private slot called by the context menu to show the difference of a |
646 Private slot called by the context menu to show the difference of a |
647 file to the repository side-by-side. |
647 file to the repository side-by-side. |
648 """ |
648 """ |
649 itm = self.browser.currentItem() |
649 itm = self.browser.currentItem() |
650 fn = itm.fileName() |
650 fn = itm.fileName() |
651 self.vcs.gitSbsDiff(fn) |
651 self.vcs.vcsSbsDiff(fn) |
652 |
652 |
653 def __GitSbsExtendedDiff(self): |
653 def __GitSbsExtendedDiff(self): |
654 """ |
654 """ |
655 Private slot called by the context menu to show the difference of a |
655 Private slot called by the context menu to show the difference of a |
656 file to the repository side-by-side. |
656 file to the repository side-by-side. |
657 |
657 |
658 It allows the selection of revisions to compare. |
658 It allows the selection of revisions to compare. |
659 """ |
659 """ |
660 itm = self.browser.currentItem() |
660 itm = self.browser.currentItem() |
661 fn = itm.fileName() |
661 fn = itm.fileName() |
662 self.vcs.gitSbsDiff(fn, extended=True) |
662 self.vcs.vcsSbsDiff(fn, extended=True) |
663 |
663 |
664 def __GitUnstage(self): |
664 def __GitUnstage(self): |
665 """ |
665 """ |
666 Private slot to unstage changes. |
666 Private slot to unstage changes. |
667 """ |
667 """ |
683 try: |
683 try: |
684 name = itm.fileName() |
684 name = itm.fileName() |
685 except AttributeError: |
685 except AttributeError: |
686 name = itm.dirName() |
686 name = itm.dirName() |
687 names.append(name) |
687 names.append(name) |
688 self.vcs.gitRevert(names) |
688 self.vcs.vcsRevert(names) |
689 |
689 |
690 def __GitBlame(self): |
690 def __GitBlame(self): |
691 """ |
691 """ |
692 Private slot called by the context menu to show the annotations of a |
692 Private slot called by the context menu to show the annotations of a |
693 file. |
693 file. |