VCS/ProjectHelper.py

changeset 1083
dc680a0ce221
parent 1012
e3c069f40a4a
child 1112
8a7d1b9d18db
equal deleted inserted replaced
1082:8387830c1089 1083:dc680a0ce221
428 428
429 def _vcsSwitch(self): 429 def _vcsSwitch(self):
430 """ 430 """
431 Protected slot used to switch the local project to another tag/branch. 431 Protected slot used to switch the local project to another tag/branch.
432 """ 432 """
433 self.vcs.vcsSwitch(self.project.ppath) 433 shouldReopen = self.vcs.vcsSwitch(self.project.ppath)
434 if shouldReopen:
435 res = E5MessageBox.yesNo(self.parent(),
436 self.trUtf8("Switch"),
437 self.trUtf8("""The project should be reread. Do this now?"""),
438 yesDefault=True)
439 if res:
440 self.project.reopenProject()
434 441
435 def _vcsMerge(self): 442 def _vcsMerge(self):
436 """ 443 """
437 Protected slot used to merge changes of a tag/revision into the local project. 444 Protected slot used to merge changes of a tag/revision into the local project.
438 """ 445 """

eric ide

mercurial