equal
deleted
inserted
replaced
80 if line.startswith('patching file '): |
80 if line.startswith('patching file '): |
81 pf = parse_patch_output(line) |
81 pf = parse_patch_output(line) |
82 files.setdefault(pf, 1) |
82 files.setdefault(pf, 1) |
83 code = fp.close() |
83 code = fp.close() |
84 if code: |
84 if code: |
85 raise Abort("patch command failed: %s" % explain_exit(code)) |
85 raise Abort("patch command failed: %s" % explain_exit(code)[0]) |
86 return files.keys() |
86 return files.keys() |
87 |
87 |
88 def binary(s): |
88 def binary(s): |
89 """return true if a string is binary data using diff's heuristic""" |
89 """return true if a string is binary data using diff's heuristic""" |
90 if s and '\0' in s[:4096]: |
90 if s and '\0' in s[:4096]: |