Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG4224f26c0d35: narrow: fix for getting the username when running http server
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/narrow/narrowbundle2.py | ||
---|---|---|
331 | REMOTE_USER is an HTTP-ism and I think it is a layering violation to look for REMOTE_USER in code that is supposed to be protocol agnostic. What I'm trying to say is I think we'll need to tweak this ACL code further when it is moved to core. |
hgext/narrow/narrowbundle2.py | ||
---|---|---|
331 | But you're okay with this version for now? This commit is currently the bottom-most draft commit in the "committed" repo, so please accept it if you're okay with it. I would have accepted, but I saw this comment and wasn't sure if you thought this was bad enough to not queue it. |
hgext/narrow/narrowbundle2.py | ||
---|---|---|
331 | Ideally I would have liked to have a userid method in repo.ui (or something like that), and have it used by both narrow and acl extension. |
REMOTE_USER is an HTTP-ism and I think it is a layering violation to look for REMOTE_USER in code that is supposed to be protocol agnostic.
What I'm trying to say is I think we'll need to tweak this ACL code further when it is moved to core.