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, * |
|
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( |
|
573 | if len(args) == 3: | |
574 |
index, rev1, rev2 = |
|
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( |
|
576 | elif len(args) == 2: | |
577 |
rev1, rev2 = |
|
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