changeset 10873:bbf496db0766

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Wed, 07 Apr 2010 14:44:51 -0500
parents 3f30190781a3 (current diff) 9606edb8777e (diff)
children 29030b7f664a
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Tue Apr 06 08:54:18 2010 -0500
+++ b/hgext/mq.py	Wed Apr 07 14:44:51 2010 -0500
@@ -1170,12 +1170,10 @@
                     raise util.Abort(_("deletions found between repo revs"))
                 for f in a:
                     try:
-                        os.unlink(repo.wjoin(f))
+                        util.unlink(repo.wjoin(f))
                     except OSError, e:
                         if e.errno != errno.ENOENT:
                             raise
-                    try: os.removedirs(os.path.dirname(repo.wjoin(f)))
-                    except: pass
                     repo.dirstate.forget(f)
                 for f in m + r:
                     fctx = ctx[f]