Lines Matching refs:sf
992 for fn, sf in source_data.items():
993 assert fn == sf.name
994 matching_file_cache["path:" + fn] = sf
999 if target_data.get(sf.name) is None:
1000 matching_file_cache["file:" + fn.split("/")[-1]] = sf
1001 matching_file_cache["sha:" + sf.sha1] = sf
1006 sf = ClosestFileMatch(tf, matching_file_cache, renames)
1007 if sf is not None and sf.name != tf.name:
1008 print "File has moved from " + sf.name + " to " + tf.name
1009 renames[sf.name] = tf
1011 if sf is None or fn in OPTIONS.require_verbatim:
1020 elif tf.sha1 != sf.sha1:
1022 diffs.append(common.Difference(tf, sf))
1030 tf, sf, d = diff.GetPatch()
1039 if sf.name in renames:
1040 del renames[sf.name]
1043 common.ZipWriteStr(output_zip, "patch/" + sf.name + ".p", d)
1044 patch_list.append((tf, sf, tf.size, common.sha1(d).hexdigest()))
1045 largest_source_size = max(largest_source_size, sf.size)
1051 for tf, sf, _, _ in self.patch_list:
1052 if tf.name != sf.name:
1054 script.PatchCheck("/"+sf.name, tf.sha1, sf.sha1)
1055 so_far += sf.size
1078 tf, sf, _, _ = item
1082 if sf.name != tf.name:
1084 script.ApplyPatch("/" + sf.name, "-", tf.size, tf.sha1, sf.sha1,
1085 "patch/" + sf.name + ".p")
1092 tf, sf, _, _ = item
1093 script.ApplyPatch("/"+sf.name, "-", tf.size, tf.sha1, sf.sha1,
1094 "patch/" + sf.name + ".p")