D3656: graft: use cmdstate.delete() to delete the state file

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Fri May 25 17:00:21 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHG0dfa27e53c57: graft: use cmdstate.delete() to delete the state file (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3656?vs=8893&id=8901

REVISION DETAIL
  https://phab.mercurial-scm.org/D3656

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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
 



To: pulkit, #hg-reviewers, martinvonz
Cc: mercurial-devel


More information about the Mercurial-devel mailing list