Skip to content

Commit f006641

Browse files
author
Alexander Obuhovich
committed
Allow merging of sub-folder inside a working copy
1 parent 670d53e commit f006641

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/SVNBuddy/Command/MergeCommand.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
158158

159159
$wc_path = $this->getWorkingCopyPath();
160160

161-
if ( $this->repositoryConnector->isWorkingCopy(dirname($wc_path)) ) {
162-
throw new \InvalidArgumentException('The "' . $wc_path . '" isn\'t working copy topmost folder.');
163-
}
164-
165161
$this->ensureLatestWorkingCopy($wc_path);
166162

167163
$source_url = $this->getSourceUrl($wc_path);
@@ -199,7 +195,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
199195
}
200196
elseif ( $this->_unmergedRevisions ) {
201197
$this->runOtherCommand('log', array(
202-
'path' => $source_url,
198+
'path' => $this->repositoryConnector->getProjectUrl($source_url),
203199
'--revisions' => implode(',', $this->_unmergedRevisions),
204200
'--details' => $this->io->getOption('details'),
205201
'--merge-oracle' => true,

0 commit comments

Comments
 (0)