diff hgext/mq.py @ 9590:07a62819b309

mq: fix traceback for qpush inexistant-patch with no patch applied
author Benoit Allard <benoit@aeteurope.nl>
date Fri, 16 Oct 2009 00:09:18 +0200
parents a9d1e7c8160e
children f3404b7f37ca
line wrap: on
line diff
--- a/hgext/mq.py	Wed Oct 14 20:55:39 2009 +0300
+++ b/hgext/mq.py	Fri Oct 16 00:09:18 2009 +0200
@@ -977,6 +977,8 @@
                 self.ui.warn(_('done\n'))
                 raise
 
+            if not self.applied:
+                return ret[0]
             top = self.applied[-1].name
             if ret[0] and ret[0] > 1:
                 msg = _("errors during apply, please fix and refresh %s\n")