hgext3rd/topic/__init__.py
changeset 2677 8cdee1b9ee92
parent 2669 b933a8068c17
child 2679 5156a67f66a6
equal deleted inserted replaced
2676:10dedac0d82e 2677:8cdee1b9ee92
   410     if needevolve:
   410     if needevolve:
   411         evolvetarget = 'topic(%s)' % newtopic if newtopic else 'not topic()'
   411         evolvetarget = 'topic(%s)' % newtopic if newtopic else 'not topic()'
   412         ui.status('please run hg evolve --rev "%s" now\n' % evolvetarget)
   412         ui.status('please run hg evolve --rev "%s" now\n' % evolvetarget)
   413 
   413 
   414 def _listtopics(ui, repo, opts):
   414 def _listtopics(ui, repo, opts):
   415     fm = ui.formatter('bookmarks', opts)
   415     fm = ui.formatter('topics', opts)
   416     activetopic = repo.currenttopic
   416     activetopic = repo.currenttopic
   417     namemask = '%s'
   417     namemask = '%s'
   418     if repo.topics and ui.verbose:
   418     if repo.topics and ui.verbose:
   419         maxwidth = max(len(t) for t in repo.topics)
   419         maxwidth = max(len(t) for t in repo.topics)
   420         namemask = '%%-%is' % maxwidth
   420         namemask = '%%-%is' % maxwidth