# HG changeset patch # User Pierre-Yves David # Date 1357443453 -3600 # Node ID 47abbaabaaa59483525c881608c8cf21c5299d22 # Parent 679767c38cb52a77142ad49a8dc3a9a0e75e7929 clfilter: filter "unserved" on all wireprotocol command calls This ensures that unserved changesets are not exposed through the wire protocol. diff -r 679767c38cb5 -r 47abbaabaaa5 mercurial/wireproto.py --- a/mercurial/wireproto.py Sun Jan 06 04:28:52 2013 +0100 +++ b/mercurial/wireproto.py Sun Jan 06 04:37:33 2013 +0100 @@ -346,6 +346,7 @@ self.message = message def dispatch(repo, proto, command): + repo = repo.filtered("unserved") func, spec = commands[command] args = proto.getargs(spec) return func(repo, proto, *args) @@ -362,6 +363,7 @@ return opts def batch(repo, proto, cmds, others): + repo = repo.filtered("unserved") res = [] for pair in cmds.split(';'): op, args = pair.split(' ', 1)