changeset 44947:ad6971e6740c

simplemerge: fix function name that tests if ctx is not null revision
author Yuya Nishihara <yuya@tcha.org>
date Tue, 02 Jun 2020 21:39:07 +0900
parents fb2936c5f6dc
children eb6380da47a5
files mercurial/simplemerge.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):