Patchwork D7992: clean: delete obsolete unlinking of .hg/graftstate

login
register
mail settings
Submitter phabricator
Date Feb. 6, 2020, 10:22 p.m.
Message ID <e3c1f83dde5ea2a9e5ae7e2d7120448b@localhost.localdomain>
Download mbox | patch
Permalink /patch/45011/
State Not Applicable
Headers show

Comments

phabricator - Feb. 6, 2020, 10:22 p.m.
Closed by commit rHG3245cdea2c63: clean: delete obsolete unlinking of .hg/graftstate (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7992?vs=19735&id=19977

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7992/new/

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

AFFECTED FILES
  mercurial/hg.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -1041,7 +1041,6 @@ 
     """forcibly switch the working directory to node, clobbering changes"""
     stats = updaterepo(repo, node, True)
     assert stats.unresolvedcount == 0
-    repo.vfs.unlinkpath(b'graftstate', ignoremissing=True)
     if show_stats:
         _showstats(repo, stats, quietempty)