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

login
register
mail settings
Submitter phabricator
Date Jan. 31, 2020, 6:30 a.m.
Message ID <5d58ee8b273512a83e39714bf6e8c5de@localhost.localdomain>
Download mbox | patch
Permalink /patch/44799/
State Not Applicable
Headers show

Comments

phabricator - Jan. 31, 2020, 6:30 a.m.
martinvonz updated this revision to Diff 19735.

REPOSITORY
  rHG Mercurial

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

BRANCH
  default

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)