diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -782,8 +782,7 @@ elif rheads <= common: ui.write(("remote is subset\n")) - remoterevs, _checkout = hg.addbranchrevs(repo, remote, branches, - opts.get('remote_head')) + remoterevs, _checkout = hg.addbranchrevs(repo, remote, branches, revs=None) localrevs = opts['rev'] doit(localrevs, remoterevs)