comparison mercurial/dirstate.py @ 47693:46c318b9b9a4

dirstate: rename `update_file_reference` to `update_file_p1` This is a bit clearer on the intended usage of the function. (but still not great) Differential Revision: https://phab.mercurial-scm.org/D11135
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 15 Jul 2021 04:34:51 +0200
parents e5fb14a07866
children 1c06ef8f5ea5
comparison
equal deleted inserted replaced
47692:e5fb14a07866 47693:46c318b9b9a4
498 else: 498 else:
499 self._remove(filename) 499 self._remove(filename)
500 return True 500 return True
501 501
502 @requires_parents_change 502 @requires_parents_change
503 def update_file_reference( 503 def update_file_p1(
504 self, 504 self,
505 filename, 505 filename,
506 p1_tracked, 506 p1_tracked,
507 ): 507 ):
508 """Set a file as tracked in the parent (or not) 508 """Set a file as tracked in the parent (or not)