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
experimental/szager/collated-output
maruel@chromium.org 15 years ago
parent ad80e3b96e
commit 24b742025c

@ -9,25 +9,32 @@ import sys
import breakpad
import gclient_utils
from scm import GIT
import trychange
def GetRietveldIssueNumber():
return GIT.Capture(
['config', 'branch.%s.rietveldissue' % GIT.GetBranch(None)],
error_ok=True)[0]
try:
return GIT.Capture(
['config', 'branch.%s.rietveldissue' % GIT.GetBranch(None)])
except gclient_utils.Error:
return None
def GetRietveldPatchsetNumber():
return GIT.Capture(
['config', 'branch.%s.rietveldpatchset' % GIT.GetBranch(None)],
error_ok=True)[0]
try:
return GIT.Capture(
['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__':

Loading…
Cancel
Save