Skip to content

Commit

Permalink
Display non-executed (results were pulled from the cache) SVN command…
Browse files Browse the repository at this point in the history
… results in the debug mode
  • Loading branch information
aik099 committed Jul 15, 2024
1 parent 18dfb53 commit 5f65866
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Added `reparse` command for reparsing data of a given revision (e.g. when it's log message was changed in repository).
- The SVN command cache effectiveness (how often particular cache key is being used) is now displayed in the verbose output mode.
- Display non-executed SVN command (results pulled from the cache) in the verbose mode.
- Display non-executed SVN command (results pulled from the cache) results in the debug mode.

### Changed
...
Expand Down
4 changes: 4 additions & 0 deletions src/SVNBuddy/Repository/Connector/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ public function run($callback = null)
$this->_io->writeln('<debug>[svn, cached]: ' . $this . '</debug>');
}

if ( $this->_io->isDebug() ) {
$this->_io->writeln($output, OutputInterface::OUTPUT_RAW);
}

if ( is_callable($callback) ) {
call_user_func($callback, Process::OUT, $output);
}
Expand Down

0 comments on commit 5f65866

Please sign in to comment.