mercurial/bookmarks.py
changeset 44372 8407031f195f
parent 44371 0275000564c4
child 44824 f189c5280d48
--- a/mercurial/bookmarks.py	Thu Feb 13 22:06:57 2020 -0500
+++ b/mercurial/bookmarks.py	Thu Feb 13 22:51:17 2020 -0500
@@ -487,6 +487,8 @@
 
 
 def pushbookmark(repo, key, old, new):
+    if isdivergent(key):
+        return False
     if bookmarksinstore(repo):
         wlock = util.nullcontextmanager()
     else: