(Tweaked by me.)


r23524 | cmpilato | 2007-02-28 16:23:08 -0600 (Wed, 28 Feb 2007)

Fix issue #2663 ("Add a --non-recursive (-N) option to svnlook).

Patch by: William Nagel <bill@stagelogic.com>
          (Tweaked by me.)

* subversion/svnlook/main.c
  (options_table): Add an element for the non-recursive option.
  (cmd_table): Add -N as a valid option for the tree command.
  (svnlook_opt_state): Add a boolean for storing the non-recursive state.
  (print_tree): Add a recurse parameter.  Add a check against
    the recurse and indentation parameters to short-circuit recursion
    into the tree when in --non-recursive mode.
  (do_tree): Add a recurse parameter, passing it to print_tree().
  (subcommand_tree): Pass non_recursive option state to do_tree() (reversed).
  (main): Handle -N option.
* subversion/tests/cmdline/svnlook_tests.py
  (tree_non_recursive): New test case to exercise -N option.
  (test_list): Add reference to new test.