Mercurial > evolve
comparison hgext3rd/topic/__init__.py @ 3065:fdd0b6c26597 stable
pager: add support to `hg stack`
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 13 Oct 2017 06:02:56 +0530 |
parents | adfc936dff63 |
children | 512827b1a24a |
comparison
equal
deleted
inserted
replaced
3064:7a1a4d1f0958 | 3065:fdd0b6c26597 |
---|---|
522 branch = None | 522 branch = None |
523 if topic is None and repo.currenttopic: | 523 if topic is None and repo.currenttopic: |
524 topic = repo.currenttopic | 524 topic = repo.currenttopic |
525 if topic is None: | 525 if topic is None: |
526 branch = repo[None].branch() | 526 branch = repo[None].branch() |
527 compat.startpager(ui, 'stack') | |
527 return stack.showstack(ui, repo, branch=branch, topic=topic, opts=opts) | 528 return stack.showstack(ui, repo, branch=branch, topic=topic, opts=opts) |
528 | 529 |
529 @command('debugcb|debugconvertbookmark', [ | 530 @command('debugcb|debugconvertbookmark', [ |
530 ('b', 'bookmark', '', _('bookmark to convert to topic')), | 531 ('b', 'bookmark', '', _('bookmark to convert to topic')), |
531 ('', 'all', None, _('convert all bookmarks to topics')), | 532 ('', 'all', None, _('convert all bookmarks to topics')), |