# HG changeset patch # User Martin von Zweigbergk # Date 1522972219 25200 # Node ID 2735d08e978861717cd68c6af0e2d8cbfc576808 # Parent 2b38c80557a43802027dc09afe2c1d06d0e6b597 infinitepush: look up bookmarks only among bookmarks Differential Revision: https://phab.mercurial-scm.org/D3165 diff -r 2b38c80557a4 -r 2735d08e9788 hgext/infinitepush/bundleparts.py --- a/hgext/infinitepush/bundleparts.py Fri Apr 06 10:48:11 2018 -0700 +++ b/hgext/infinitepush/bundleparts.py Thu Apr 05 16:50:19 2018 -0700 @@ -46,8 +46,9 @@ params['bookmark'] = bookmark # 'prevbooknode' is necessary for pushkey reply part params['bookprevnode'] = '' - if bookmark in repo: - params['bookprevnode'] = repo[bookmark].hex() + bookmarks = repo._bookmarks + if bookmark in bookmarks: + params['bookprevnode'] = bookmarks.changectx(bookmark).hex() # Do not send pushback bundle2 part with bookmarks if remotenames extension # is enabled. It will be handled manually in `_push()`