Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(979)

Unified Diff: scm.py

Issue 6721030: When diffing against an old revision, handle the case if a file didn't exists. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scm.py
diff --git a/scm.py b/scm.py
index 2564033698c6c73a221aa9ae8bd3f824be5cae25..cbddd69a7998094e1d54eb547dbe53dcc7164882 100644
--- a/scm.py
+++ b/scm.py
@@ -733,7 +733,13 @@ class SVN(object):
else:
if info.get("Node Kind") != "directory":
# Normal simple case.
- data = SVN.Capture(command)
+ try:
+ data = SVN.Capture(command)
+ except gclient_utils.CheckCallError, e:
+ if revision:
+ data = GenFakeDiff(filename)
+ else:
+ raise
# Otherwise silently ignore directories.
return data
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698