equal
deleted
inserted
replaced
2153 getfiledata[a[0]] = None |
2153 getfiledata[a[0]] = None |
2154 |
2154 |
2155 assert len(getfiledata) == ( |
2155 assert len(getfiledata) == ( |
2156 mresult.len((mergestatemod.ACTION_GET,)) if wantfiledata else 0 |
2156 mresult.len((mergestatemod.ACTION_GET,)) if wantfiledata else 0 |
2157 ) |
2157 ) |
2158 with repo.dirstate.parentchange(repo): |
2158 with repo.dirstate.changing_parents(repo): |
2159 ### Filter Filedata |
2159 ### Filter Filedata |
2160 # |
2160 # |
2161 # We gathered "cache" information for the clean file while |
2161 # We gathered "cache" information for the clean file while |
2162 # updating them: mtime, size and mode. |
2162 # updating them: mtime, size and mode. |
2163 # |
2163 # |
2375 if wctx.isinmemory(): |
2375 if wctx.isinmemory(): |
2376 wctx.setparents(pctx.node(), pother) |
2376 wctx.setparents(pctx.node(), pother) |
2377 # fix up dirstate for copies and renames |
2377 # fix up dirstate for copies and renames |
2378 copies.graftcopies(wctx, ctx, base) |
2378 copies.graftcopies(wctx, ctx, base) |
2379 else: |
2379 else: |
2380 with repo.dirstate.parentchange(repo): |
2380 with repo.dirstate.changing_parents(repo): |
2381 repo.setparents(pctx.node(), pother) |
2381 repo.setparents(pctx.node(), pother) |
2382 repo.dirstate.write(repo.currenttransaction()) |
2382 repo.dirstate.write(repo.currenttransaction()) |
2383 # fix up dirstate for copies and renames |
2383 # fix up dirstate for copies and renames |
2384 copies.graftcopies(wctx, ctx, base) |
2384 copies.graftcopies(wctx, ctx, base) |
2385 return stats |
2385 return stats |