Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

changeset 1283
5766284d4393
parent 1274
442c748018c5
child 1289
44519fdf4cc9
diff -r c5b7b444942d -r 5766284d4393 Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py
--- a/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py	Sun Sep 04 18:12:08 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py	Mon Sep 05 18:40:32 2011 +0200
@@ -1173,7 +1173,14 @@
         """
         Private slot used to apply changegroup files.
         """
-        self.vcs.hgUnbundle(self.project.ppath)
+        shouldReopen = self.vcs.hgUnbundle(self.project.ppath)
+        if shouldReopen:
+            res = E5MessageBox.yesNo(self.parent(),
+                self.trUtf8("Pull"),
+                self.trUtf8("""The project should be reread. Do this now?"""),
+                yesDefault=True)
+            if res:
+                self.project.reopenProject()
     
     def __hgBisectGood(self):
         """

eric ide

mercurial