##// END OF EJS Templates
rewrite: fix issue6599...
Raphaël Gomès -
r49060:32b82445 stable draft
parent child Browse files
Show More
@@ -589,7 +589,9 b' def _is_revision_affected_inner('
589 except error.CensoredNodeError:
589 except error.CensoredNodeError:
590 # We don't care about censored nodes as they never carry metadata
590 # We don't care about censored nodes as they never carry metadata
591 return False
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 if metadata_cache is not None:
595 if metadata_cache is not None:
594 metadata_cache[filerev] = has_meta
596 metadata_cache[filerev] = has_meta
595 if has_meta:
597 if has_meta:
General Comments 0
You need to be logged in to leave comments. Login now