##// END OF EJS Templates
index: use `index.has_node` in `repo._rollback`...
marmoute -
r43937:7f489b9a default
parent child Browse files
Show More
@@ -2351,7 +2351,8 b' class localrepository(object):'
2351 self.svfs.rename(b'undo.phaseroots', b'phaseroots', checkambig=True)
2351 self.svfs.rename(b'undo.phaseroots', b'phaseroots', checkambig=True)
2352 self.invalidate()
2352 self.invalidate()
2353
2353
2354 parentgone = any(p not in self.changelog.nodemap for p in parents)
2354 has_node = self.changelog.index.has_node
2355 parentgone = any(not has_node(p) for p in parents)
2355 if parentgone:
2356 if parentgone:
2356 # prevent dirstateguard from overwriting already restored one
2357 # prevent dirstateguard from overwriting already restored one
2357 dsguard.close()
2358 dsguard.close()
General Comments 0
You need to be logged in to leave comments. Login now