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

login
register
mail settings
Submitter phabricator
Date Jan. 24, 2020, 11:31 p.m.
Message ID <differential-rev-PHID-DREV-upegu7hbtw35dk5fzcer-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44637/
State Superseded
Headers show

Comments

phabricator - Jan. 24, 2020, 11:31 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The responsibility for clearing it is now in
  `cmdutil.clearunfinished()`, so we shouldn't have to unlink it in
  `hg.clean()`.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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)