Commit 2349b066 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix a variable aliasing error.

TBR=mad
TEST=none
BUG=none

Review URL: http://codereview.chromium.org/395018

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@32059 0039d316-1c4b-4281-b951-d872f2087c98
parent 926ae6a7
......@@ -719,9 +719,10 @@ def GenerateDiff(files, root=None):
diff = []
for filename in files:
# TODO(maruel): Use SVN.DiffItem().
# Use svn info output instead of os.path.isdir because the latter fails
# when the file is deleted.
if SVN.CaptureInfo(file).get('Node Kind') == 'directory':
if SVN.CaptureInfo(filename).get('Node Kind') == 'directory':
continue
# If the user specified a custom diff command in their svn config file,
# then it'll be used when we do svn diff, which we don't want to happen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment