mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 21:32:43 +01:00
Fix directory moves and copies in Subversion hosted repositories
Summary: Fixes T6490. Test Plan: ``` $ svn mv dir/ dir2 A dir2 D dir D dir/list.txt $ svn commit -m 'Move dir/ to dir2/' Deleting dir Adding dir2 Committed revision 3. $ svn cp dir2/ dir3 A dir3 $ svn commit -m 'Copy dir2/ to dir3/' Adding dir3 Committed revision 4. ``` Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T6490 Differential Revision: https://secure.phabricator.com/D12173
This commit is contained in:
parent
a4bfed8415
commit
ffe654e5e3
1 changed files with 2 additions and 0 deletions
|
@ -235,7 +235,9 @@ final class DiffusionSubversionServeSSHWorkflow
|
|||
$message_raw = $proto->serializeStruct($struct);
|
||||
break;
|
||||
case 'add-file':
|
||||
case 'add-dir':
|
||||
// ( add-file ( path dir-token file-token [ copy-path copy-rev ] ) )
|
||||
// ( add-dir ( path parent child [ copy-path copy-rev ] ) )
|
||||
if (isset($struct[1]['value'][3]['value'][0]['value'])) {
|
||||
$copy_from = $struct[1]['value'][3]['value'][0]['value'];
|
||||
$copy_from = $this->makeInternalURI($copy_from);
|
||||
|
|
Loading…
Reference in a new issue