hgext/rebase.py
changeset 13235 6bf39d88c857
parent 13021 6c800e7ef2f6
child 13609 e035356dbfdc
child 13894 14c0988c314d
--- a/hgext/rebase.py	Wed Jan 05 15:56:03 2011 +0100
+++ b/hgext/rebase.py	Sun Jan 02 19:34:41 2011 +0100
@@ -215,7 +215,7 @@
         clearstatus(repo)
         ui.note(_("rebase completed\n"))
         if os.path.exists(repo.sjoin('undo')):
-            util.unlink(repo.sjoin('undo'))
+            util.unlinkpath(repo.sjoin('undo'))
         if skipped:
             ui.note(_("%d revisions have been skipped\n") % len(skipped))
     finally:
@@ -393,7 +393,7 @@
 def clearstatus(repo):
     'Remove the status files'
     if os.path.exists(repo.join("rebasestate")):
-        util.unlink(repo.join("rebasestate"))
+        util.unlinkpath(repo.join("rebasestate"))
 
 def restorestatus(repo):
     'Restore a previously stored status'