Show More
@@ -193,14 +193,11 b' 3) Deny access to a file to anyone but u' | |||||
193 |
|
193 | |||
194 | from __future__ import absolute_import |
|
194 | from __future__ import absolute_import | |
195 |
|
195 | |||
196 | import getpass |
|
|||
197 |
|
||||
198 | from mercurial.i18n import _ |
|
196 | from mercurial.i18n import _ | |
199 | from mercurial import ( |
|
197 | from mercurial import ( | |
200 | error, |
|
198 | error, | |
201 | extensions, |
|
199 | extensions, | |
202 | match, |
|
200 | match, | |
203 | pycompat, |
|
|||
204 | registrar, |
|
201 | registrar, | |
205 | util, |
|
202 | util, | |
206 | ) |
|
203 | ) | |
@@ -341,7 +338,7 b' def hook(ui, repo, hooktype, node=None, ' | |||||
341 | user = urlreq.unquote(url[3]) |
|
338 | user = urlreq.unquote(url[3]) | |
342 |
|
339 | |||
343 | if user is None: |
|
340 | if user is None: | |
344 |
user = |
|
341 | user = util.getuser() | |
345 |
|
342 | |||
346 | ui.debug('acl: checking access for user "%s"\n' % user) |
|
343 | ui.debug('acl: checking access for user "%s"\n' % user) | |
347 |
|
344 |
General Comments 0
You need to be logged in to leave comments.
Login now