@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+92
src/applications/repository/engine/__tests__/data/CHC.svn.tgz

This is a binary file and will not be displayed.

+92
src/applications/repository/worker/__tests__/PhabricatorChangeParserTestCase.php
··· 406 406 $repository, 407 407 $commits, 408 408 array( 409 + '15' => array( 410 + array( 411 + '/', 412 + null, 413 + null, 414 + DifferentialChangeType::TYPE_CHILD, 415 + DifferentialChangeType::FILE_DIRECTORY, 416 + 0, 417 + 15, 418 + ), 419 + array( 420 + '/file_copy', 421 + null, 422 + null, 423 + DifferentialChangeType::TYPE_MULTICOPY, 424 + DifferentialChangeType::FILE_NORMAL, 425 + 1, 426 + 15, 427 + ), 428 + array( 429 + '/file_copy_x', 430 + '/file_copy', 431 + '12', 432 + DifferentialChangeType::TYPE_MOVE_HERE, 433 + DifferentialChangeType::FILE_NORMAL, 434 + 1, 435 + 15, 436 + ), 437 + array( 438 + '/file_copy_y', 439 + '/file_copy', 440 + '12', 441 + DifferentialChangeType::TYPE_MOVE_HERE, 442 + DifferentialChangeType::FILE_NORMAL, 443 + 1, 444 + 15, 445 + ), 446 + array( 447 + '/file_copy_z', 448 + '/file_copy', 449 + '12', 450 + DifferentialChangeType::TYPE_MOVE_HERE, 451 + DifferentialChangeType::FILE_NORMAL, 452 + 1, 453 + 15, 454 + ), 455 + ), 456 + 457 + // Add a file from a different revision 458 + '14' => array( 459 + array( 460 + '/', 461 + null, 462 + null, 463 + DifferentialChangeType::TYPE_CHILD, 464 + DifferentialChangeType::FILE_DIRECTORY, 465 + 0, 466 + 14, 467 + ), 468 + array( 469 + '/file', 470 + null, 471 + null, 472 + DifferentialChangeType::TYPE_COPY_AWAY, 473 + DifferentialChangeType::FILE_NORMAL, 474 + 0, 475 + 14, 476 + ), 477 + array( 478 + '/file_1', 479 + '/file', 480 + '1', 481 + DifferentialChangeType::TYPE_COPY_HERE, 482 + DifferentialChangeType::FILE_NORMAL, 483 + 1, 484 + 14, 485 + ), 486 + ), 487 + 488 + // Property change on "/" 489 + '13' => array( 490 + array( 491 + '/', 492 + null, 493 + null, 494 + DifferentialChangeType::TYPE_CHANGE, 495 + DifferentialChangeType::FILE_DIRECTORY, 496 + 1, 497 + 13, 498 + ), 499 + ), 500 + 409 501 // Copy a directory, removing and adding files to the copy 410 502 '12' => array( 411 503 array(