mercurial/commands.py
changeset 38151 0dfa27e53c57
parent 38148 476324a304b2
child 38152 63553c2bef7e
--- a/mercurial/commands.py	Thu May 24 23:05:12 2018 -0700
+++ b/mercurial/commands.py	Fri May 25 16:00:37 2018 +0530
@@ -2379,7 +2379,7 @@
 
     # remove state when we complete successfully
     if not opts.get('dry_run'):
-        repo.vfs.unlinkpath('graftstate', ignoremissing=True)
+        graftstate.delete()
 
     return 0