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

login
register
mail settings
Submitter phabricator
Date May 25, 2018, 9 p.m.
Message ID <08f738fa3a470bde9db5bc1fc5a6c891@localhost.localdomain>
Download mbox | patch
Permalink /patch/31870/
State Not Applicable
Headers show

Comments

phabricator - May 25, 2018, 9 p.m.
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




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

Patch

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