[PATCH] mq: explicit exit code when patch is already on top

Gilles Moris gilles.moris at free.fr
Tue Jun 22 15:52:09 CDT 2010


# HG changeset patch
# User Gilles Moris <gilles.moris at free.fr>
# Date 1277235369 -7200
# Node ID 7b6c56f0b00b11e2a688a3b675be4d815b03fef3
# Parent  e2b5f22b7ac8d6a32c0ce69e55f06eb3fa7cff55
mq: explicit exit code when patch is already on top

diff -r e2b5f22b7ac8 -r 7b6c56f0b00b hgext/mq.py
--- a/hgext/mq.py	Tue Jun 22 21:34: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:


More information about the Mercurial-devel mailing list