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

Unified Diff: git-try

Issue 3390013: Reuse gcl.py's code review settings when running [gcl try], as gcl is ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 10 years, 2 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 | « gcl.py ('k') | 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 61647)
+++ git-try (working copy)
@@ -11,6 +11,7 @@
import gclient_utils
from scm import GIT
+import third_party.upload
import trychange
@@ -51,10 +52,14 @@
args.extend(['--rietveld_url', GetRietveldServerUrl()])
# Hack around a limitation in logging.
logging.getLogger().handlers = []
- sys.exit(trychange.TryChange(
- args, file_list=[], swallow_exception=False,
- prog='git-try',
- extra_epilog='\n'
- 'git-try will diff against your tracked branch and will '
- 'detect your rietveld\n'
- 'code review if you are using git-cl\n'))
+ try:
+ sys.exit(trychange.TryChange(
+ args, file_list=[], swallow_exception=False,
+ prog='git-try',
+ extra_epilog='\n'
+ 'git-try will diff against your tracked branch and will '
+ 'detect your rietveld\n'
+ 'code review if you are using git-cl\n'))
+ except third_party.upload.ClientLoginError, e:
+ print('Got an exception while trying to log in to Rietveld.')
+ print(str(e))
« no previous file with comments | « gcl.py ('k') | tests/trychange_unittest.py » ('j') | trychange.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698