##// END OF EJS Templates
simplemerge: fix function name that tests if ctx is not null revision
Yuya Nishihara -
r45473:ad6971e6 default
parent child Browse files
Show More
@@ -456,7 +456,7 b' def _bytes_to_set(b):'
456 456 return set(b[x : x + 1] for x in range(len(b)))
457 457
458 458
459 def is_null(ctx):
459 def is_not_null(ctx):
460 460 if not util.safehasattr(ctx, "node"):
461 461 return False
462 462 return ctx.node() != nodemod.nullid
@@ -520,7 +520,7 b' def simplemerge(ui, localctx, basectx, o'
520 520 flags = localctx.flags()
521 521 localflags = _bytes_to_set(flags)
522 522 otherflags = _bytes_to_set(otherctx.flags())
523 if is_null(basectx) and localflags != otherflags:
523 if is_not_null(basectx) and localflags != otherflags:
524 524 baseflags = _bytes_to_set(basectx.flags())
525 525 flags = localflags & otherflags
526 526 for f in localflags.symmetric_difference(otherflags):
General Comments 0
You need to be logged in to leave comments. Login now