mercurial/hg.py
changeset 44277 3245cdea2c63
parent 44270 f546d2170b0f
child 44397 0f60687b2324
--- a/mercurial/hg.py	Tue Feb 04 10:16:30 2020 -0800
+++ b/mercurial/hg.py	Fri Jan 24 14:11:43 2020 -0800
@@ -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)