Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ $ uvx --from 'vcspull' --prerelease allow vcspull

_Upcoming changes will be written here._

### Improvements

#### `vcspull fmt` gains duplicate root merging (#479)

- Detects repeated workspace root labels and merges their repositories during
formatting so users keep a single normalized section.
- Adds `--no-merge` for workflows that need to preserve duplicate entries while
still seeing diagnostic warnings.

### Development

#### Snapshot coverage for formatter tests (#479)

- Formatter scenarios now use [Syrupy]-backed JSON and YAML snapshots to guard
against regressions in duplicate workspace-root merging.

[syrupy]: https://github.com/syrupy-project/syrupy

## vcspull v1.42.0 (2025-11-01)

### Breaking changes
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ dev = [
# Testing
"gp-libs",
"pytest",
"syrupy",
"pytest-asyncio",
"pytest-rerunfailures",
"pytest-mock",
Expand Down Expand Up @@ -119,6 +120,7 @@ docs = [
testing = [
"gp-libs",
"pytest",
"syrupy",
"pytest-asyncio",
"pytest-rerunfailures",
"pytest-mock",
Expand Down
7 changes: 6 additions & 1 deletion src/vcspull/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,4 +386,9 @@ def cli(_args: list[str] | None = None) -> None:
dry_run=args.dry_run,
)
elif args.subparser_name == "fmt":
format_config_file(args.config, args.write, args.all)
format_config_file(
args.config,
args.write,
args.all,
merge_roots=args.merge_roots,
)
Loading