localrepo: switch to mergestate.clean()

See the previous patches for why we're doing this.
This commit is contained in:
Siddharth Agarwal 2015-11-17 17:04:32 -08:00
parent bb9f482112
commit 7e0e958b67

View File

@ -1168,8 +1168,7 @@ class localrepository(object):
else:
ui.status(_('working directory now based on '
'revision %d\n') % parents)
ms = mergemod.mergestate(self)
ms.reset(self['.'].node())
mergemod.mergestate.clean(self, self['.'].node())
# TODO: if we know which new heads may result from this rollback, pass
# them to destroy(), which will prevent the branchhead cache from being