Skip to content

Commit

Permalink
Fix #100 asking for password for svn with basic authentication.
Browse files Browse the repository at this point in the history
  • Loading branch information
fschulze committed Nov 28, 2012
1 parent 782ff32 commit 387a679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
1.23 - Unreleased
-----------------

* Fix asking for password for svn with basic authentication. Refs #100
[MordicusEtCubitus]

* Fixed regressions in svn module. Refs #37
[fschulze, evilbungle (Alan Hoey)]

Expand Down
2 changes: 1 addition & 1 deletion src/mr/developer/svn.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def _svn_communicate(self, args, url, **kwargs):
stdout, stderr = cmd.communicate()
if cmd.returncode != 0:
lines = stderr.strip().split(b('\n'))
if 'authorization failed' in lines[-1]:
if 'authorization failed' in lines[-1] or 'Could not authenticate to server' in lines[-1]:
raise SVNAuthorizationError(stderr.strip())
if 'Server certificate verification failed: issuer is not trusted' in lines[-1]:
cmd = subprocess.Popen(interactive_args,
Expand Down

0 comments on commit 387a679

Please sign in to comment.