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

Unified Diff: git_try.py

Issue 8059009: Support for |change| argument to |GetPreferredTrySlaves()|, try 2. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: '' Created 9 years, 3 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 | « git_cl.py ('k') | presubmit_support.py » ('j') | trychange.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_try.py
===================================================================
--- git_try.py (revision 102922)
+++ git_try.py (working copy)
@@ -13,6 +13,7 @@
import subprocess2
import third_party.upload
import trychange
+import git_cl
def GetRietveldIssueNumber():
@@ -53,8 +54,10 @@
# Hack around a limitation in logging.
logging.getLogger().handlers = []
try:
+ cl = git_cl.Changelist()
+ change = cl.GetChange(cl.GetUpstreamBranch(), None)
sys.exit(trychange.TryChange(
- args, file_list=[], swallow_exception=False,
+ args, change, file_list=[], swallow_exception=False,
prog='git try',
extra_epilog='\n'
'git try will diff against your tracked branch and will '
« no previous file with comments | « git_cl.py ('k') | presubmit_support.py » ('j') | trychange.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698