Skip to content

Commit 2d94fae

Browse files
committed
Fixed --aggregate option behavior, when all revisions had associated bugs
1 parent 355c429 commit 2d94fae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010
...
1111

1212
### Fixed
13-
...
13+
- The `--aggregate` option of the `merge` and `commit` commands wasn't working (triggered an exception) when revision without a bug wasn't present in the list of revisions.
1414

1515
## [0.6.1] - 2022-12-06
1616
### Changed

src/SVNBuddy/Repository/RevisionLog/RevisionPrinter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ protected function aggregateRevisionsByBug(array $revisions, RevisionLog $revisi
365365
}
366366
}
367367

368+
if ( !$bugs_revisions['unknown'] ) {
369+
unset($bugs_revisions['unknown']);
370+
}
371+
368372
$bugs_revisions = \array_reverse($bugs_revisions, true);
369373

370374
$ret = array();

0 commit comments

Comments
 (0)