debugancestor: use *args instead of *opts, to not confuse with option dicts.
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 29 Feb 2008 01:14:37 +0100
changeset 6188 3b0c2b71e0d7
parent 6187 531f3e78c6f2
child 6189 81cbb5dfdec0
debugancestor: use *args instead of *opts, to not confuse with option dicts.
mercurial/commands.py
--- a/mercurial/commands.py	Thu Feb 28 17:37:56 2008 +0200
+++ b/mercurial/commands.py	Fri Feb 29 01:14:37 2008 +0100
@@ -568,13 +568,13 @@
     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: