Home | History | Annotate | Download | only in scripts

Lines Matching refs:is_binary

629       A tuple (base_content, new_content, is_binary, status)
634 is_binary: True iff the file is binary.
665 def UploadFile(filename, file_id, content, is_binary, status, is_base):
684 ("is_binary", str(is_binary)),
702 base_content, new_content, is_binary, status = files[filename]
709 UploadFile(filename, file_id, base_content, is_binary, status, True)
711 UploadFile(filename, file_id, new_content, is_binary, status, False)
913 is_binary = mimetype and not mimetype.startswith("text/")
914 if is_binary and self.IsImage(filename):
933 is_binary = mimetype and not mimetype.startswith("text/")
937 elif is_binary:
953 if is_binary:
968 if not is_binary:
982 return base_content, new_content, is_binary, status[0:5]
1030 is_binary = False
1039 return (base_content, new_content, is_binary, status)
1108 is_binary = False
1127 is_binary = "\0" in base_content # Mercurial's heuristic
1130 is_binary = is_binary or "\0" in new_content
1131 if is_binary and base_content:
1135 if not is_binary or not self.IsImage(relpath):
1137 return base_content, new_content, is_binary, status