Mercurial > hgsubversion
comparison svnwrap/svn_swig_wrapper.py @ 238:e8b3ca865f93
Fix a boneheaded mistake I made when I touched up a previous patch.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 08 Apr 2009 10:28:56 -0500 |
parents | 2969a20e0eef |
children | d978192f0d63 |
comparison
equal
deleted
inserted
replaced
237:c90cfa665b81 | 238:e8b3ca865f93 |
---|---|
2 import getpass | 2 import getpass |
3 import os | 3 import os |
4 import shutil | 4 import shutil |
5 import sys | 5 import sys |
6 import tempfile | 6 import tempfile |
7 import hashlib | |
8 import urlparse | 7 import urlparse |
8 import urllib | |
9 | 9 |
10 from svn import client | 10 from svn import client |
11 from svn import core | 11 from svn import core |
12 from svn import delta | 12 from svn import delta |
13 from svn import ra | 13 from svn import ra |
99 user, passwd = None, None | 99 user, passwd = None, None |
100 if '@' in netloc: | 100 if '@' in netloc: |
101 userpass, netloc = netloc.split('@') | 101 userpass, netloc = netloc.split('@') |
102 if ':' in userpass: | 102 if ':' in userpass: |
103 user, passwd = userpass.split(':') | 103 user, passwd = userpass.split(':') |
104 user, passwd = urlparse.unquote(user) or None, urlparse.unquote(passwd) or None | 104 user, passwd = urllib.unquote(user) or None, urllib.unquote(passwd) or None |
105 else: | 105 else: |
106 user = urlparse.unquote(userpass) or None | 106 user = urllib.unquote(userpass) or None |
107 url = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) | 107 url = urlparse.urlunparse((scheme, netloc, path, params, query, fragment)) |
108 return (user, passwd, url) | 108 return (user, passwd, url) |
109 | 109 |
110 class Revision(object): | 110 class Revision(object): |
111 """Wrapper for a Subversion revision. | 111 """Wrapper for a Subversion revision. |