Mercurial > hg-git
comparison hggit/git_handler.py @ 1035:cfcd3032355c
compat: remove unused argument
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Sat, 05 Aug 2017 17:07:59 -0500 |
parents | fa08148bc5fc |
children | b4d2180739bb |
comparison
equal
deleted
inserted
replaced
1034:fa08148bc5fc | 1035:cfcd3032355c |
---|---|
1693 | 1693 |
1694 if uri.startswith('git+http://') or uri.startswith('git+https://'): | 1694 if uri.startswith('git+http://') or uri.startswith('git+https://'): |
1695 uri = uri[4:] | 1695 uri = uri[4:] |
1696 | 1696 |
1697 if uri.startswith('http://') or uri.startswith('https://'): | 1697 if uri.startswith('http://') or uri.startswith('https://'): |
1698 realm = hgutil.urlreq.httppasswordmgrwithdefaultrealm() | 1698 pmgr = compat.passwordmgr(self.ui) |
1699 pmgr = compat.passwordmgr(self.ui, realm) | |
1700 auth = urllib2.HTTPBasicAuthHandler(pmgr) | 1699 auth = urllib2.HTTPBasicAuthHandler(pmgr) |
1701 | 1700 |
1702 opener = urllib2.build_opener(auth) | 1701 opener = urllib2.build_opener(auth) |
1703 ua = 'git/20x6 (hg-git ; uses dulwich and hg ; like git-core)' | 1702 ua = 'git/20x6 (hg-git ; uses dulwich and hg ; like git-core)' |
1704 opener.addheaders = [('User-Agent', ua)] | 1703 opener.addheaders = [('User-Agent', ua)] |