comparison mercurial/repair.py @ 18310:4499ba5ac35c

localrepo: introduce destroying function
author Idan Kamara <idankk86@gmail.com>
date Sat, 15 Dec 2012 20:08:13 +0200
parents f8a13f061a8a
children 084074648755
comparison
equal deleted inserted replaced
18309:cfeab932cff7 18310:4499ba5ac35c
59 repo = repo.unfiltered() 59 repo = repo.unfiltered()
60 # It simplifies the logic around updating the branchheads cache if we only 60 # It simplifies the logic around updating the branchheads cache if we only
61 # have to consider the effect of the stripped revisions and not revisions 61 # have to consider the effect of the stripped revisions and not revisions
62 # missing because the cache is out-of-date. 62 # missing because the cache is out-of-date.
63 branchmap.updatecache(repo) 63 branchmap.updatecache(repo)
64 repo.destroying()
64 65
65 cl = repo.changelog 66 cl = repo.changelog
66 # TODO handle undo of merge sets 67 # TODO handle undo of merge sets
67 if isinstance(nodelist, str): 68 if isinstance(nodelist, str):
68 nodelist = [nodelist] 69 nodelist = [nodelist]