##// END OF EJS Templates
amend: adjust the dirstate within a `parentchange` context...
marmoute -
r48408:3c0efa0e default
parent child Browse files
Show More
@@ -2967,6 +2967,7 b' def amend(ui, repo, old, extra, pats, op'
2967 newid = repo.commitctx(new)
2967 newid = repo.commitctx(new)
2968 ms.reset()
2968 ms.reset()
2969
2969
2970 with repo.dirstate.parentchange():
2970 # Reroute the working copy parent to the new changeset
2971 # Reroute the working copy parent to the new changeset
2971 repo.setparents(newid, repo.nullid)
2972 repo.setparents(newid, repo.nullid)
2972
2973
General Comments 0
You need to be logged in to leave comments. Login now