changeset 11439:778377be3662 stable

mq: explicit exit code when patch is already on top
author Gilles Moris <gilles.moris@free.fr>
date Tue, 22 Jun 2010 21:36:09 +0200
parents 88fc876a4833
children 5fe4302cfd72
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: