mercurial/simplemerge.py
changeset 44947 ad6971e6740c
parent 44911 84614212ae39
child 44948 eb6380da47a5
--- a/mercurial/simplemerge.py	Tue Jun 09 13:18:21 2020 -0700
+++ b/mercurial/simplemerge.py	Tue Jun 02 21:39:07 2020 +0900
@@ -456,7 +456,7 @@
     return set(b[x : x + 1] for x in range(len(b)))
 
 
-def is_null(ctx):
+def is_not_null(ctx):
     if not util.safehasattr(ctx, "node"):
         return False
     return ctx.node() != nodemod.nullid
@@ -520,7 +520,7 @@
     flags = localctx.flags()
     localflags = _bytes_to_set(flags)
     otherflags = _bytes_to_set(otherctx.flags())
-    if is_null(basectx) and localflags != otherflags:
+    if is_not_null(basectx) and localflags != otherflags:
         baseflags = _bytes_to_set(basectx.flags())
         flags = localflags & otherflags
         for f in localflags.symmetric_difference(otherflags):