mercurial/commands.py
changeset 21264 4e932dc5c113
parent 21262 edac098e6a55
child 21265 232de244ab6f
equal deleted inserted replaced
21263:f3e37409ecd3 21264:4e932dc5c113
  4925     if not (all or pats or show or mark or unmark):
  4925     if not (all or pats or show or mark or unmark):
  4926         raise util.Abort(_('no files or directories specified; '
  4926         raise util.Abort(_('no files or directories specified; '
  4927                            'use --all to remerge all files'))
  4927                            'use --all to remerge all files'))
  4928 
  4928 
  4929     ms = mergemod.mergestate(repo)
  4929     ms = mergemod.mergestate(repo)
       
  4930 
       
  4931     if not ms.active():
       
  4932         raise util.Abort(_('resolve command not applicable when not merging'))
       
  4933 
  4930     m = scmutil.match(repo[None], pats, opts)
  4934     m = scmutil.match(repo[None], pats, opts)
  4931     ret = 0
  4935     ret = 0
  4932 
  4936 
  4933     for f in ms:
  4937     for f in ms:
  4934         if not m(f):
  4938         if not m(f):