Wrap more deprecated wc.Adm and Context methods#245
Merged
Conversation
Add wc.Adm.entry/entries_read/probe_try/get_prop_diffs/transmit_text_deltas/ transmit_prop_deltas/crawl_revisions and a wc.Entry class, plus wc.Context.get_switch_editor and queue_committed. The transmit_* methods accept the ra commit editor's FileEditor by bridging it across the extension boundary via a PyCapsule.
Add wc.Context.acquire_write_lock / release_write_lock / install_text_base so the working-tree commit-finalization path can install pristines and bump node base revisions. Patch the subversion dependency to the local subversion-rs checkout that provides these.
PyEditor.__exit__ always called close(), so a failed commit left the editor unclosed and the RA session permanently busy. Abort when an exception is propagating, and run the on_close callback (which clears the session busy flag) even if close/abort itself fails.
When wc.Context.get_switch_editor's editor and a do_switch reporter are passed back through do_switch/crawl_revisions, recover the underlying WrapEditor and raw SVN reporter via PyCapsules instead of bouncing every callback through Python, which recursively re-entered the interpreter and corrupted the edit.
This reverts commit ad2f0c7.
The file-rev callback dropped the handler's returned window callback, so annotate never saw the per-revision deltas. Wire it into a TxDeltaHandler, and treat a negative start revision as 'from the beginning' (revision 0) so the full file history is reported.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add wc.Adm.entry/entries_read/probe_try/get_prop_diffs/transmit_text_deltas/ transmit_prop_deltas/crawl_revisions and a wc.Entry class, plus wc.Context.get_switch_editor and queue_committed. The transmit_* methods accept the ra commit editor's FileEditor by bridging it across the extension boundary via a PyCapsule.