##// END OF EJS Templates
debugsetparents: wlock the repo before updating the dirstate
Alexis S. L. Carvalho -
r4247:89075f10 default
parent child Browse files
Show More
@@ -764,7 +764,11 b' def debugsetparents(ui, repo, rev1, rev2'
764 764 if not rev2:
765 765 rev2 = hex(nullid)
766 766
767 repo.dirstate.setparents(repo.lookup(rev1), repo.lookup(rev2))
767 wlock = repo.wlock()
768 try:
769 repo.dirstate.setparents(repo.lookup(rev1), repo.lookup(rev2))
770 finally:
771 wlock.release()
768 772
769 773 def debugstate(ui, repo):
770 774 """show the contents of the current dirstate"""
General Comments 0
You need to be logged in to leave comments. Login now