mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 16:00:59 +01:00
Add even more Subversion unit tests
Summary: Ref T4327. Adds additional tests: - Property changes on the root directory (which has special handling). - Copying a file from a previous revision (this is `svn cp svn://server.com/root/some_file@123 some_file`). - "Multicopying" a file: this is where a file is copied to several places and moved in the same commit. Test Plan: Ran unit tests. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T4327 Differential Revision: https://secure.phabricator.com/D8018
This commit is contained in:
parent
9dde415884
commit
6c860bf850
2 changed files with 92 additions and 0 deletions
Binary file not shown.
|
@ -406,6 +406,98 @@ final class PhabricatorChangeParserTestCase
|
|||
$repository,
|
||||
$commits,
|
||||
array(
|
||||
'15' => array(
|
||||
array(
|
||||
'/',
|
||||
null,
|
||||
null,
|
||||
DifferentialChangeType::TYPE_CHILD,
|
||||
DifferentialChangeType::FILE_DIRECTORY,
|
||||
0,
|
||||
15,
|
||||
),
|
||||
array(
|
||||
'/file_copy',
|
||||
null,
|
||||
null,
|
||||
DifferentialChangeType::TYPE_MULTICOPY,
|
||||
DifferentialChangeType::FILE_NORMAL,
|
||||
1,
|
||||
15,
|
||||
),
|
||||
array(
|
||||
'/file_copy_x',
|
||||
'/file_copy',
|
||||
'12',
|
||||
DifferentialChangeType::TYPE_MOVE_HERE,
|
||||
DifferentialChangeType::FILE_NORMAL,
|
||||
1,
|
||||
15,
|
||||
),
|
||||
array(
|
||||
'/file_copy_y',
|
||||
'/file_copy',
|
||||
'12',
|
||||
DifferentialChangeType::TYPE_MOVE_HERE,
|
||||
DifferentialChangeType::FILE_NORMAL,
|
||||
1,
|
||||
15,
|
||||
),
|
||||
array(
|
||||
'/file_copy_z',
|
||||
'/file_copy',
|
||||
'12',
|
||||
DifferentialChangeType::TYPE_MOVE_HERE,
|
||||
DifferentialChangeType::FILE_NORMAL,
|
||||
1,
|
||||
15,
|
||||
),
|
||||
),
|
||||
|
||||
// Add a file from a different revision
|
||||
'14' => array(
|
||||
array(
|
||||
'/',
|
||||
null,
|
||||
null,
|
||||
DifferentialChangeType::TYPE_CHILD,
|
||||
DifferentialChangeType::FILE_DIRECTORY,
|
||||
0,
|
||||
14,
|
||||
),
|
||||
array(
|
||||
'/file',
|
||||
null,
|
||||
null,
|
||||
DifferentialChangeType::TYPE_COPY_AWAY,
|
||||
DifferentialChangeType::FILE_NORMAL,
|
||||
0,
|
||||
14,
|
||||
),
|
||||
array(
|
||||
'/file_1',
|
||||
'/file',
|
||||
'1',
|
||||
DifferentialChangeType::TYPE_COPY_HERE,
|
||||
DifferentialChangeType::FILE_NORMAL,
|
||||
1,
|
||||
14,
|
||||
),
|
||||
),
|
||||
|
||||
// Property change on "/"
|
||||
'13' => array(
|
||||
array(
|
||||
'/',
|
||||
null,
|
||||
null,
|
||||
DifferentialChangeType::TYPE_CHANGE,
|
||||
DifferentialChangeType::FILE_DIRECTORY,
|
||||
1,
|
||||
13,
|
||||
),
|
||||
),
|
||||
|
||||
// Copy a directory, removing and adding files to the copy
|
||||
'12' => array(
|
||||
array(
|
||||
|
|
Loading…
Reference in a new issue