# HG changeset patch # User Benoit Boissinot # Date 2010-03-14 21:17:10 # Node ID 2c2b2d384a479731d88a6f1fa1e7dd166dc4a7a6 # Parent 2a6c34b14ace1658fc0c67fd9f9a1c66932193b5 mq: do not try to delete non-existent files (regression from e8e56d8377ab) diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -1070,7 +1070,11 @@ class queue(object): # created while patching for f in all_files: if f not in repo.dirstate: - util.unlink(repo.wjoin(f)) + try: + util.unlink(repo.wjoin(f)) + except OSError, inst: + if inst.errno != errno.ENOENT: + raise self.ui.warn(_('done\n')) raise