changeset 4099:cf5580c16b13

mq: propagate the return error of pop
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 17 Feb 2007 04:50:03 -0200
parents c08b6af023bc
children c30c922f907a
files hgext/mq.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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