Commit 24b74202 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix git-try, was broken by r58936.

TBR=bradnelson
TEST=git-try works
BUG=54084

Review URL: http://codereview.chromium.org/3311021

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@58941 0039d316-1c4b-4281-b951-d872f2087c98
parent ad80e3b9
......@@ -9,25 +9,32 @@ import sys
import breakpad
import gclient_utils
from scm import GIT
import trychange
def GetRietveldIssueNumber():
try:
return GIT.Capture(
['config', 'branch.%s.rietveldissue' % GIT.GetBranch(None)],
error_ok=True)[0]
['config', 'branch.%s.rietveldissue' % GIT.GetBranch(None)])
except gclient_utils.Error:
return None
def GetRietveldPatchsetNumber():
try:
return GIT.Capture(
['config', 'branch.%s.rietveldpatchset' % GIT.GetBranch(None)],
error_ok=True)[0]
['config', 'branch.%s.rietveldpatchset' % GIT.GetBranch(None)])
except gclient_utils.Error:
return None
def GetRietveldServerUrl():
return GIT.Capture(
['config', 'rietveld.server'], error_ok=True)[0].strip()
try:
return GIT.Capture(['config', 'rietveld.server']).strip()
except gclient_utils.Error:
return None
if __name__ == '__main__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment