hgext/infinitepush/bundleparts.py
changeset 46113 59fa3890d40a
parent 45942 89a2afe31e82
child 48875 6000f5b25c9b
--- a/hgext/infinitepush/bundleparts.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/hgext/infinitepush/bundleparts.py	Tue Dec 01 21:54:46 2020 +0100
@@ -6,13 +6,13 @@
 from __future__ import absolute_import
 
 from mercurial.i18n import _
+from mercurial.node import hex
 
 from mercurial import (
     bundle2,
     changegroup,
     error,
     extensions,
-    node as nodemod,
     pycompat,
     revsetlang,
     util,
@@ -54,7 +54,7 @@
         params[b'bookprevnode'] = b''
         bookmarks = repo._bookmarks
         if bookmark in bookmarks:
-            params[b'bookprevnode'] = nodemod.hex(bookmarks[bookmark])
+            params[b'bookprevnode'] = hex(bookmarks[bookmark])
 
     # Do not send pushback bundle2 part with bookmarks if remotenames extension
     # is enabled. It will be handled manually in `_push()`