equal
deleted
inserted
replaced
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() |