Backport the fix and test for issue #2684 (portions of r22825, r22824,
and the write_authz_file bits of r20021/r22019/r22022) from trunk to
the 1.4.x-issue-2684 backport branch: When checking authz validity,
don't report a circular dependency if a group is used by more than one
other group.  (That is, we're checking to make sure there are no
cycles, not checking for a tree structure; DAGs are okay).

* subversion/libsvn_repos/authz.c
  (authz_group_walk): Forget that we've encountered a group once we've
   walked it, so that we can encounter it again without error.

* subversion/tests/cmdline/authz_tests.py
  (write_authz_file): Writes an authz file appropriate for the RA
   method being tested.
  (authz_validate): New test.
  (test_list): Add authz_validate.


git-svn-id: https://svn.apache.org/repos/asf/subversion/branches/1.4.x-issue-2684@862939 13f79535-47bb-0310-9956-ffa450edef68
2 files changed