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

Unified Diff: webkit/tools/layout_tests/rebaseline.py

Issue 170017: If you use the rebaseline.py script with a .git repo, (Closed)
Patch Set: review comments Created 11 years, 4 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: webkit/tools/layout_tests/rebaseline.py
diff --git a/webkit/tools/layout_tests/rebaseline.py b/webkit/tools/layout_tests/rebaseline.py
index 652c3505938a2aa083eeff9640d4146fa38b6373..2261933197d436252c2c55ff7577fd76abf2c306 100644
--- a/webkit/tools/layout_tests/rebaseline.py
+++ b/webkit/tools/layout_tests/rebaseline.py
@@ -422,6 +422,11 @@ class Rebaseliner(object):
return False
parent_dir, basename = os.path.split(filename)
+ if parent_dir == filename:
+ logging.info("No svn checkout found. Assuming it's a git repo and not "
+ "adding")
+ return True
+
original_dir = os.getcwd()
os.chdir(parent_dir)
status_output = RunShell(['svn', 'status', basename], False)
« 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