equal
deleted
inserted
replaced
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 |