mq: propagate the return error of pop
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 17 Feb 2007 04:50:03 -0200
changeset 4099 cf5580c16b13
parent 4098 c08b6af023bc
child 4100 c30c922f907a
mq: propagate the return error of pop
hgext/mq.py
--- a/hgext/mq.py	Fri Feb 16 05:53:03 2007 -0200
+++ b/hgext/mq.py	Sat Feb 17 04:50:03 2007 -0200
@@ -1792,9 +1792,10 @@
         localupdate = False
     else:
         q = repo.mq
-    q.pop(repo, patch, force=opts['force'], update=localupdate, all=opts['all'])
+    ret = q.pop(repo, patch, force=opts['force'], update=localupdate,
+                all=opts['all'])
     q.save_dirty()
-    return 0
+    return ret
 
 def rename(ui, repo, patch, name=None, **opts):
     """rename a patch