@Issue(4760)
def dump_include_copied_directory(sbox):
    'include copied directory with nested nodes'
    sbox.build(create_wc=False)
    svntest.actions.run_and_verify_svn(svntest.verify.AnyOutput, [], 'copy', (sbox.repo_url + '/A/D'), (sbox.repo_url + '/COPY'), '-m', 'Create branch.')
    (_, dump, _) = svntest.actions.run_and_verify_svnadmin(None, [], 'dump', '-q', '--include', '/COPY', sbox.repo_dir)
    sbox2 = sbox.clone_dependent()
    sbox2.build(create_wc=False, empty=True)
    load_and_verify_dumpstream(sbox2, None, [], None, False, dump)
    expected_output = svntest.verify.RegexListOutput(['-+\\n', 'r2\\ .*\n', re.escape('Changed paths:\n'), re.escape('   A /COPY'), re.escape('   A /COPY/G'), re.escape('   A /COPY/G/pi'), re.escape('   A /COPY/G/rho'), re.escape('   A /COPY/G/tau'), re.escape('   A /COPY/H'), re.escape('   A /COPY/H/chi'), re.escape('   A /COPY/H/omega'), re.escape('   A /COPY/H/psi'), re.escape('   A /COPY/gamma'), '-+\\n', 'r1\\ .*\n', '-+\\n'])
    svntest.actions.run_and_verify_svn(expected_output, [], 'log', '-v', '-q', sbox2.repo_url)
include copied directory with nested nodes
@Issue(4760)
def dump_include_copied_directory(sbox):
    
    sbox.build(create_wc=False)
    svntest.actions.run_and_verify_svn(svntest.verify.AnyOutput, [], 'copy', (sbox.repo_url + '/A/D'), (sbox.repo_url + '/COPY'), '-m', 'Create branch.')
    (_, dump, _) = svntest.actions.run_and_verify_svnadmin(None, [], 'dump', '-q', '--include', '/COPY', sbox.repo_dir)
    sbox2 = sbox.clone_dependent()
    sbox2.build(create_wc=False, empty=True)
    load_and_verify_dumpstream(sbox2, None, [], None, False, dump)
    expected_output = svntest.verify.RegexListOutput(['-+\\n', 'r2\\ .*\n', re.escape('Changed paths:\n'), re.escape('   A /COPY'), re.escape('   A /COPY/G'), re.escape('   A /COPY/G/pi'), re.escape('   A /COPY/G/rho'), re.escape('   A /COPY/G/tau'), re.escape('   A /COPY/H'), re.escape('   A /COPY/H/chi'), re.escape('   A /COPY/H/omega'), re.escape('   A /COPY/H/psi'), re.escape('   A /COPY/gamma'), '-+\\n', 'r1\\ .*\n', '-+\\n'])
    svntest.actions.run_and_verify_svn(expected_output, [], 'log', '-v', '-q', sbox2.repo_url)