hgext/mq.py
changeset 50928 d718eddf01d9
parent 50900 a99e62dae4c8
child 50929 18c8c18993f0
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
  4184 
  4184 
  4185         repo._phasedefaults.append(mqphasedefaults)
  4185         repo._phasedefaults.append(mqphasedefaults)
  4186 
  4186 
  4187 
  4187 
  4188 def mqimport(orig, ui, repo, *args, **kwargs):
  4188 def mqimport(orig, ui, repo, *args, **kwargs):
  4189     if util.safehasattr(repo, 'abortifwdirpatched') and not kwargs.get(
  4189     if hasattr(repo, 'abortifwdirpatched') and not kwargs.get(
  4190         'no_commit', False
  4190         'no_commit', False
  4191     ):
  4191     ):
  4192         repo.abortifwdirpatched(
  4192         repo.abortifwdirpatched(
  4193             _(b'cannot import over an applied patch'), kwargs.get('force')
  4193             _(b'cannot import over an applied patch'), kwargs.get('force')
  4194         )
  4194         )