mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
debugancestor: use *args instead of *opts, to not confuse with option dicts.
This commit is contained in:
parent
e8713cc272
commit
4ccb125e93
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user