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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Fri Jan 31 01:30:13 EST 2020


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

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)
 



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


More information about the Mercurial-devel mailing list