comparison mercurial/localrepo.py @ 15187:0292f88d3b86

rollback: use a hint for force
author Matt Mackall <mpm@selenic.com>
date Sat, 01 Oct 2011 16:18:51 -0500
parents 59e8bc22506e
children 7196ed7a1505
comparison
equal deleted inserted replaced
15183:59e8bc22506e 15187:0292f88d3b86
789 desc = None 789 desc = None
790 790
791 if not force and self['.'] != self['tip'] and desc == 'commit': 791 if not force and self['.'] != self['tip'] and desc == 'commit':
792 raise util.Abort( 792 raise util.Abort(
793 _('rollback of last commit while not checked out ' 793 _('rollback of last commit while not checked out '
794 'may lose data (use -f to force)')) 794 'may lose data'), hint=_('use -f to force'))
795 795
796 ui.status(msg) 796 ui.status(msg)
797 if dryrun: 797 if dryrun:
798 return 0 798 return 0
799 799