Mercurial > hg
comparison hgext/convert/transport.py @ 50903:e054898624db
convert: use sysstr to check for attribute presence
We do not need bytes here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Sep 2023 13:08:02 +0200 |
parents | de9ffb82ef4d |
children | d718eddf01d9 |
comparison
equal
deleted
inserted
replaced
50902:defd2b3eafdb | 50903:e054898624db |
---|---|
61 for type in (b'simple', b'ssl_client_cert_pw', b'ssl_server_trust'): | 61 for type in (b'simple', b'ssl_client_cert_pw', b'ssl_server_trust'): |
62 p = getprovider(name, type, pool) | 62 p = getprovider(name, type, pool) |
63 if p: | 63 if p: |
64 providers.append(p) | 64 providers.append(p) |
65 else: | 65 else: |
66 if util.safehasattr(svn.client, b'get_windows_simple_provider'): | 66 if util.safehasattr(svn.client, 'get_windows_simple_provider'): |
67 providers.append(svn.client.get_windows_simple_provider(pool)) | 67 providers.append(svn.client.get_windows_simple_provider(pool)) |
68 | 68 |
69 return svn.core.svn_auth_open(providers, pool) | 69 return svn.core.svn_auth_open(providers, pool) |
70 | 70 |
71 | 71 |
83 self.svn_url = url | 83 self.svn_url = url |
84 self.username = b'' | 84 self.username = b'' |
85 self.password = b'' | 85 self.password = b'' |
86 | 86 |
87 # Only Subversion 1.4 has reparent() | 87 # Only Subversion 1.4 has reparent() |
88 if ra is None or not util.safehasattr(svn.ra, b'reparent'): | 88 if ra is None or not util.safehasattr(svn.ra, 'reparent'): |
89 self.client = svn.client.create_context(self.pool) | 89 self.client = svn.client.create_context(self.pool) |
90 ab = _create_auth_baton(self.pool) | 90 ab = _create_auth_baton(self.pool) |
91 self.client.auth_baton = ab | 91 self.client.auth_baton = ab |
92 global svn_config | 92 global svn_config |
93 if svn_config is None: | 93 if svn_config is None: |