Hi Stephen! > In a status buffer, I'd like to delete all the ewoc entries after a > commit, to show that all files are up-to-date. > > To do that, we need some way for the :finished clause of > <back-end>-dvc-log-edit-done to call a function that does the cleanup. > > The cleanup is major-mode specific, not back-end specific; it depends > only on the ewoc. > > So I suggest adding a buffer-local variable dvc-post-commit-action in > the status buffer. The status buffer major mode can set it to an > appropriate action. Then the :finished clause of > <back-end>-dvc-log-edit-done can switch back to the status buffer via > dvc-partner-buffer, and call dvc-post-commit-action (if non-nil). > > Does that seem like the best way?
It would be nice to find a general solution to update the status buffer after a dvc action. This means adding, removing, renaming, committing, etc. Your solution would only provide the functionality for commit. Would it be too slow, when we just refresh the status buffer after a commit? We have the following functionality for tla (at least for diff buffers, not sure about status) After a commit, we show the message "Committed a new revision, buffer info may be out of date, please refresh the buffer". Such a thing could be done, when refreshing would take too long. Stefan. _______________________________________________ Dvc-dev mailing list [email protected] https://mail.gna.org/listinfo/dvc-dev
