# HG changeset patch # User Thomas Arendsen Hein # Date 2008-02-29 00:14:37 # Node ID 3b0c2b71e0d77dda6bc666333abd17d6ccc37786 # Parent 531f3e78c6f215198c73a7de8150ddf0c9db35e4 debugancestor: use *args instead of *opts, to not confuse with option dicts. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -568,13 +568,13 @@ def copy(ui, repo, *pats, **opts): finally: del wlock -def debugancestor(ui, *opts): +def debugancestor(ui, *args): """find the ancestor revision of two revisions in a given index""" - if len(opts) == 3: - index, rev1, rev2 = opts + if len(args) == 3: + index, rev1, rev2 = args r = revlog.revlog(util.opener(os.getcwd(), audit=False), index) - elif len(opts) == 2: - rev1, rev2 = opts + elif len(args) == 2: + rev1, rev2 = args repo = hg.repository(ui) r = repo.changelog else: