Fix pool usage in mergeinfo elision code; the current code was leading
commita0d9d9eaf0140084ce5b83a7968c906d7b148ebb
authorglasser <glasser@612f8ebc-c883-4be0-9ee0-a4e9ef946e3a>
Mon, 28 Apr 2008 21:37:25 +0000 (28 21:37 +0000)
committerglasser <glasser@612f8ebc-c883-4be0-9ee0-a4e9ef946e3a>
Mon, 28 Apr 2008 21:37:25 +0000 (28 21:37 +0000)
tree26bed0ca0ca415483e2465109357b5eac0861a6e
parent5a0ea071f85b71cb4dc25670d17abfefb8253b0e
Fix pool usage in mergeinfo elision code; the current code was leading
to assertion failures in reintegrate, among other things.

Specifically, it was assuming in two places that paths passed to
callbacks would live longer than they actually do.

* subversion/libsvn_client/mergeinfo.c
  (elide_mergeinfo_catalog_open_directory): Copy path into directory
   pool.
  (struct elide_mergeinfo_catalog_cb_baton): Add result_pool member.
  (elide_mergeinfo_catalog_cb): Copy elidable path into result_pool.
  (svn_client__elide_mergeinfo_catalog): Initialize result_pool
   member.

git-svn-id: http://svn.collab.net/repos/svn/trunk@30820 612f8ebc-c883-4be0-9ee0-a4e9ef946e3a
subversion/libsvn_client/mergeinfo.c