mq: abort qfold upon local changes (issue1662)
authorDavid Frey <dpfrey@shaw.ca>
Sat, 16 May 2009 16:20:37 -0700
changeset 8425 73d80d5bf478
parent 8424 c5b3d3e30de7
child 8426 2ff17c4de1da
mq: abort qfold upon local changes (issue1662)
hgext/mq.py
--- a/hgext/mq.py	Sat May 16 11:12:49 2009 +0200
+++ b/hgext/mq.py	Sat May 16 16:20:37 2009 -0700
@@ -1928,6 +1928,7 @@
         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']: