Commits

Augie Fackler committed fda2e1c

Simple defense against using histedit on mq patches.

  • Participants
  • Parent commits e255ee0

Comments (0)

Files changed (1)

File hg_histedit.py

 def histedit(ui, repo, *parent, **opts):
     """hg histedit <parent>
     """
+    # TODO only abort if we try and histedit mq patches, not just
+    # blanket if mq patches are applied somewhere
+    mq = getattr(repo, 'mq', None)
+    if mq and mq.applied:
+        raise util.Abort(_('source has mq patches applied'))
+
     parent = list(parent) + opts.get('rev', [])
     if opts.get('outgoing'):
         if len(parent) > 1: