[ 
https://issues.apache.org/jira/browse/SVN-4780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Foad updated SVN-4780:
-----------------------------
    Description: 
"svnadmin load" and "svnrdump load" should share more of the dumpstream loader 
code.

"svnadmin load" uses svn_repos_get_fs_build_parser6(), whose input is the 
dumpstream parser API, and whose output makes commits directly to a given 
repository.

The dumpstream loader in 'svnrdump' contains an editor driver, whose input is 
the dumpstream parser API, and whose output makes commits through a 
delta-editor over the RA layer.

Of course we already have

Factor out the generic parts of svn_rdump__load_dumpstream() for re-use:
 * dumpstream parser API to generic delta-editor API

Use callbacks or separate layers for all caller-specific processing.

Re-implement svn_repos_get_fs_build_parser6() as:
 * dumpstream parser API to generic delta-editor API (new, shared) +
 * generic commit code (svn_repos_get_commit_editor5) (already available)

  was:
The dumpstream loader in 'svnrdump' contains an editor driver, whose input is 
the dumpstream parser API, and whose output makes commits through a 
delta-editor over the RA layer.

Factor out the generic parts of this for re-use:
 * dumpstream parser API to generic delta-editor API

Use callbacks or separate layers for all caller-specific processing.


> Factor out the dumpstream loader editor driver
> ----------------------------------------------
>
>                 Key: SVN-4780
>                 URL: https://issues.apache.org/jira/browse/SVN-4780
>             Project: Subversion
>          Issue Type: Task
>            Reporter: Julian Foad
>            Priority: Major
>
> "svnadmin load" and "svnrdump load" should share more of the dumpstream 
> loader code.
> "svnadmin load" uses svn_repos_get_fs_build_parser6(), whose input is the 
> dumpstream parser API, and whose output makes commits directly to a given 
> repository.
> The dumpstream loader in 'svnrdump' contains an editor driver, whose input is 
> the dumpstream parser API, and whose output makes commits through a 
> delta-editor over the RA layer.
> Of course we already have
> Factor out the generic parts of svn_rdump__load_dumpstream() for re-use:
>  * dumpstream parser API to generic delta-editor API
> Use callbacks or separate layers for all caller-specific processing.
> Re-implement svn_repos_get_fs_build_parser6() as:
>  * dumpstream parser API to generic delta-editor API (new, shared) +
>  * generic commit code (svn_repos_get_commit_editor5) (already available)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to