equal
deleted
inserted
replaced
514 repo = reporef() |
514 repo = reporef() |
515 csetcount = stack.stack(repo, topic=ct).changesetcount |
515 csetcount = stack.stack(repo, topic=ct).changesetcount |
516 empty = csetcount == 0 |
516 empty = csetcount == 0 |
517 if empty and not ctwasempty: |
517 if empty and not ctwasempty: |
518 ui.status('active topic %r is now empty\n' % ct) |
518 ui.status('active topic %r is now empty\n' % ct) |
519 if ('phase' in getattr(tr, 'names', ()) |
519 trnames = getattr(tr, 'names', getattr(tr, '_names', ())) |
|
520 if ('phase' in trnames |
520 or any(n.startswith('push-response') |
521 or any(n.startswith('push-response') |
521 for n in getattr(tr, 'names', ()))): |
522 for n in trnames)): |
522 ui.status(_("(use 'hg topic --clear' to clear it if needed)\n")) |
523 ui.status(_("(use 'hg topic --clear' to clear it if needed)\n")) |
523 hint = _("(see 'hg help topics' for more information)\n") |
524 hint = _("(see 'hg help topics' for more information)\n") |
524 if ctwasempty and not empty: |
525 if ctwasempty and not empty: |
525 if csetcount == 1: |
526 if csetcount == 1: |
526 msg = _('active topic %r grew its first changeset\n%s') |
527 msg = _('active topic %r grew its first changeset\n%s') |