Show More
@@ -451,11 +451,6 b' def _picklabels(defaults, overrides):' | |||||
451 | return result |
|
451 | return result | |
452 |
|
452 | |||
453 |
|
453 | |||
454 | def _bytes_to_set(b): |
|
|||
455 | """turns a multiple bytes (usually flags) into a set of individual byte""" |
|
|||
456 | return set(b[x : x + 1] for x in range(len(b))) |
|
|||
457 |
|
||||
458 |
|
||||
459 | def is_not_null(ctx): |
|
454 | def is_not_null(ctx): | |
460 | if not util.safehasattr(ctx, "node"): |
|
455 | if not util.safehasattr(ctx, "node"): | |
461 | return False |
|
456 | return False | |
@@ -518,10 +513,10 b' def simplemerge(ui, localctx, basectx, o' | |||||
518 |
|
513 | |||
519 | # merge flags if necessary |
|
514 | # merge flags if necessary | |
520 | flags = localctx.flags() |
|
515 | flags = localctx.flags() | |
521 |
localflags = |
|
516 | localflags = set(pycompat.iterbytestr(flags)) | |
522 |
otherflags = |
|
517 | otherflags = set(pycompat.iterbytestr(otherctx.flags())) | |
523 | if is_not_null(basectx) and localflags != otherflags: |
|
518 | if is_not_null(basectx) and localflags != otherflags: | |
524 |
baseflags = |
|
519 | baseflags = set(pycompat.iterbytestr(basectx.flags())) | |
525 | flags = localflags & otherflags |
|
520 | flags = localflags & otherflags | |
526 | for f in localflags.symmetric_difference(otherflags): |
|
521 | for f in localflags.symmetric_difference(otherflags): | |
527 | if f not in baseflags: |
|
522 | if f not in baseflags: |
General Comments 0
You need to be logged in to leave comments.
Login now