hgext/evolve.py
branchstable
changeset 1487 ee5391999f2d
parent 1469 fa1a27009c76
child 1488 3dec62fc266e
child 1501 5c962163f77a
equal deleted inserted replaced
1486:e8ebb2441e60 1487:ee5391999f2d
  2061             displayer.show(c)
  2061             displayer.show(c)
  2062         ui.warn(_('explicitly update to one of them\n'))
  2062         ui.warn(_('explicitly update to one of them\n'))
  2063         result = 1
  2063         result = 1
  2064     else:
  2064     else:
  2065         aspchildren = _aspiringchildren(repo, [repo['.'].rev()])
  2065         aspchildren = _aspiringchildren(repo, [repo['.'].rev()])
  2066         if not opts['evolve']:
  2066         if not opts['evolve'] or not aspchildren:
  2067             ui.warn(_('no children\n'))
  2067             ui.warn(_('no children\n'))
  2068             if aspchildren:
  2068             if aspchildren:
  2069                 msg = _('(%i unstable changesets to be evolved here, '
  2069                 msg = _('(%i unstable changesets to be evolved here, '
  2070                         'do you want --evolve?)\n')
  2070                         'do you want --evolve?)\n')
  2071                 ui.warn(msg % len(aspchildren))
  2071                 ui.warn(msg % len(aspchildren))