ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The confusing bit was the dump_fs2 call. The params are as follows:
Code:
svn_repos_dump_fs2(
svn_repos_t repos, # the opened repository
svn_stream_t dumpstream, # writable file pointer for the dump file
svn_stream_t feedback_stream, # writable file pointer for progress report (my file was empty, fwiw)
svn_revnum_t start_rev, # first revision number to dump - typically 1 for the whole thing
svn_revnum_t end_rev, # last revision number to dump - "youngest" revision
svn_boolean_t incremental, # TRUE: the first revision dumped will be a diff against the previous revision (usually it looks like a full dump of the tree).
svn_boolean_t use_deltas, # TRUE: output only node properties which have changed relative to the previous contents, and output text contents as svndiff data against the previous contents. Regardless of how this flag is set, the first revision of a non-incremental dump will be done with full plain text. A dump with @a use_deltas set cannot be loaded by Subversion 1.0.x.
svn_cancel_func_t cancel_func, # a callback function if the user cancels, mid operation
apr_pool_t pool # ?? hrm... can't seem to remember now & don't feel like researching for it. Use "None" ;)
)
FWIW, I can't say that this is perfectly, technically correct, but it does make a dump file that svnadmin can load & then svn can check out and back into.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.