diff --git a/mercurial/httprepo.py b/mercurial/httprepo.py --- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -68,7 +68,7 @@ class httprepository(wireproto.wirerepos raise util.Abort(_('operation not supported over http')) def _callstream(self, cmd, **args): - if cmd is 'pushkey': + if cmd == 'pushkey': args['data'] = '' data = args.pop('data', None) headers = args.pop('headers', {})