Skip to content

Commit e71c364

Browse files
committed
Properly highlight the "Bug-ID" column in the "log" command results.
1 parent 9e23a14 commit e71c364

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1313
### Fixed
1414
- Handle cases, when `svn log ... --use-merge-history ...` command timeout-out.
1515
- The `merge` command wasn't doing auto-commit, when alternative working directly was specified.
16+
- The `current revision` highlighting style is now correctly applied to the `Bug-ID` column in the `log` command results.
1617

1718
## [0.8.0] - 2024-12-18
1819
### Added

src/SVNBuddy/Repository/RevisionLog/RevisionPrinter.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,18 @@ public function printRevisions(RevisionLog $revision_log, array $revisions, Outp
272272
$last_bug_color = $last_bug_color === 'yellow' ? 'magenta' : 'yellow';
273273
}
274274

275+
if ( $revision === $this->_currentRevision ) {
276+
$bugs_cell = $this->_outputHelper->formatArray($new_bugs, $bugs_per_row);
277+
}
278+
else {
279+
$bugs_cell = $this->_outputHelper->formatArray($new_bugs, $bugs_per_row, $last_bug_color);
280+
}
281+
275282
$row = array(
276283
$this->_aggregateByBug ? $aggregated_revisions[$revision] . ' cmts' : $revision,
277284
$revision_data['author'],
278285
$this->_dateHelper->getAgoTime($revision_data['date']),
279-
$this->_outputHelper->formatArray($new_bugs, $bugs_per_row, $last_bug_color),
286+
$bugs_cell,
280287
$this->_generateLogMessageColumn($with_full_message || $with_details, $revision_data),
281288
);
282289

0 commit comments

Comments
 (0)