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

« back to all changes in this revision

Viewing changes to subversion/tests/cmdline/prop_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:
2612
2612
                                     'propget', '--strict', 'ordinal',
2613
2613
                                     sbox.ospath('iota') + '@BASE')
2614
2614
 
 
2615
def iprops_list_abspath(sbox):
 
2616
  "test listing iprops via abspath"
 
2617
 
 
2618
  sbox.build()
 
2619
 
 
2620
  sbox.simple_propset('im', 'root', '')
 
2621
  sbox.simple_commit()
 
2622
 
 
2623
  svntest.actions.run_and_verify_svn(None, None, [],
 
2624
                                     'switch', '^/A/D', sbox.ospath(''),
 
2625
                                     '--ignore-ancestry')
 
2626
 
 
2627
  sbox.simple_propset('im', 'GammA', 'gamma')
 
2628
 
 
2629
  expected_output = [
 
2630
    'Inherited properties on \'%s\',\n' % sbox.ospath('')[:-1],
 
2631
    'from \'%s\':\n' % sbox.repo_url,
 
2632
    '  im\n',
 
2633
    '    root\n',
 
2634
    'Properties on \'%s\':\n' % sbox.ospath('gamma'),
 
2635
    '  im\n',
 
2636
    '    GammA\n'
 
2637
  ]
 
2638
  svntest.actions.run_and_verify_svn(None, expected_output, [],
 
2639
                                     'pl', '-R',
 
2640
                                     '--show-inherited-props', '-v',
 
2641
                                     sbox.ospath(''))
 
2642
 
 
2643
  expected_output = [
 
2644
    'Inherited properties on \'%s\',\n' % os.path.abspath(sbox.ospath('')),
 
2645
    'from \'%s\':\n' % sbox.repo_url,
 
2646
    '  im\n',
 
2647
    '    root\n',
 
2648
    'Properties on \'%s\':\n' % os.path.abspath(sbox.ospath('gamma')),
 
2649
    '  im\n',
 
2650
    '    GammA\n'
 
2651
  ]
 
2652
  svntest.actions.run_and_verify_svn(None, expected_output, [],
 
2653
                                     'pl', '-R',
 
2654
                                     '--show-inherited-props', '-v',
 
2655
                                     os.path.abspath(sbox.ospath('')))
 
2656
 
 
2657
def wc_propop_on_url(sbox):
 
2658
  "perform wc specific operations on url"
 
2659
 
 
2660
  sbox.build(create_wc = False)
 
2661
 
 
2662
  svntest.actions.run_and_verify_svn(None, None, '.*E195000:.*path',
 
2663
                                     'pl', '-r', 'PREV',
 
2664
                                     sbox.repo_url)
 
2665
 
 
2666
  svntest.actions.run_and_verify_svn(None, None, '.*E195000:.*path',
 
2667
                                     'pg', 'my:Q', '-r', 'PREV',
 
2668
                                     sbox.repo_url)
 
2669
 
 
2670
 
2615
2671
########################################################################
2616
2672
# Run the tests
2617
2673
 
2657
2713
              inheritable_ignores,
2658
2714
              almost_known_prop_names,
2659
2715
              peg_rev_base_working,
 
2716
              iprops_list_abspath,
 
2717
              wc_propop_on_url,
2660
2718
             ]
2661
2719
 
2662
2720
if __name__ == '__main__':