Commit 926ae6a7 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix 2 recently introduced errors.

TEST=none
BUG=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@32058 0039d316-1c4b-4281-b951-d872f2087c98
parent 85a3192f
......@@ -363,7 +363,8 @@ class SVN(object):
empty string is also returned.
"""
output = SVN.Run(["propget", property_name, file], None)
if (output.startswith("svn: ") and
if (output and
output.startswith("svn: ") and
output.endswith("is not under version control")):
return ""
else:
......
......@@ -151,7 +151,7 @@ class SVN(SCM):
os.chdir(root)
# Directories will return None so filter them out.
diff = filter(None, [scm.SVN.Diff(f) for f in files])
diff = filter(None, [scm.SVN.DiffItem(f) for f in files])
os.chdir(previous_cwd)
return "".join(diff)
......
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