Skip to content

Commit

Permalink
Don't show non-merged revisions table after a successful auto-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Apr 12, 2024
1 parent 52d04d9 commit f5ca593
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
...

### Fixed
...
- The non-merged revision table was shown after a successful auto-commit, when merge conflict was resolved.

## [0.7.0] - 2024-04-12
### Added
Expand Down
7 changes: 6 additions & 1 deletion src/SVNBuddy/Command/MergeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ( $revisions ) {
$revisions = array_intersect($revisions, $this->_usableRevisions);

if ( !$revisions && !$this->performCommit() ) {
// Auto-commit instead of failing.
if ( !$revisions && $this->performCommit() ) {
return;
}

if ( !$revisions ) {
throw new CommandException(\sprintf(
'Requested revisions are %s',
$this->isReverseMerge() ? 'not yet merged' : 'already merged'
Expand Down

0 comments on commit f5ca593

Please sign in to comment.