Mercurial > hg
diff tests/test-wireproto.py @ 36801:66de4555cefd
wireproto: formalize permissions checking as part of protocol interface
Per the inline comment desiring to formalize permissions checking
in the protocol interface, we do that.
I'm not convinced this is the best way to go about things. I would love
for there to e.g. be a better exception for denoting permissions
problems. But it does feel strictly better than snipping attributes
on the proto instance.
Differential Revision: https://phab.mercurial-scm.org/D2719
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 07 Mar 2018 16:18:52 -0800 |
parents | c28de190e20a |
children | 65615c29e74f |
line wrap: on
line diff
--- a/tests/test-wireproto.py Wed Mar 07 16:02:24 2018 -0800 +++ b/tests/test-wireproto.py Wed Mar 07 16:18:52 2018 -0800 @@ -18,6 +18,9 @@ names = spec.split() return [args[n] for n in names] + def checkperm(self, perm): + pass + class clientpeer(wireproto.wirepeer): def __init__(self, serverrepo): self.serverrepo = serverrepo