Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

branch
5_1_x
changeset 1285
544520790fdd
parent 1072
e7b0d18b1121
child 1286
2f118d4d9c5c
diff -r 80a974cf4f14 -r 544520790fdd Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py
--- a/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py	Sun Sep 04 18:02:38 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py	Mon Sep 05 18:40:32 2011 +0200
@@ -1035,7 +1035,14 @@
         """
         Protected 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("Unbundle"),
+                self.trUtf8("""The project should be reread. Do this now?"""),
+                yesDefault=True)
+            if res:
+                self.project.reopenProject()
     
     def __hgBisectGood(self):
         """

eric ide

mercurial