mq: explicit exit code when patch is already on top stable
authorGilles Moris <gilles.moris@free.fr>
Tue, 22 Jun 2010 21:36:09 +0200
branchstable
changeset 11439 778377be3662
parent 11438 88fc876a4833
child 11440 5fe4302cfd72
mq: explicit exit code when patch is already on top
hgext/mq.py
--- a/hgext/mq.py	Tue Jun 22 09:49:51 2010 +0200
+++ b/hgext/mq.py	Tue Jun 22 21:36:09 2010 +0200
@@ -1017,7 +1017,7 @@
                             _("cannot push to a previous patch: %s") % patch)
                     self.ui.warn(
                         _('qpush: %s is already at the top\n') % patch)
-                    return
+                    return 0
                 pushable, reason = self.pushable(patch)
                 if not pushable:
                     if reason: