Show More
@@ -630,7 +630,19 b' def dorecord(' | |||
|
630 | 630 | # without normallookup, restoring timestamp |
|
631 | 631 | # may cause partially committed files |
|
632 | 632 | # to be treated as unmodified |
|
633 | dirstate.normallookup(realname) | |
|
633 | ||
|
634 | # XXX-PENDINGCHANGE: We should clarify the context in | |
|
635 | # which this function is called to make sure it | |
|
636 | # already called within a `pendingchange`, However we | |
|
637 | # are taking a shortcut here in order to be able to | |
|
638 | # quickly deprecated the older API. | |
|
639 | with dirstate.parentchange(): | |
|
640 | dirstate.update_file( | |
|
641 | realname, | |
|
642 | p1_tracked=True, | |
|
643 | wc_tracked=True, | |
|
644 | possibly_dirty=True, | |
|
645 | ) | |
|
634 | 646 | |
|
635 | 647 | # copystat=True here and above are a hack to trick any |
|
636 | 648 | # editors that have f open that we haven't modified them. |
General Comments 0
You need to be logged in to leave comments.
Login now