# HG changeset patch # User Gilles Moris # Date 1277235369 -7200 # Node ID 778377be36625e7e96c3cdbbefaaa2b74f62d090 # Parent 88fc876a483386d3570568447cd131474d35133d mq: explicit exit code when patch is already on top diff -r 88fc876a4833 -r 778377be3662 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: