equal
deleted
inserted
replaced
546 p2_tracked=False, |
546 p2_tracked=False, |
547 merged=False, |
547 merged=False, |
548 clean_p1=False, |
548 clean_p1=False, |
549 clean_p2=False, |
549 clean_p2=False, |
550 possibly_dirty=False, |
550 possibly_dirty=False, |
|
551 parentfiledata=None, |
551 ): |
552 ): |
552 """update the information about a file in the dirstate |
553 """update the information about a file in the dirstate |
553 |
554 |
554 This is to be called when the direstates parent changes to keep track |
555 This is to be called when the direstates parent changes to keep track |
555 of what is the file situation in regards to the working copy and its parent. |
556 of what is the file situation in regards to the working copy and its parent. |
581 self._addpath(filename, from_p2=True, possibly_dirty=possibly_dirty) |
582 self._addpath(filename, from_p2=True, possibly_dirty=possibly_dirty) |
582 self._map.copymap.pop(filename, None) |
583 self._map.copymap.pop(filename, None) |
583 elif possibly_dirty: |
584 elif possibly_dirty: |
584 self._addpath(filename, possibly_dirty=possibly_dirty) |
585 self._addpath(filename, possibly_dirty=possibly_dirty) |
585 elif wc_tracked: |
586 elif wc_tracked: |
586 self.normal(filename) |
587 self.normal(filename, parentfiledata=parentfiledata) |
587 # XXX We need something for file that are dirty after an update |
588 # XXX We need something for file that are dirty after an update |
588 else: |
589 else: |
589 assert False, 'unreachable' |
590 assert False, 'unreachable' |
590 |
|
591 @requires_parents_change |
|
592 def update_parent_file_data(self, f, filedata): |
|
593 """update the information about the content of a file |
|
594 |
|
595 This function should be called within a `dirstate.parentchange` context. |
|
596 """ |
|
597 self.normal(f, parentfiledata=filedata) |
|
598 |
591 |
599 def _addpath( |
592 def _addpath( |
600 self, |
593 self, |
601 f, |
594 f, |
602 mode=0, |
595 mode=0, |