Skip to content

Commit 6c7a660

Browse files
committed
docs(CHANGES): Add 0.39.x entries for SyncResult and related fixes
why: Document the changes introduced in #514 for the upcoming release. what: - New feature: update_repo() returns SyncResult across Git, Hg, SVN - Bug fixes: rev_list _all parameter, rev-list disambiguation, rebase early return - Tests: Fix hg test destroying session-scoped fixture
1 parent f79ce06 commit 6c7a660

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

CHANGES

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,43 @@ $ uv add libvcs --prerelease allow
2020
_Notes on the upcoming release will go here._
2121
<!-- END PLACEHOLDER - ADD NEW CHANGELOG ENTRIES BELOW THIS LINE -->
2222

23+
### New features
24+
25+
#### sync: Return {class}`~libvcs.sync.base.SyncResult` from `update_repo()` (#514)
26+
27+
`update_repo()` across {class}`~libvcs.sync.git.GitSync`,
28+
{class}`~libvcs.sync.hg.HgSync`, and {class}`~libvcs.sync.svn.SvnSync`
29+
now returns a {class}`~libvcs.sync.base.SyncResult` instead of `None`.
30+
Callers can inspect `result.ok` and `result.errors` to distinguish
31+
successful syncs from failures.
32+
33+
- New dataclasses: {class}`~libvcs.sync.base.SyncResult` and
34+
{class}`~libvcs.sync.base.SyncError`
35+
- Git: 10+ silent `except CommandError: return` paths now record
36+
structured errors with labeled steps (`fetch`, `rebase`, `checkout`,
37+
`stash-save`, etc.)
38+
- Hg and SVN: Wrap `obtain` and `pull`/`update` failures for API
39+
consistency
40+
41+
Companion change: [vcspull#512](https://github.com/vcs-python/vcspull/pull/512)
42+
43+
### Bug Fixes
44+
45+
- cmd: Fix `Git.rev_list()` referencing builtin `all` instead of `_all`
46+
parameter (#514)
47+
48+
- sync: Disambiguate `rev-list` when a local branch name collides with a
49+
filesystem path by using fully-qualified `refs/heads/` refs (#514)
50+
51+
- sync: Return early with error on invalid-upstream rebase instead of
52+
falling through to stash-pop (#514)
53+
54+
### Tests
55+
56+
- sync: Fix `test_update_repo_pull_failure_returns_sync_result` (hg)
57+
destroying the session-scoped `hg_remote_repo` fixture, which broke
58+
downstream tests like `test_hg_url` (#514)
59+
2360
## libvcs 0.38.6 (2026-01-27)
2461

2562
### Bug Fixes

0 commit comments

Comments
 (0)