Use the modified path, not the original path for the platform prefix.

Fixes regression introduced in r11642.


git-svn-id: http://skia.googlecode.com/svn/trunk@11693 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2013-10-10 14:16:23 +00:00
parent b295fb6ff3
commit cc5fd0a95a

View File

@ -261,9 +261,9 @@ def SvnDiff(path_to_skdiff, dest_dir, source_dir):
else:
_GitExportBaseVersionOfFile(
modified_file_path, original_file.name)
original_directory = os.path.dirname(original_file.name)
modified_dir = os.path.dirname(modified_file_path)
platform_prefix = (re.sub(re.escape(os.sep), '__',
os.path.splitdrive(original_directory)[1])
os.path.splitdrive(modified_dir)[1])
+ '__')
_CallJsonDiff(old_json_path=original_file.name,
new_json_path=modified_file_path,