def dump_exclude(sbox):
    'svnadmin dump with excluded paths'
    sbox.build(create_wc=False)
    (_, dump, _) = svntest.actions.run_and_verify_svnadmin(None, [], 'dump', '-q', '--exclude', '/A/D/H', '--exclude', '/A/B/E', 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', 'r1\\ .*\n', re.escape('Changed paths:\n'), re.escape('   A /A\n'), re.escape('   A /A/B\n'), re.escape('   A /A/B/F\n'), re.escape('   A /A/B/lambda\n'), re.escape('   A /A/C\n'), re.escape('   A /A/D\n'), re.escape('   A /A/D/G\n'), re.escape('   A /A/D/G/pi\n'), re.escape('   A /A/D/G/rho\n'), re.escape('   A /A/D/G/tau\n'), re.escape('   A /A/D/gamma\n'), re.escape('   A /A/mu\n'), re.escape('   A /iota\n'), '-+\\n'])
    svntest.actions.run_and_verify_svn(expected_output, [], 'log', '-v', '-q', sbox2.repo_url)
svnadmin dump with excluded paths
def dump_exclude(sbox):
    
    sbox.build(create_wc=False)
    (_, dump, _) = svntest.actions.run_and_verify_svnadmin(None, [], 'dump', '-q', '--exclude', '/A/D/H', '--exclude', '/A/B/E', 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', 'r1\\ .*\n', re.escape('Changed paths:\n'), re.escape('   A /A\n'), re.escape('   A /A/B\n'), re.escape('   A /A/B/F\n'), re.escape('   A /A/B/lambda\n'), re.escape('   A /A/C\n'), re.escape('   A /A/D\n'), re.escape('   A /A/D/G\n'), re.escape('   A /A/D/G/pi\n'), re.escape('   A /A/D/G/rho\n'), re.escape('   A /A/D/G/tau\n'), re.escape('   A /A/D/gamma\n'), re.escape('   A /A/mu\n'), re.escape('   A /iota\n'), '-+\\n'])
    svntest.actions.run_and_verify_svn(expected_output, [], 'log', '-v', '-q', sbox2.repo_url)