# HG changeset patch # User Chris Mason # Date 2006-07-27 16:27:45 # 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 --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -530,6 +530,9 @@ class queue: 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()