31 |
31 |
32 def initActions(self): |
32 def initActions(self): |
33 """ |
33 """ |
34 Public method to generate the action objects. |
34 Public method to generate the action objects. |
35 """ |
35 """ |
36 self.hgFetchAct = E5Action(self.trUtf8('Fetch changes'), |
36 self.hgFetchAct = E5Action( |
37 UI.PixmapCache.getIcon("vcsUpdate.png"), |
37 self.trUtf8('Fetch changes'), |
38 self.trUtf8('Fetch changes'), |
38 UI.PixmapCache.getIcon("vcsUpdate.png"), |
39 0, 0, self, 'mercurial_fetch') |
39 self.trUtf8('Fetch changes'), |
|
40 0, 0, self, 'mercurial_fetch') |
40 self.hgFetchAct.setStatusTip(self.trUtf8( |
41 self.hgFetchAct.setStatusTip(self.trUtf8( |
41 'Fetch changes from a remote repository' |
42 'Fetch changes from a remote repository' |
42 )) |
43 )) |
43 self.hgFetchAct.setWhatsThis(self.trUtf8( |
44 self.hgFetchAct.setWhatsThis(self.trUtf8( |
44 """<b>Fetch changes</b>""" |
45 """<b>Fetch changes</b>""" |
79 Private slot used to fetch changes from a remote repository. |
80 Private slot used to fetch changes from a remote repository. |
80 """ |
81 """ |
81 shouldReopen = self.vcs.getExtensionObject("fetch")\ |
82 shouldReopen = self.vcs.getExtensionObject("fetch")\ |
82 .hgFetch(self.project.getProjectPath()) |
83 .hgFetch(self.project.getProjectPath()) |
83 if shouldReopen: |
84 if shouldReopen: |
84 res = E5MessageBox.yesNo(None, |
85 res = E5MessageBox.yesNo( |
|
86 None, |
85 self.trUtf8("Fetch"), |
87 self.trUtf8("Fetch"), |
86 self.trUtf8("""The project should be reread. Do this now?"""), |
88 self.trUtf8("""The project should be reread. Do this now?"""), |
87 yesDefault=True) |
89 yesDefault=True) |
88 if res: |
90 if res: |
89 self.project.reopenProject() |
91 self.project.reopenProject() |