Show More
@@ -589,7 +589,9 b' def _is_revision_affected_inner(' | |||
|
589 | 589 | except error.CensoredNodeError: |
|
590 | 590 | # We don't care about censored nodes as they never carry metadata |
|
591 | 591 | return False |
|
592 | has_meta = raw_text.startswith(b'\x01\n') | |
|
592 | ||
|
593 | # raw text can be a `memoryview`, which doesn't implement `startswith` | |
|
594 | has_meta = len(raw_text) >= 2 and bytes(raw_text[:2]) == b'\x01\n' | |
|
593 | 595 | if metadata_cache is not None: |
|
594 | 596 | metadata_cache[filerev] = has_meta |
|
595 | 597 | if has_meta: |
General Comments 0
You need to be logged in to leave comments.
Login now