hgext/narrow/narrowbundle2.py
changeset 47012 d55b71393907
parent 45942 89a2afe31e82
child 47439 86418ad637d1
--- a/hgext/narrow/narrowbundle2.py	Mon Apr 19 20:38:52 2021 -0400
+++ b/hgext/narrow/narrowbundle2.py	Mon Mar 29 01:52:06 2021 +0200
@@ -11,7 +11,6 @@
 import struct
 
 from mercurial.i18n import _
-from mercurial.node import nullid
 from mercurial import (
     bundle2,
     changegroup,
@@ -94,7 +93,7 @@
             raise error.Abort(_(b'depth must be positive, got %d') % depth)
 
     heads = set(heads or repo.heads())
-    common = set(common or [nullid])
+    common = set(common or [repo.nullid])
 
     visitnodes, relevant_nodes, ellipsisroots = exchange._computeellipsis(
         repo, common, heads, set(), match, depth=depth
@@ -128,7 +127,7 @@
     common,
     known,
 ):
-    common = set(common or [nullid])
+    common = set(common or [repo.nullid])
     # Steps:
     # 1. Send kill for "$known & ::common"
     #