Plugins/VcsPlugins/vcsMercurial/hg.py

branch
5_1_x
changeset 1285
544520790fdd
parent 1236
7a58aba00647
child 1320
e94577f27c3e
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Sep 04 18:02:38 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Sep 05 18:40:32 2011 +0200
@@ -1838,6 +1838,8 @@
         Public method to apply changegroup files.
         
         @param name directory name (string)
+        @return flag indicating, that the update contained an add
+            or delete (boolean)
         """
         dname, fname = self.splitPath(name)
         
@@ -1848,6 +1850,7 @@
             if repodir == os.sep:
                 return
         
+        res = False
         files = E5FileDialog.getOpenFileNames(
             None,
             self.trUtf8("Apply changegroups"),
@@ -1863,12 +1866,16 @@
             args.append('unbundle')
             if update:
                 args.append("--update")
+                args.append("--verbose")
             args.extend(files)
             
             dia = HgDialog(self.trUtf8('Apply changegroups'))
             res = dia.startProcess(args, repodir)
             if res:
                 dia.exec_()
+                res = dia.hasAddOrDelete()
+            self.checkVCSStatus()
+        return res
     
     def hgBisect(self, name, subcommand):
         """

eric ide

mercurial