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

Unified Diff: git-try

Issue 173249: Update git-try to find trychange after move. (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: 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: git-try
===================================================================
--- git-try (revision 24063)
+++ git-try (working copy)
@@ -1,7 +1,5 @@
#!/usr/bin/python
-# Repo lives in ~evanm/projects/git-try -- feel free to send patches.
-
import getpass
import optparse
import os
@@ -104,13 +102,12 @@
"""Put a patch on the try server using SVN."""
root_dir = Backquote(['git', 'rev-parse', '--show-cdup'])
script_path = os.path.dirname(sys.argv[0])
- path = os.path.join(script_path, '..')
- sys.path.append(path)
+ sys.path.append(script_path)
M-A Ruel 2009/08/24 15:38:17 All this stuff is not necessary anymore since both
try:
import trychange
except ImportError, e:
- print "Error trying to import trychange from", path
- print "git-try expects to live at depot_tools/git-try-repo/git-try"
+ print "Error trying to import trychange from", script_path
+ print "git-try expects to live at depot_tools/git-try"
raise e
trychange.checkout_root = os.path.abspath(root_dir)
trychange.TryChange(args, None, 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