Mercurial > hg
changeset 2699:f8bcaf5696d5
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.
author | Chris Mason <mason@suse.com> |
---|---|
date | Thu, 27 Jul 2006 09:27:45 -0700 |
parents | c1123e83c8e2 |
children | f12d2e5b97fe |
files | hgext/mq.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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()