# HG changeset patch # User Chris Mason # Date 1154017665 25200 # Node ID f8bcaf5696d5761e823a821b48fbf7bf1f0ad94a # Parent c1123e83c8e2ae6b698d8c5a502eef94fbb41bbc mq: strip should not blow away local changes This changes the mq strip command to abort if there are any changes in the working directory. diff -r c1123e83c8e2 -r f8bcaf5696d5 hgext/mq.py --- a/hgext/mq.py Thu Jul 27 09:27:42 2006 -0700 +++ b/hgext/mq.py Thu Jul 27 09:27:45 2006 -0700 @@ -530,6 +530,9 @@ revnum = chlog.rev(rev) if update: + (c, a, r, d, u) = repo.changes(None, None) + if c or a or d or r: + raise util.Abort(_("Local changes found")) urev = self.qparents(repo, rev) repo.update(urev, allow=False, force=True, wlock=wlock) repo.dirstate.write()