# HG changeset patch # User Gilles Moris # Date 2010-06-22 19:36:09 # Node ID 778377be36625e7e96c3cdbbefaaa2b74f62d090 # Parent 88fc876a483386d3570568447cd131474d35133d mq: explicit exit code when patch is already on top diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1017,7 +1017,7 @@ class queue(object): _("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: