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

Unified Diff: tools/git/mass-rename.py

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac4 Created 7 years, 5 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
Index: tools/git/mass-rename.py
diff --git a/tools/git/mass-rename.py b/tools/git/mass-rename.py
index 8efec0913544ddd0cfe3586de8dc20d345796ef0..aef198aa1c530ec30833f1f0e91d00e95c07366f 100755
--- a/tools/git/mass-rename.py
+++ b/tools/git/mass-rename.py
@@ -29,7 +29,11 @@ def main():
if popen.returncode != 0:
return 1
for line in out.splitlines():
- attrs, fro, to = line.split('\t')
+ parts = line.split('\t')
+ if len(parts) != 3:
+ print "Skipping: %s -- not a rename?" % parts
+ continue
+ attrs, fro, to = parts
if attrs.split()[4].startswith('R'):
subprocess.check_call([
sys.executable,

Powered by Google App Engine
This is Rietveld 408576698