Skip to content

Commit 9f6c18e

Browse files
committed
docs(CHANGES): Note sync dirty policy, recovery, and status targets
1 parent d070028 commit 9f6c18e

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

‎CHANGES‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,24 @@ _Notes on upcoming releases will be added here_
4545
Python 3.10 reached end-of-life in October 2026. vcspull now requires Python
4646
3.11 or newer.
4747

48+
#### Sync aborts on dirty checkouts by default and returns SyncExecution (#590)
49+
50+
{ref}`cli-sync` now defaults to `dirty: abort` and refuses updates when local
51+
changes are present unless `sync.dirty` is set to `preserve` or `discard` (with
52+
`--yes` passed on each discard invocation). Bounded CLI synchronization requires
53+
POSIX process groups. In Python, {func}`vcspull.cli.sync.update_repo` now
54+
returns {class}`~vcspull.cli.sync.SyncExecution` instead of `BaseSync`.
55+
56+
```python
57+
# Before
58+
project = update_repo(repo_dict)
59+
60+
# After
61+
execution = update_repo(repo_dict, yes=False)
62+
project = execution.project
63+
result = execution.result
64+
```
65+
4866
#### Configuration loading validates repository entries strictly (#589)
4967

5068
Configuration loading now rejects unknown repository, target, policy, or backend
@@ -80,6 +98,36 @@ Run {ref}`cli-migrate` with `--write` to rewrite legacy `options` and
8098
8199
### What's new
82100
101+
#### Preserve Mercurial fetch and push remotes during sync (#590)
102+
103+
Mercurial remotes reach native sync with separate fetch and push URLs, both
104+
through direct calls and the CLI worker. `working_copy.remote` selects the
105+
pull source without changing the configured push destination.
106+
107+
#### Sync stops owned processes on timeout and interruption (#590)
108+
109+
CLI sync uses a separate process for each repository and streams progress
110+
without changing the parent's output streams or leaking `PYTHONPATH` into native
111+
VCS descendants. Timeout and Ctrl-C stop the worker and native process group
112+
before further work. Interrupted results retain unknown state and report
113+
discovered recovery tokens in human and machine output.
114+
115+
#### Apply main checkout policy and retain recovery details (#590)
116+
117+
Sync forwards the configured selector kind, remote, and drift/dirty policy
118+
to libvcs. Git preservation retains a recovery token after restoration or
119+
conflict. Human output shows retained material; JSON and NDJSON preserve its
120+
exact identity and operation outcomes. Configured discard requires `--yes`
121+
before repository access. See {ref}`cli-sync` and {ref}`migration`.
122+
123+
#### Report resolved checkout targets in status (#590)
124+
125+
Status reports the native position, resolved target, configured policy, and
126+
whether their revisions differ. Aliases at one revision match; unavailable
127+
metadata remains unknown with an error. Status never fetches, including Git's
128+
implicit acquisition of missing partial-clone objects. Backend mismatches fail
129+
inspection instead of reporting a different VCS as healthy. See {ref}`cli-status`.
130+
83131
#### Configure partial clones and typed backend options (#589)
84132

85133
`git`, `hg`, and `svn` blocks match their libvcs options classes. Loading

0 commit comments

Comments
 (0)