~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/tests/cmdline/move_tests.py

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2014-05-20 22:45:32 UTC
  • mfrom: (0.2.12)
  • Revision ID: package-import@ubuntu.com-20140520224532-4fec3gohdzyy692g
Tags: 1.8.9-1
* New upstream release
* Merge changes from Ubuntu:
  - Add DEB-8 test for Apache functionality
  - debian/rules: Create pot file on build.
  - debian/rules: Ensure the doxygen output directory exists
  - Move svn2cl to subversion-tools' Suggests on Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1396
1396
                                        None, None, None,
1397
1397
                                        wc_dir, '--accept', 'mine-conflict')
1398
1398
 
 
1399
@Issue(4437)
 
1400
def move_del_moved(sbox):
 
1401
  "delete moved node, still a move"
 
1402
  sbox.build()
 
1403
  wc_dir = sbox.wc_dir
 
1404
 
 
1405
  sbox.simple_mkdir('A/NEW')
 
1406
  sbox.simple_move('A/mu', 'A/NEW/mu')
 
1407
  sbox.simple_rm('A/NEW/mu')
 
1408
 
 
1409
  expected_status = svntest.actions.get_virginal_state(wc_dir, 1)
 
1410
  expected_status.tweak('A/mu', status='D ')
 
1411
  expected_status.add({
 
1412
      'A/NEW' : Item(status='A ', wc_rev='-')
 
1413
    })
 
1414
 
 
1415
  # A/mu still reports that it is moved to A/NEW/mu, while it is already
 
1416
  # deleted there.
 
1417
  svntest.actions.run_and_verify_status(wc_dir, expected_status)
 
1418
 
 
1419
def copy_move_commit(sbox):
 
1420
  "copy, move and commit"
 
1421
 
 
1422
  sbox.build()
 
1423
  wc_dir = sbox.wc_dir
 
1424
    #repro
 
1425
    # Prepare
 
1426
    #   - Create folder aaa
 
1427
    #   - Add file bbb.sql
 
1428
    #     create table bbb (Id int not null)
 
1429
    #   - Commit
 
1430
    # Repro Issue 2
 
1431
    #    - Copy folder aaa under same parent folder (i.e. as a sibling). (using Ctrl drag/drop). 
 
1432
    #      Creates Copy of aaa
 
1433
    #    - Rename Copy of aaa to eee
 
1434
    #    - Commit
 
1435
    #      Get error need to update
 
1436
    #    - Update
 
1437
    #    - Commit
 
1438
    #      Get error need to update
 
1439
 
 
1440
  sbox.simple_copy('A/D/G', 'A/D/GG')
 
1441
  sbox.simple_move('A/D/GG', 'A/D/GG-moved')
 
1442
  sbox.simple_commit('A/D/GG-moved')
 
1443
 
1399
1444
 
1400
1445
def move_to_from_external(sbox):
1401
1446
  "move to and from an external"
1433
1478
              move_missing,
1434
1479
              move_many_update_delete,
1435
1480
              move_many_update_add,
 
1481
              move_del_moved,
 
1482
              copy_move_commit,
1436
1483
              move_to_from_external,
1437
1484
            ]
1438
1485