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

Unified Diff: rietveld.py

Issue 7754016: Fix rietveld when status is only one char (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 3 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 | tests/rietveld_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index 6f4f4ae7fd864e07355c572dd79011157a7bda92..e64a46d1c9decd04ecf2266cb1501667945530c4 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -160,7 +160,9 @@ class Rietveld(object):
if status[0] == 'A':
# It won't be set for empty file.
p.is_new = True
- if status[1] == '+' and not (p.source_filename or p.svn_properties):
+ if (len(status) > 1 and
+ status[1] == '+' and
+ not (p.source_filename or p.svn_properties)):
raise patch.UnsupportedPatchFormat(
filename, 'Failed to process the svn properties')
else:
« no previous file with comments | « no previous file | tests/rietveld_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698