mercurial/localrepo.py
changeset 15187 0292f88d3b86
parent 15183 59e8bc22506e
child 15237 7196ed7a1505
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