Commit cdb7bd50 authored by tandrii@chromium.org's avatar tandrii@chromium.org

Fail noisily when git auto-svn can't authenticate.

R=agable@chromium.org
BUG=N/A

Review URL: https://codereview.chromium.org/707233002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293277 0039d316-1c4b-4281-b951-d872f2087c98
parent 255f2bea
......@@ -78,7 +78,13 @@ def main(argv):
svn_repo = maybe_repo
svn_path = '/'.join(path_components[i+1:])
break
except subprocess2.CalledProcessError:
except subprocess2.CalledProcessError, e:
if 'E170001' in str(e):
print 'Authentication failed:'
print e
print ('Try running "svn ls %s" with the password'
' from https://chromium-access.appspot.com' % maybe_repo)
print
continue
assert svn_repo is not None, 'Unable to find svn repo for %s' % match.group(1)
print 'Found upstream svn repo %s and path %s' % (svn_repo, svn_path)
......
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