hgext/win32text.py
changeset 49959 c166b212bdee
parent 49284 d44e3c45f0e4
child 49960 7a8bfc05b691
equal deleted inserted replaced
49958:376395868b7b 49959:c166b212bdee
   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(