git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add svnrdump

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jul 9, 2010, 13:42 UTC
Message-ID
<20100709134228.GB12315@debian>
In-Reply-To
<002d01cb1e7f$e0ff03c0$a2fd0b40$@nl>
Hi Bert,
Thank you for the review.
Bert Huijben writes:
Show 6 quoted lines
> > +svn_error_t *open_root(void *edit_baton,
> > +                       svn_revnum_t base_revision,
> > +                       apr_pool_t *pool,
> > +                       void **root_baton)
> 
> Static and the return type on its own line.
Fixed. Sorry about the sloppy error.
> This looks like more than 80 characters to me.
I didn't realize that it was a strict requirement. Fixed now.
Show 7 quoted lines
> > +  if (pb && ARE_VALID_COPY_ARGS(pb->cmp_path, pb->cmp_rev)) {
> > +    APR_ARRAY_PUSH(compose_path, const char *) = pb->cmp_path;
> > +    APR_ARRAY_PUSH(compose_path, const char *) =
> > svn_dirent_basename(path, pool);
>
> Assuming that the path doesn't start with a '/' here, this should be
> svn_relent_basename() to avoid platform specific path rules.

Where is svn_dirent_basename defined? I can't seem to find it in the codebase at all.

Show 5 quoted lines
> > +  hb->temp_filepath = apr_psprintf(eb->pool, "%s/svn-fe-XXXXXX",
> > tempdir);
> 
> Why store this path in the editor pool? Do you really need this XXXX path to
> live that long?
Excellent catch! :) Fixed now.
Show 8 quoted lines
> > +svn_error_t *
> > +get_dump_editor(const svn_delta_editor_t **editor,
> > +                void **edit_baton,
> > +                svn_revnum_t to_rev,
> > +                apr_pool_t *pool);
> 
> These structs and this function don't follow our naming guidelines for
> libraries. But these functions are no reusable library (yet).

Right. Is it alright then? Can I re-submit the patch now? (Also fixed a couple of things Daniel pointed out).

-- Ram
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 9 of 11 in “Add svnrdump”
  1. Add svnrdumpRamkumar Ramachandra, Jul 8, 2010
  2. Bert HuijbenJul 8, 2010
  3. Daniel ShahafJul 8, 2010
  4. Blair ZajacJul 9, 2010
  5. Michael J GruberJul 9, 2010
  6. Sverre RabbelierJul 9, 2010
  7. Junio C HamanoJul 9, 2010
  8. Ramkumar RamachandraJul 9, 2010
  9. Ramkumar RamachandraJul 9, 2010
  10. Ramkumar RamachandraJul 9, 2010
  11. Ramkumar RamachandraJul 9, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.