Re: [PATCH] New dumpstream parser to check version number

2010-08-19 Thread Daniel Shahaf
Ramkumar Ramachandra wrote on Thu, Aug 19, 2010 at 02:38:25 +0530: > Daniel Shahaf wrote: > > svnrdump needs an inequality check here. But 'svnadmin load', for > > example, needs an "is at most" check. So I don't think this is generic > > enough: it would be better to provide something that 'svna

Re: [PATCH] New dumpstream parser to check version number

2010-08-18 Thread Ramkumar Ramachandra
Hi Daniel, Daniel Shahaf writes: > > - * @since New in 1.1. > > + * @since New in 2.0. > > s/2.0/1.7/ Fixed. > > +/** > > + * Similar to svn_repos_parse_dumpstream3(), but is dumpfile version > > + * agnostic. > > + * > > Perhaps say: "with @a version_number always set to -1" ? Fixed, along w

Re: [PATCH] New dumpstream parser to check version number

2010-08-18 Thread Ramkumar Ramachandra
Hi Hyrum, Hyrum K. Wright writes: > > + * If @a version_number is -1, it is ignored and the dumpstream is > > + * parsed without this information. If not -1, the function checks the > > We try to avoid magic numbers. Is there a #define or constant > somewhere that you could use? If not, I'd add

Re: [PATCH] New dumpstream parser to check version number

2010-08-18 Thread Daniel Shahaf
Ramkumar Ramachandra wrote on Thu, Aug 19, 2010 at 01:29:02 +0530: > +++ subversion/include/svn_repos.h(working copy) > @@ -2661,9 +2665,25 @@ typedef svn_repos_parse_fns2_t svn_repos_parser_fn > * This is enough knowledge to make it easy on vtable implementors, > * but still allow expansio

Re: [PATCH] New dumpstream parser to check version number

2010-08-18 Thread Hyrum K. Wright
On Wed, Aug 18, 2010 at 8:59 PM, Ramkumar Ramachandra wrote: > [[[ > * subversion/libsvn_repos/load.c >  (svn_repos_parse_dumpstream2, svn_repos_parse_dumpstream3): Rename >  the older function and add a version_number argument; error out if >  there's a version mismatch. > > * subversion/include/