##// END OF EJS Templates
branchmap-v3: detect invalid headerline and raise error...
marmoute -
r52865:dd3ccda3 default
parent child Browse files
Show More
@@ -937,6 +937,10 class BranchCacheV3(_LocalBranchCache):
937 def _load_header(cls, repo, lineiter):
937 def _load_header(cls, repo, lineiter):
938 header_line = next(lineiter)
938 header_line = next(lineiter)
939 pieces = header_line.rstrip(b'\n').split(b" ")
939 pieces = header_line.rstrip(b'\n').split(b" ")
940 for p in pieces:
941 if b'=' not in p:
942 msg = b"invalid header_line: %r" % header_line
943 raise ValueError(msg)
940 cache_keys = dict(p.split(b'=', 1) for p in pieces)
944 cache_keys = dict(p.split(b'=', 1) for p in pieces)
941
945
942 args = {}
946 args = {}
General Comments 0
You need to be logged in to leave comments. Login now