diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1928,6 +1928,7 @@ def fold(ui, repo, *files, **opts): raise util.Abort(_('qfold requires at least one patch name')) if not q.check_toppatch(repo): raise util.Abort(_('No patches applied')) + q.check_localchanges(repo) message = cmdutil.logmessage(opts) if opts['edit']: