Repository navigation
Description
Summary
Evergreen tracking issue for libvcs releases from 0.46.x onward, paired with downstream consumer roadmap vcspull#592 and modeled on libtmux#907 and libvt#35. Partial-clone filter models, frozen backend option dataclasses, working-copy position inspection, dirty-checkout preservation/recovery, and shared-lock worktree creation shipped in 0.47.0 (2026-11-28). Git.version() / Git.build_options() parsing, descriptive libvcs.cmd.git _all flag renames and GitSync / HgSync get_remotes() / get_remote() getters, ty type checking across src/, tests/, and docs/, narrowed subprocess/command typing, copytree_reflink, typed file locking, persistent XDG pytest fixture caching, and CodSpeed benchmarks are merged on master (d870619) for 0.48.0, followed by URL-detection parity, subprocess bytes fidelity, src/libvcs/cmd/git.py decomposition, and AsyncExecutor.
Motivation
libvcs shipped executable documentation doctests in 0.45.1 (#540, #544), argument-injection guards across Git.pull(), GitSync, and Svn.checkout() plus UTC progress timestamps in 0.46.0 (#548, #549), and the Python 3.11 floor alongside the 6-PR partial-clone, backend-options, dirty-recovery, and owned-worktree stack in 0.47.0 (#556, #559, #560, #561, #562, #563, #555). On master (d870619), 9 PRs (#508, #525, #491, #503, #501, #505, #502, #567, #507) have landed for 0.48.0, leaving 0 open PRs after closing #504 in favor of shared CommandSpec + AsyncExecutor decomposition (#515, #383). Cutting 0.48.0 unblocks downstream vcspull adoption (libvcs>=0.48.0,<0.49.0 and get_remotes() / get_remote() in vcspull#592).
Proposal
Shipped in 0.45.1–0.46.0
-
pytestplugin collection-ignore abstention (pytest_plugin(fix[pytest_ignore_collect]): abstain with None #544) and real-repository doctest execution acrossdocs/(Docs: run examples as doctests, fix drifted calls, link API objects #540) in0.45.1. - Option-like URL, revision, and ref rejection across
Git.pull(),GitSync.update_repo(), andSvn.checkout(), UTC-aware progress-callback timestamps (Require ruff>=0.16.0 #549), API field documentation (docs: Document Attributes for NamedTuple and dataclass fields #548), andruff>=0.16Markdown code-block formatting (Require ruff>=0.16.0 #549) in0.46.0.
Shipped in 0.47.0 (2026-11-28): partial-clone filters, typed backend options, dirty recovery, and owned worktrees
Published to PyPI (libvcs 0.47.0) and consumed by vcspull 1.69.0 (vcspull#587):
- Require Python 3.11 or newer and test against Python 3.15 py(chore[floor]) Require Python 3.11 #556 (vcspull#583; closes test failure against python 3.14 #509).
- Command, remote, and pipe hardening: retain partial-clone filter annotations in
GitRemoteManager.ls(), surfaceGitSync.obtain()clone failures before submodule/remote setup, keep Git push and fetch URLs separate (closes Git: add push url #297), place Subversion and Mercurial global flags before operands, drain stdout/stderr pipes concurrently, reap child processes on callback failure, and verify the full Git/Hg/SVN CI matrix cmd,sync(fix): Harden command options and pipes #559 (supersedes Issue:mercurial/svnmissing skips git tests #482 and ci(tests) Verify runtime deps #486). - Frozen partial-clone filter models (
BlobNone,BlobLimit,TreeDepth,ObjectType,SparseOid,Auto,Combine) inlibvcs.cmd.git_filterexposing.kind,.to_spec(), andstr(), with uint64, percent-encoding, and nesting validation across string and mapping inputs git(feat[filter]): Add partial-clone filter models #560. - Typed
_filtersupport onGit.clone,Git.fetch, andGitSubmoduleCmd.update(flattening repeated submodule filters within Git's nesting cap and rejecting_filteronGit.pull), plusGitSync.obtain()partial-clone support git(feat[filter]): Support partial-clone filters #561 (closesGitSynccannot make partial clones (git clone --filter) #553; supersedes git(feat): Add partial-clone filters and fix promisor sync #558). - Offline
WorkingCopyPosition(get_position()) acrossGitSync,HgSync, andSvnSync, frozenGitOptions/HgOptions/SvnOptionsbackend models, command-scoped Git-cplacement before subcommands, and recursive submodule depth/filter forwarding sync(feat): Add positions and backend options #562 (closes Git.run / GitSync: tls_verify config passthrough is broken (-c placement, --config vs -c, inverted sslVerify) #533 and GitSync: honor arbitrary clone depth on sync, not just --depth 1 #531). -
SyncTarget,SyncPolicy, andSyncResultcontracts, default dirty-abort and opt-inSyncPolicy(dirty="preserve")with retained stashes, Mercurial shelves, and Subversion working-copy snapshots (list_recoveries(),recover_changes(),release_changes()), plus separate Mercurial[paths]fetch and push URLs sync(feat): Retain dirty checkouts for recovery #563 (supersedes sync/git(fix[update_repo]): Use quiet=True for stash.save #506). - Shared-lock
GitSync.create_worktree()(covering fetch, target resolution, linked checkout creation, submodules, and worktree lock reasons) andGitSync.update_repo(detach=True)sync(feat): Create linked Git worktrees under lock #555 (closes No shared working-copy contract acrossGitSync,HgSync,SvnSync#554).
Merged on master for 0.48.0: Git.version(), get_ remote getters, ty, copytree_reflink, file locking, XDG pytest cache, and CodSpeed
- Narrow
SubprocessCommand,run(),shortcuts.is_vcs(), and covariantGitconfig parameter annotations refactor(typing): Tighten type annotations across internal modules and cmd/git #508 (072cfd0). - Add CodSpeed simulation benchmarks (
tests/benchmarks/) onubuntu-24.04in CI ci(tests[benchmarks]) Add CodSpeed performance benchmarks #525 (52c5aa7). - Structured
Git.version()/Git.build_options()parsing and oldergit initcompatibility in_create_git_remote_repo()git initcompatibility,Git.version()#491 (cb94c18). - Copy-on-write directory copying (
copytree_reflink) inlibvcs._internal.copyandpytestrepository fixtures feat(_internal): Add copytree_reflink for CoW-optimized directory copying #503 (3555330). - Typed,
asyncio-readyFileLockandatomic_init/async_atomic_initinlibvcs._internal.file_lockplus async lock tests feat(_internal): Add typed, asyncio-friendly file locking module #501, tests(_internal): Add async tests for file_lock module #505 (3114eb6, a7bd3f2). - XDG persistent master-copy
pytestfixture cache (RepoFixtureResult,--fixture-durations,--run-performance) feat(pytest_plugin): Add XDG persistent cache and fixture optimization #502 (968636a; closespytest: Test initialization takes 10+ seconds to warmup #444). - Replace
mypywithtyacrosssrc/,tests/, anddocs/on Python 3.11 and 3.15 while retaining RuffANNsignature checks and documenting input-boundary typing inAGENTS.mdmypy -> ty #567 (e8a4b58; closes Move Python type checking from mypy to ty #566). - Rename
_allparameters inlibvcs.cmd.git(all_branches,all_remotes,show_all,include_all_refs,all_urls,include_ignored), renameGitSync.remotes()/GitSync.remote(name)andHgSync.remotes()toget_remotes()/get_remote(name), and addHgSync.get_remote(name)cmd,sync(refactor[API]): Rename_allparameters and addget_prefix to remote getters #507 (d870619).
Planned for 0.49.0+: URL detection, subprocess bytes fidelity, cmd/git.py decomposition, AsyncExecutor, and Agentic DX
- 64-URL detection sweep across
libvcs.url.registry: expand explicit scheme matching and stop misclassifying Mercurial and Subversionhttp(s)URLs as Git URL detection: two gates leave 25 forms undetected and 4 resolving to the wrong VCS #546 (unblocks vcspull#565; relates to Abstract away pip url / url pattern support #272, Remove pip-style URL stuff #312, Parser: Make interoperable withCmd,Project,create_project#385,GitPipURL:to_pip_url()#387, URL Parser: ADA compliance #495). - Fix
run(errors=...)flippingsubprocess.Popeninto text mode under the bytes reader run(errors=...) crashes — non-None errors flips Popen into text mode under the bytes pipeline #542, and add a bytes-preserving command execution path soGit.run()does not corrupt non-UTF-8 diffs viabackslashreplaceGit.run() corrupts non-UTF-8 output — backslashreplace decode is unrecoverable #541. - Align
Git.fetch()andGit.pull()depthparameter types (int | None) withGit.clone()andGitSubmoduleCmd.update()Git.fetch / Git.pull: depth typed as str, inconsistent with Git.clone (int) #534, plus optionalGitSync.update_repo()deepen/unshallow support whenGitOptions.depthchanges on an existing checkout GitSync: deepen/unshallow on update when depth changes (follow-up to #531) #532 andQueryListpathlib.Pathsupport (QueryList: Supportpathlib.Path#427). - Remaining API naming follow-ups (Projects: Stabilize params / arg signature #338, Move types and structures to
_internal/types/{git,hg,svn}.py, e.g.GitRemote#392) and injectable subprocessExecutor/SubprocessCommandoverriding (run: Move libvcs to newSubprocessCommand, document + test overriding #340, Allow injectingExecutorclass to control how commands are made / ran #383). - Agentic DX ([Agentic DX] libvcs: low-to-high lift API decomposition and contract roadmap #515, paired with vcspull#517): split
src/libvcs/cmd/git.pyinto concern-scoped submodules (clone,fetch,worktree,remote, etc.) with sans-I/OCommandSpecbuilders, standardize a typed command result model (cmd,returncode,stdout,stderr,timing), addlibvcs.__init__public-import contract tests, support side-effect-free operation planning, and publish a machine-readable Git/Hg/SVN capability matrix. -
async/awaitexecution viaAsyncExecutorover#515's sharedCommandSpecbuilders and#501'sFileLock, avoiding duplicatedAsync*command/sync trees (supersedes closed feat: Add async/await support for VCS operations #504, see #504 (comment); pairs with vcspull#4 alongside shippedvcspull sync --jobs Nin vcspull#546). - Remaining
Gitsubcommand wrappers (status,diff,merge,ls-files,log,grep,rm,add,mv,branch,reflog, boolean flag ergonomics: git cmd: Improve boolean arguments #347–git command:reflog#359).
References
- Companion downstream roadmap: vcspull#592
- Agentic DX sub-roadmaps: [Agentic DX] libvcs: low-to-high lift API decomposition and contract roadmap #515, vcspull#517
- Shipped
0.47.0/vcspull1.69.0stack consolidation: vcspull#587 0.48.0changelog and migration notes onmaster(d870619):CHANGES,MIGRATIONv0.47.0changelog (12a40cd):CHANGES
Activity
[-]`0.46.x` to `0.47.0` and beyond Roadmap[/-][+]`0.46.x` and beyond Roadmap[/+]