Issue #1795 "svnadmin load wrongly computes copyfrom-rev" - fixes for the common case (loading a single dumpstream). Problems remain when loading multiple dumpstreams, but that's a great deal more complicated to fix.
Issue #1795 "svnadmin load wrongly computes copyfrom-rev" - fixes for the
common case (loading a single dumpstream). Problems remain when loading
multiple dumpstreams, but that's a great deal more complicated to fix.

Patch by Ling Li, with review and edits by me.

* subversion/libsvn_repos/load.c
  (struct parse_baton): Add rev_map for mapping from the old revisions
    to the new revisions during repository loading. Add pool for memory
    allocation for rev_map.
  (new_revision_record): Store the current old -> new revision mapping.
  (maybe_add_with_history): Extract new revision from rev_map if the
    old revision is stored there. Otherwise, fall back to our old code.
  (svn_repos_get_fs_build_parser): Initialize pool and allocate rev_map.

jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion