mercurial/bookmarks.py
changeset 48242 4d2ab365699e
parent 48033 62f325f9b347
child 48243 76c071bba40d
--- a/mercurial/bookmarks.py	Fri Oct 15 03:28:28 2021 +0200
+++ b/mercurial/bookmarks.py	Fri Oct 15 03:49:05 2021 +0200
@@ -772,9 +772,11 @@
     return changed
 
 
-def updatefromremote(ui, repo, remotemarks, path, trfunc, explicit=()):
+def updatefromremote(
+    ui, repo, remotemarks, path, trfunc, explicit=(), mode=None
+):
     ui.debug(b"checking for updated bookmarks\n")
-    if ui.configbool(b'bookmarks', b'mirror'):
+    if mode == b'mirror':
         changed = mirroring_remote(ui, repo, remotemarks)
     else:
         changed = merging_from_remote(ui, repo, remotemarks, path, explicit)