diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py index 4cdbe57bbe..e082bb25b6 100644 --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -782,8 +782,7 @@ def debugdiscovery(ui, repo, remoteurl="default", **opts): 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)