Fix a regression on svn cp|ren|mv on gcl upload.

BUG=11884
Review URL: http://codereview.chromium.org/113341

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@15953 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 17 years ago
parent 7196846f83
commit c315020307

@ -673,10 +673,13 @@ def GenerateDiff(files, root=None):
output = RunShell(["svn", "diff", "--config-dir", bogus_dir, file])
if output:
diff.append(output)
# On Posix platforms, svn diff on a mv/cp'd file outputs nothing.
# We put in an empty Index entry so upload.py knows about them.
elif not sys.platform.startswith("win") and IsSVNMoved(file):
elif IsSVNMoved(file):
# svn diff on a mv/cp'd file outputs nothing.
# We put in an empty Index entry so upload.py knows about them.
diff.append("\nIndex: %s\n" % file)
else:
# The file is not modified anymore. It should be removed from the set.
pass
os.chdir(previous_cwd)
return "".join(diff)

Loading…
Cancel
Save