Show More
@@ -759,13 +759,12 def writeworkingdir(repo, ctx, filedata, | |||
|
759 | 759 | for path, data in pycompat.iteritems(filedata): |
|
760 | 760 | fctx = ctx[path] |
|
761 | 761 | fctx.write(data, fctx.flags()) |
|
762 | if repo.dirstate[path] == b'n': | |
|
763 | repo.dirstate.set_possibly_dirty(path) | |
|
764 | 762 | |
|
765 | 763 | oldp1 = repo.dirstate.p1() |
|
766 | 764 | newp1 = replacements.get(oldp1, oldp1) |
|
767 | 765 | if newp1 != oldp1: |
|
768 | repo.setparents(newp1, nullid) | |
|
766 | with repo.dirstate.parentchange(): | |
|
767 | scmutil.movedirstate(repo, repo[newp1]) | |
|
769 | 768 | |
|
770 | 769 | |
|
771 | 770 | def replacerev(ui, repo, ctx, filedata, replacements): |
General Comments 0
You need to be logged in to leave comments.
Login now