You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a4d6fd1
Browse filesBrowse the repository at this point in the historyBrowse files
cmd,sync(fix): Harden command options and pipes (#559)
why: Untimed subprocess calls could deadlock on full pipes or leak
children on callback errors, Git remote listing dropped promisor URLs,
and Mercurial and Subversion placed global flags after operands.
what:
- Drain stdout and stderr concurrently without a timeout and reap
children on callback failure in run()
- Preserve filtered fetch URLs in GitRemoteManager.ls() and keep fetch
and push URLs separate in GitSync.set_remote()
- Surface git clone failures in GitSync.obtain()
- Place Hg.run() and Svn.run() global options before targets and fix
--trust-server-cert and --quiet handling
- Install Git, Mercurial, and Subversion in CI with --reruns 0
Copy file name to clipboardExpand all lines: CHANGES
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,36 @@ _Notes on the upcoming release will go here._
27
27
Python 3.10 reached end-of-life in October 2026. libvcs now requires Python
28
28
3.11 or newer.
29
29
30
+
### Fixes
31
+
32
+
#### Drain command output while the process runs (#559)
33
+
34
+
Commands with large stdout or stderr output complete without filling an
35
+
unread pipe. Both streams drain concurrently with or without a timeout,
36
+
and progress callbacks retain command diagnostics for failure reporting.
37
+
Progress callback exceptions and interrupts terminate and reap the direct
38
+
subprocess before propagating.
39
+
40
+
#### Keep partial-clone remotes usable (#559)
41
+
42
+
{meth}`~libvcs.cmd.git.GitRemoteManager.ls` retains fetch URLs annotated with a
43
+
partial-clone filter. A failed {meth}`~libvcs.sync.git.GitSync.obtain` reports
44
+
the clone command and Git's original message before attempting submodule or
45
+
remote setup.
46
+
47
+
#### Keep fetch and push destinations separate (#559)
48
+
49
+
{class}`~libvcs.sync.git.GitSync` configures a remote's push URL via
50
+
{meth}`~libvcs.sync.git.GitSync.set_remote` without replacing its fetch URL or
51
+
requiring `overwrite=True`.
52
+
53
+
#### Place Subversion and Mercurial global options before command targets (#559)
54
+
55
+
{meth}`~libvcs.cmd.svn.Svn.run` and {meth}`~libvcs.cmd.hg.Hg.run` place global
56
+
options before subcommand operands so an explicit `--` separator does not turn
57
+
global flags into filenames, and `Svn.run()` forwards `--trust-server-cert` and
58
+
`--quiet` accurately.
59
+
30
60
## libvcs 0.46.0 (2026-08-30)
31
61
32
62
libvcs 0.46.0 hardens the command wrappers against argument injection: `Git.pull()`, a `GitSync` revision, and `Svn.checkout()` now reject a value a VCS binary would parse as an option in the positions an end-of-options `--` cannot guard, closing paths that could otherwise run a command or truncate a file. It also gives progress-callback timestamps an aware UTC value, documents what every field holds in the API reference, and moves the lint and CI toolchain to current majors.
0 commit comments