mercurial/exchange.py
changeset 48242 4d2ab365699e
parent 48241 7d1e60244561
child 48292 aad84024660f
--- a/mercurial/exchange.py	Fri Oct 15 03:28:28 2021 +0200
+++ b/mercurial/exchange.py	Fri Oct 15 03:49:05 2021 +0200
@@ -2028,6 +2028,9 @@
     pullop.stepsdone.add(b'bookmarks')
     repo = pullop.repo
     remotebookmarks = pullop.remotebookmarks
+    bookmarks_mode = None
+    if pullop.remote_path is not None:
+        bookmarks_mode = pullop.remote_path.bookmarks_mode
     bookmod.updatefromremote(
         repo.ui,
         repo,
@@ -2035,6 +2038,7 @@
         pullop.remote.url(),
         pullop.gettransaction,
         explicit=pullop.explicitbookmarks,
+        mode=bookmarks_mode,
     )