simplemerge: fix function name that tests if ctx is not null revision
authorYuya Nishihara <yuya@tcha.org>
Tue, 02 Jun 2020 21:39:07 +0900
changeset 44947 ad6971e6740c
parent 44946 fb2936c5f6dc
child 44948 eb6380da47a5
simplemerge: fix function name that tests if ctx is not null revision
mercurial/simplemerge.py
--- 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):