hgext/histedit.py
changeset 27169 dd214130a4f6
parent 27154 3bc7919fb215
child 27170 4cff4c38c5cc
equal deleted inserted replaced
27168:8a829fc84bb3 27169:dd214130a4f6
   831         _histedit(ui, repo, state, *freeargs, **opts)
   831         _histedit(ui, repo, state, *freeargs, **opts)
   832     finally:
   832     finally:
   833         release(state.lock, state.wlock)
   833         release(state.lock, state.wlock)
   834 
   834 
   835 def _histedit(ui, repo, state, *freeargs, **opts):
   835 def _histedit(ui, repo, state, *freeargs, **opts):
   836     # TODO only abort if we try and histedit mq patches, not just
   836     # TODO only abort if we try to histedit mq patches, not just
   837     # blanket if mq patches are applied somewhere
   837     # blanket if mq patches are applied somewhere
   838     mq = getattr(repo, 'mq', None)
   838     mq = getattr(repo, 'mq', None)
   839     if mq and mq.applied:
   839     if mq and mq.applied:
   840         raise error.Abort(_('source has mq patches applied'))
   840         raise error.Abort(_('source has mq patches applied'))
   841 
   841