equal
deleted
inserted
replaced
198 error, |
198 error, |
199 extensions, |
199 extensions, |
200 match, |
200 match, |
201 registrar, |
201 registrar, |
202 util, |
202 util, |
|
203 ) |
|
204 from mercurial.utils import ( |
|
205 procutil, |
203 ) |
206 ) |
204 |
207 |
205 urlreq = util.urlreq |
208 urlreq = util.urlreq |
206 |
209 |
207 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
210 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
336 url = kwargs[r'url'].split(':') |
339 url = kwargs[r'url'].split(':') |
337 if url[0] == 'remote' and url[1].startswith('http'): |
340 if url[0] == 'remote' and url[1].startswith('http'): |
338 user = urlreq.unquote(url[3]) |
341 user = urlreq.unquote(url[3]) |
339 |
342 |
340 if user is None: |
343 if user is None: |
341 user = util.getuser() |
344 user = procutil.getuser() |
342 |
345 |
343 ui.debug('acl: checking access for user "%s"\n' % user) |
346 ui.debug('acl: checking access for user "%s"\n' % user) |
344 |
347 |
345 # deprecated config: acl.config |
348 # deprecated config: acl.config |
346 cfg = ui.config('acl', 'config') |
349 cfg = ui.config('acl', 'config') |