changeset 36021 | 5a56bf4180ad |
parent 36020 | ef683a0fd21f |
child 36104 | 2ad145fbde54 |
--- a/mercurial/wireproto.py Wed Jan 31 14:05:11 2018 -0800 +++ b/mercurial/wireproto.py Tue Jan 30 18:41:44 2018 -0800 @@ -691,6 +691,12 @@ return super(commanddict, self).__setitem__(k, v) + def commandavailable(self, command, proto): + """Determine if a command is available for the requested protocol.""" + # For now, commands are available for all protocols. So do a simple + # membership test. + return command in self + commands = commanddict() def wireprotocommand(name, args=''):