Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

changeset 660
7a1d92437921
parent 467
0911d8be9b07
child 791
9ec2ac20e54e
equal deleted inserted replaced
659:b53e67ae2021 660:7a1d92437921
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtGui import QMenu 12 from PyQt4.QtGui import QMenu
13 13
14 from E5Gui import E5MessageBox
14 from E5Gui.E5Application import e5App 15 from E5Gui.E5Application import e5App
15 16
16 from VCS.ProjectHelper import VcsProjectHelper 17 from VCS.ProjectHelper import VcsProjectHelper
17 18
18 from E5Gui.E5Action import E5Action 19 from E5Gui.E5Action import E5Action
878 879
879 def __hgPull(self): 880 def __hgPull(self):
880 """ 881 """
881 Private slot used to pull changes from a remote repository. 882 Private slot used to pull changes from a remote repository.
882 """ 883 """
883 self.vcs.hgPull(self.project.ppath) 884 shouldReopen = self.vcs.hgPull(self.project.ppath)
885 if shouldReopen:
886 res = E5MessageBox.yesNo(self.parent(),
887 self.trUtf8("Pull"),
888 self.trUtf8("""The project should be reread. Do this now?"""),
889 yesDefault = True)
890 if res:
891 self.project.reopenProject()
884 892
885 def __hgPush(self): 893 def __hgPush(self):
886 """ 894 """
887 Private slot used to push changes to a remote repository. 895 Private slot used to push changes to a remote repository.
888 """ 896 """

eric ide

mercurial