Skip to content

Wrap more deprecated wc.Adm and Context methods#245

Merged
jelmer merged 13 commits into
mainfrom
wrap-more-adm
Jun 24, 2026
Merged

Wrap more deprecated wc.Adm and Context methods#245
jelmer merged 13 commits into
mainfrom
wrap-more-adm

Conversation

@jelmer

@jelmer jelmer commented Jun 22, 2026

Copy link
Copy Markdown
Owner

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.

@jelmer jelmer enabled auto-merge June 22, 2026 12:11
jelmer added 12 commits June 23, 2026 23:56
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.
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.
@jelmer jelmer merged commit 9869055 into main Jun 24, 2026
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant