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

Unified Diff: git-try

Issue 481006: Allow git-try to try rietveld changes directly. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Fix comments Created 10 years, 11 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 | tests/trychange_unittest.py » ('j') | trychange.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git-try
===================================================================
--- git-try (revision 35878)
+++ git-try (working copy)
@@ -28,6 +28,11 @@
error_ok=True)
+def GetRietveldServerUrl():
+ return GIT.Capture(
+ ['config', 'rietveld.server'], error_ok=True).strip()
+
+
if __name__ == '__main__':
args = sys.argv[:]
patchset = GetRietveldPatchsetNumber()
@@ -36,6 +41,10 @@
'--issue', GetRietveldIssueNumber(),
'--patchset', patchset,
])
+ else:
+ rietveld_url = GetRietveldServerUrl()
+ if rietveld_url:
+ args.extend(['--rietveld_url', GetRietveldServerUrl()])
# Hack around a limitation in logging.
logging.getLogger().handlers = []
sys.exit(trychange.TryChange(args, [], False, 'git-try'))
« no previous file with comments | « no previous file | tests/trychange_unittest.py » ('j') | trychange.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698