From 8a328e68c9f82e382f4d0b9cdaa8a610195e82df Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 13 Dec 2017 11:21:25 -0800 Subject: [PATCH] debugdiscovery: drop reference to non-existent --remote-head option It seems like it didn't even exist when debugdiscovery was introduced in 43f4c1113c8d (discovery: add new set-based discovery, 2011-05-02). Differential Revision: https://phab.mercurial-scm.org/D1693 --- mercurial/debugcommands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)