hgext3rd/topic/__init__.py
changeset 3701 29c413a7dfb5
parent 3695 3680f715c14f
child 3719 d15f882e7b85
equal deleted inserted replaced
3700:2577fdc3a458 3701:29c413a7dfb5
   598         if not rmatch or rmatch.group(0) != topic:
   598         if not rmatch or rmatch.group(0) != topic:
   599             helptxt = _("topic names can only consist of alphanumeric, '-'"
   599             helptxt = _("topic names can only consist of alphanumeric, '-'"
   600                         " '_' and '.' characters")
   600                         " '_' and '.' characters")
   601             raise error.Abort(_("invalid topic name: '%s'") % topic, hint=helptxt)
   601             raise error.Abort(_("invalid topic name: '%s'") % topic, hint=helptxt)
   602 
   602 
   603     compat.startpager(ui, 'topics')
   603     ui.pager('topics')
   604 
   604 
   605     if list:
   605     if list:
   606         if clear or rev:
   606         if clear or rev:
   607             raise error.Abort(_("cannot use --clear or --rev with --list"))
   607             raise error.Abort(_("cannot use --clear or --rev with --list"))
   608         if not topic:
   608         if not topic:
   679     branch = None
   679     branch = None
   680     if topic is None and repo.currenttopic:
   680     if topic is None and repo.currenttopic:
   681         topic = repo.currenttopic
   681         topic = repo.currenttopic
   682     if topic is None:
   682     if topic is None:
   683         branch = repo[None].branch()
   683         branch = repo[None].branch()
   684     compat.startpager(ui, 'stack')
   684     ui.pager('stack')
   685     return stack.showstack(ui, repo, branch=branch, topic=topic, opts=opts)
   685     return stack.showstack(ui, repo, branch=branch, topic=topic, opts=opts)
   686 
   686 
   687 @command('debugcb|debugconvertbookmark', [
   687 @command('debugcb|debugconvertbookmark', [
   688         ('b', 'bookmark', '', _('bookmark to convert to topic')),
   688         ('b', 'bookmark', '', _('bookmark to convert to topic')),
   689         ('', 'all', None, _('convert all bookmarks to topics')),
   689         ('', 'all', None, _('convert all bookmarks to topics')),