mercurial/hg.py
branchstable
changeset 19332 0af993732f66
parent 18944 a9c443b3b240
child 19371 648d1974b3f3
--- a/mercurial/hg.py	Wed Jun 19 23:05:40 2013 -0700
+++ b/mercurial/hg.py	Fri Jun 28 16:58:31 2013 -0700
@@ -472,6 +472,7 @@
 def clean(repo, node, show_stats=True):
     """forcibly switch the working directory to node, clobbering changes"""
     stats = updaterepo(repo, node, True)
+    util.unlinkpath(repo.join('graftstate'), ignoremissing=True)
     if show_stats:
         _showstats(repo, stats)
     return stats[3] > 0