Show More
@@ -786,9 +786,6 b' class dirstate:' | |||||
786 | parentfiledata=parentfiledata, |
|
786 | parentfiledata=parentfiledata, | |
787 | ) |
|
787 | ) | |
788 |
|
788 | |||
789 | # XXX since this make the dirstate dirty, we should enforce that it is done |
|
|||
790 | # withing an appropriate change-context that scope the change and ensure it |
|
|||
791 | # eventually get written on disk (or rolled back) |
|
|||
792 | def hacky_extension_update_file(self, *args, **kwargs): |
|
789 | def hacky_extension_update_file(self, *args, **kwargs): | |
793 | """NEVER USE THIS, YOU DO NOT NEED IT |
|
790 | """NEVER USE THIS, YOU DO NOT NEED IT | |
794 |
|
791 | |||
@@ -808,6 +805,9 b' class dirstate:' | |||||
808 | however at the time where this is writen, this is too much of a detour |
|
805 | however at the time where this is writen, this is too much of a detour | |
809 | to be considered. |
|
806 | to be considered. | |
810 | """ |
|
807 | """ | |
|
808 | if not (self._changing_level > 0 or self._running_status > 0): | |||
|
809 | msg = "requires a changes context" | |||
|
810 | raise error.ProgrammingError(msg) | |||
811 | self._update_file( |
|
811 | self._update_file( | |
812 | *args, |
|
812 | *args, | |
813 | **kwargs, |
|
813 | **kwargs, |
General Comments 0
You need to be logged in to leave comments.
Login now