equal
deleted
inserted
replaced
563 |
563 |
564 def _pairspec(revspec): |
564 def _pairspec(revspec): |
565 tree = revsetlang.parse(revspec) |
565 tree = revsetlang.parse(revspec) |
566 return tree and tree[0] in ('range', 'rangepre', 'rangepost', 'rangeall') |
566 return tree and tree[0] in ('range', 'rangepre', 'rangepost', 'rangeall') |
567 |
567 |
568 def revpairnodes(repo, revs): |
|
569 repo.ui.deprecwarn("revpairnodes is deprecated, please use revpair", "4.6") |
|
570 ctx1, ctx2 = revpair(repo, revs) |
|
571 return ctx1.node(), ctx2.node() |
|
572 |
|
573 def revpair(repo, revs): |
568 def revpair(repo, revs): |
574 if not revs: |
569 if not revs: |
575 return repo['.'], repo[None] |
570 return repo['.'], repo[None] |
576 |
571 |
577 l = revrange(repo, revs) |
572 l = revrange(repo, revs) |