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

Unified Diff: tools/git/move_source_file.py

Issue 16325022: move content/common_child to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | « content/worker/worker_webkitplatformsupport_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/git/move_source_file.py
diff --git a/tools/git/move_source_file.py b/tools/git/move_source_file.py
index 69cb8623f260762bb5bba1d4de82bd8998271215..eacdccd968fe97198440f3e0aca730b8d3e215d6 100755
--- a/tools/git/move_source_file.py
+++ b/tools/git/move_source_file.py
@@ -44,7 +44,8 @@ def MakeDestinationPath(from_path, to_path):
checks.
"""
if os.path.splitext(from_path)[1] not in HANDLED_EXTENSIONS:
- raise Exception('Only intended to move individual source files.')
+ raise Exception('Only intended to move individual source files. (%s)' %
+ from_path)
dest_extension = os.path.splitext(to_path)[1]
if dest_extension not in HANDLED_EXTENSIONS:
if to_path.endswith('/') or to_path.endswith('\\'):
@@ -136,9 +137,9 @@ def UpdateIncludeGuard(old_path, new_path):
# The file should now have three instances of the new guard: two at the top
# of the file plus one at the bottom for the comment on the #endif.
if new_contents.count(new_guard) != 3:
- print ('WARNING: Could not not successfully update include guard; perhaps '
+ print ('WARNING: Could not successfully update include guard; perhaps '
'old guard is not per style guide? You will have to update the '
- 'include guard manually.')
+ 'include guard manually. (%s)' % new_path)
with open(new_path, 'w') as f:
f.write(new_contents)
« no previous file with comments | « content/worker/worker_webkitplatformsupport_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698