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

Unified Diff: scm.py

Issue 6650011: Add code to correctly revert a svn add'ed file. (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 | tests/scm_unittest.py » ('j') | 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 471b9d7475e333fae4dcf1a4b608729fcb1d2d39..aaab02c088c3ad30fa48c00fa6f85ad49b8f7ed3 100644
--- a/scm.py
+++ b/scm.py
@@ -878,7 +878,7 @@ class SVN(object):
# svn revert is really stupid. It fails on inconsistent line-endings,
# on switched directories, etc. So take no chance and delete everything!
- if file_status[0][0] in ('D', 'A') or file_status[0][2] != ' ':
+ if file_status[0][0] in ('D', 'A', '!') or file_status[0][2] != ' ':
# Added, deleted file requires manual intervention and require calling
# revert, like for properties.
try:
« no previous file with comments | « no previous file | tests/scm_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698