hgext/patchbomb.py
changeset 46113 59fa3890d40a
parent 45942 89a2afe31e82
child 46819 d4ba4d51f85f
--- a/hgext/patchbomb.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/hgext/patchbomb.py	Tue Dec 01 21:54:46 2020 +0100
@@ -83,6 +83,7 @@
 
 from mercurial.i18n import _
 from mercurial.pycompat import open
+from mercurial.node import bin
 from mercurial import (
     cmdutil,
     commands,
@@ -91,7 +92,6 @@
     formatter,
     hg,
     mail,
-    node as nodemod,
     patch,
     pycompat,
     registrar,
@@ -306,7 +306,7 @@
         p = mail.mimetextpatch(
             b'\n'.join(patchlines), 'x-patch', opts.get(b'test')
         )
-        binnode = nodemod.bin(node)
+        binnode = bin(node)
         # if node is mq patch, it will have the patch file's name as a tag
         if not patchname:
             patchtags = [