mercurial/hg.py
changeset 31311 f59b6cf663a9
parent 31218 4cc3797aa59c
child 31322 4282feb79432
equal deleted inserted replaced
31310:431d4f73249e 31311:f59b6cf663a9
   714 _update = update
   714 _update = update
   715 
   715 
   716 def clean(repo, node, show_stats=True, quietempty=False):
   716 def clean(repo, node, show_stats=True, quietempty=False):
   717     """forcibly switch the working directory to node, clobbering changes"""
   717     """forcibly switch the working directory to node, clobbering changes"""
   718     stats = updaterepo(repo, node, True)
   718     stats = updaterepo(repo, node, True)
   719     util.unlinkpath(repo.join('graftstate'), ignoremissing=True)
   719     repo.vfs.unlinkpath('graftstate', ignoremissing=True)
   720     if show_stats:
   720     if show_stats:
   721         _showstats(repo, stats, quietempty)
   721         _showstats(repo, stats, quietempty)
   722     return stats[3] > 0
   722     return stats[3] > 0
   723 
   723 
   724 # naming conflict in updatetotally()
   724 # naming conflict in updatetotally()