##// END OF EJS Templates
debugancestor: use *args instead of *opts, to not confuse with option dicts.
Thomas Arendsen Hein -
r6188:3b0c2b71 default
parent child Browse files
Show More
@@ -568,13 +568,13 b' def copy(ui, repo, *pats, **opts):'
568 finally:
568 finally:
569 del wlock
569 del wlock
570
570
571 def debugancestor(ui, *opts):
571 def debugancestor(ui, *args):
572 """find the ancestor revision of two revisions in a given index"""
572 """find the ancestor revision of two revisions in a given index"""
573 if len(opts) == 3:
573 if len(args) == 3:
574 index, rev1, rev2 = opts
574 index, rev1, rev2 = args
575 r = revlog.revlog(util.opener(os.getcwd(), audit=False), index)
575 r = revlog.revlog(util.opener(os.getcwd(), audit=False), index)
576 elif len(opts) == 2:
576 elif len(args) == 2:
577 rev1, rev2 = opts
577 rev1, rev2 = args
578 repo = hg.repository(ui)
578 repo = hg.repository(ui)
579 r = repo.changelog
579 r = repo.changelog
580 else:
580 else:
General Comments 0
You need to be logged in to leave comments. Login now