[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: naming in repos_diff.c

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 4 Jun 2009 15:33:41 +0100

On Wed, Jun 03, 2009 at 10:03:50PM +0200, Neels Janosch Hofmeyr wrote:
> Hi Arfrever, Stsp,
>
> would you guys be fine with the attached patch? Calling that thing
> "diff_editor" got me confused there for a while.
>
> Furthermore, could you explain why you chuck the local svnpatch_* functions
> into an (also local) svn_delta_editor_t in the first place? It makes much
> more sense to me to just call them directly without the editor struct.

I'm fine with this patch.

But I'd also like to point out (again) that I don't like the fact that
"patch" implements its own editor. Because that duplicates a lot of code,
and it's hard to maintain in the long term.

E.g. it's not clear to me yet whether the patch editor should be caring
about tree conflicts, for example, which the update and merge editors do.

Maybe patch should somehow re-use the merge editor.
I've been told this is impossible with the current API.

Anyway I think we should solve this problem before the patch feature
gets released. So I hope that the code you're patching will be obsoleted
eventually. But maybe that's just me :)

Stefan
Received on 2009-06-04 16:33:59 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.