hgext3rd/topic/__init__.py
changeset 3769 1bc4b0807c37
parent 3768 482195001997
child 3770 eb928f5728c4
equal deleted inserted replaced
3768:482195001997 3769:1bc4b0807c37
   485                 repo = reporef()
   485                 repo = reporef()
   486                 csetcount = stack.stack(repo, topic=ct).changesetcount
   486                 csetcount = stack.stack(repo, topic=ct).changesetcount
   487                 empty = csetcount == 0
   487                 empty = csetcount == 0
   488                 if empty and not ctwasempty:
   488                 if empty and not ctwasempty:
   489                     ui.status('active topic %r is now empty\n' % ct)
   489                     ui.status('active topic %r is now empty\n' % ct)
       
   490                 hint = _("(see 'hg help topics' for more information)\n")
   490                 if ctwasempty and not empty:
   491                 if ctwasempty and not empty:
   491                     if csetcount == 1:
   492                     if csetcount == 1:
   492                         msg = _('active topic %r grew its first changeset\n')
   493                         msg = _('active topic %r grew its first changeset\n%s')
   493                         ui.status(msg % ct)
   494                         ui.status(msg % (ct, hint))
   494                     else:
   495                     else:
   495                         msg = _('active topic %r grew its %s first changesets\n')
   496                         msg = _('active topic %r grew its %s first changesets\n%s')
   496                         ui.status(msg % (ct, csetcount))
   497                         ui.status(msg % (ct, csetcount, hint))
   497 
   498 
   498             tr.addpostclose('signalcurrenttopicempty', currenttopicempty)
   499             tr.addpostclose('signalcurrenttopicempty', currenttopicempty)
   499             return tr
   500             return tr
   500 
   501 
   501     repo.__class__ = topicrepo
   502     repo.__class__ = topicrepo