Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1283
5766284d4393
parent 1282
c5b7b444942d
child 1307
9f7a056dbcc6
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Sep 04 18:12:08 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Sep 05 18:40:32 2011 +0200
@@ -2137,6 +2137,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)
         
@@ -2147,6 +2149,7 @@
             if repodir == os.sep:
                 return
         
+        res = False
         files = E5FileDialog.getOpenFileNames(
             None,
             self.trUtf8("Apply changegroups"),
@@ -2162,12 +2165,16 @@
             args.append('unbundle')
             if update:
                 args.append("--update")
+                args.append("--verbose")
             args.extend(files)
             
             dia = HgDialog(self.trUtf8('Apply changegroups'), self)
             res = dia.startProcess(args, repodir)
             if res:
                 dia.exec_()
+                res = dia.hasAddOrDelete()
+            self.checkVCSStatus()
+        return res
     
     def hgBisect(self, name, subcommand):
         """

eric ide

mercurial