Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9589:fdf0c375cdbf | 9590:07a62819b309 |
---|---|
975 if f in all_files: | 975 if f in all_files: |
976 util.unlink(repo.wjoin(f)) | 976 util.unlink(repo.wjoin(f)) |
977 self.ui.warn(_('done\n')) | 977 self.ui.warn(_('done\n')) |
978 raise | 978 raise |
979 | 979 |
980 if not self.applied: | |
981 return ret[0] | |
980 top = self.applied[-1].name | 982 top = self.applied[-1].name |
981 if ret[0] and ret[0] > 1: | 983 if ret[0] and ret[0] > 1: |
982 msg = _("errors during apply, please fix and refresh %s\n") | 984 msg = _("errors during apply, please fix and refresh %s\n") |
983 self.ui.write(msg % top) | 985 self.ui.write(msg % top) |
984 else: | 986 else: |