equal
deleted
inserted
replaced
214 |
214 |
215 |
215 |
216 def wrap_revert(orig, repo, ctx, names, uipathfn, actions, *args, **kwargs): |
216 def wrap_revert(orig, repo, ctx, names, uipathfn, actions, *args, **kwargs): |
217 # reset dirstate cache for file we touch |
217 # reset dirstate cache for file we touch |
218 ds = repo.dirstate |
218 ds = repo.dirstate |
219 with ds.parentchange(): |
219 with ds.parentchange(repo): |
220 for filename in actions[b'revert'][0]: |
220 for filename in actions[b'revert'][0]: |
221 entry = ds.get_entry(filename) |
221 entry = ds.get_entry(filename) |
222 if entry is not None: |
222 if entry is not None: |
223 if entry.p1_tracked: |
223 if entry.p1_tracked: |
224 ds.update_file( |
224 ds.update_file( |