src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py

branch
eric7
changeset 11109
3de1710db709
parent 11090
f5f5f5803935
child 11148
15e30f0c76a8
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu Dec 19 16:06:08 2024 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu Dec 19 19:32:37 2024 +0100
@@ -1821,12 +1821,15 @@
         self.logBrowserOutgoing.raise_()
         self.logBrowserOutgoing.start()
 
-    def hgPull(self, revisions=None):
+    def hgPull(self, revisions=None, noupdate=False):
         """
         Public method used to pull changes from a remote Mercurial repository.
 
-        @param revisions list of revisions to be pulled
-        @type list of str
+        @param revisions list of revisions to be pulled (defaults to None)
+        @type list of str (optional)
+        @param noupdate flag indicate to not update the working directory (defaults
+            to False)
+        @type bool (optional)
         @return flag indicating, that the update contained an add
             or delete
         @rtype bool
@@ -1845,7 +1848,7 @@
 
         args = self.initCommand(command)
         args.append("-v")
-        if self.getPlugin().getPreferences("PullUpdate"):
+        if self.getPlugin().getPreferences("PullUpdate") and not noupdate:
             args.append("--update")
         if command == "unbundle":
             args.append(self.bundleFile)

eric ide

mercurial