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

Re: editor v2 and replace

From: Neels Janosch Hofmeyr <neels_at_elego.de>
Date: Fri, 12 Jun 2009 01:47:26 +0200

Stefan Sperling wrote:
> On Thu, Jun 11, 2009 at 06:29:13PM +0200, Greg Stein wrote:
>> Hmm. I figured that with the "add follows" flag, then you could know
>> to avoid dual-notifications, and just wait for the add. But yah...
>> then you'd need to remember (at add time) that a delete had happened.
>> More cross-call state.
>>
>> Adding a flag to the add calls should work. Tho I hate the "replace"
>> terminology. Maybe "overwrite=TRUE" is better? (and, of course,
>> failure if you're trying to overwrite, and nothing is there)
>>
>> Bikeshed. But yah. Extending the add calls sounds better. Thanks!
>
> I'd like to point that I'd also like an atomic editor
> call for move(), please!
>
> Can we do that?
>
> Stefan

[[[
$ grep move include/svn_editor.h
typedef svn_error_t *(*svn_editor_cb_move_t)(
svn_editor_setcb_move(svn_editor_t *editor,
                      svn_editor_cb_move_t callback,
  svn_editor_cb_move_t cb_move;
svn_editor_move(svn_editor_t *editor,
]]]

So, yes. ;)
~Neels

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2361478

Received on 2009-06-12 01:48:07 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.