@Issue(2983)
def load_with_parent_dir(sbox):
    "'svnadmin load --parent-dir' reparents mergeinfo"
    sbox.build(empty=True)
    dumpfile_location = os.path.join(os.path.dirname(sys.argv[0]), 'svnadmin_tests_data', 'mergeinfo_included.dump')
    dumpfile = svntest.actions.load_dumpfile(dumpfile_location)
    svntest.actions.run_and_verify_svn(['Committing transaction...\n', 'Committed revision 1.\n'], [], 'mkdir', (sbox.repo_url + '/sample'), '-m', 'Create sample dir')
    load_dumpstream(sbox, dumpfile, '--parent-dir', '/sample')
    svntest.actions.run_and_verify_svn([(sbox.repo_url + '/sample/branch - /sample/trunk:5-7\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample/branch'))
    svntest.actions.run_and_verify_svn([((sbox.repo_url + '/sample/branch1 - ') + '/sample/branch:6-9\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample/branch1'))
    svntest.actions.run_and_verify_svn(['Committing transaction...\n', 'Committed revision 11.\n'], [], 'mkdir', (sbox.repo_url + '/sample-2'), '-m', 'Create sample-2 dir')
    load_dumpstream(sbox, dumpfile, '--parent-dir', 'sample-2')
    svntest.actions.run_and_verify_svn([((sbox.repo_url + '/sample-2/branch - ') + '/sample-2/trunk:15-17\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample-2/branch'))
    svntest.actions.run_and_verify_svn([((sbox.repo_url + '/sample-2/branch1 - ') + '/sample-2/branch:16-19\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample-2/branch1'))
'svnadmin load --parent-dir' reparents mergeinfo
@Issue(2983)
def load_with_parent_dir(sbox):
    
    sbox.build(empty=True)
    dumpfile_location = os.path.join(os.path.dirname(sys.argv[0]), 'svnadmin_tests_data', 'mergeinfo_included.dump')
    dumpfile = svntest.actions.load_dumpfile(dumpfile_location)
    svntest.actions.run_and_verify_svn(['Committing transaction...\n', 'Committed revision 1.\n'], [], 'mkdir', (sbox.repo_url + '/sample'), '-m', 'Create sample dir')
    load_dumpstream(sbox, dumpfile, '--parent-dir', '/sample')
    svntest.actions.run_and_verify_svn([(sbox.repo_url + '/sample/branch - /sample/trunk:5-7\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample/branch'))
    svntest.actions.run_and_verify_svn([((sbox.repo_url + '/sample/branch1 - ') + '/sample/branch:6-9\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample/branch1'))
    svntest.actions.run_and_verify_svn(['Committing transaction...\n', 'Committed revision 11.\n'], [], 'mkdir', (sbox.repo_url + '/sample-2'), '-m', 'Create sample-2 dir')
    load_dumpstream(sbox, dumpfile, '--parent-dir', 'sample-2')
    svntest.actions.run_and_verify_svn([((sbox.repo_url + '/sample-2/branch - ') + '/sample-2/trunk:15-17\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample-2/branch'))
    svntest.actions.run_and_verify_svn([((sbox.repo_url + '/sample-2/branch1 - ') + '/sample-2/branch:16-19\n')], [], 'propget', 'svn:mergeinfo', '-R', (sbox.repo_url + '/sample-2/branch1'))