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

Re: [PATCH] #2246: repos_get_commit_editor API

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2005-03-28 19:34:16 CEST

On Mon, 2005-03-28 at 10:07, Ben Collins-Sussman wrote:
> Years ago, we deliberately decided that get_commit_editor() should
> *not* create a txn. We felt it was overoptimization.

I don't think "overoptimization" is a valid criticism. Creating a
transaction in get_commit_editor() wouldn't be any faster.

> we didn't like the ide aof empty transactions lying aroud (for
> hours? days?) just because commit editors were fetched.

Is that any different from them lying around just because commit editors
were fetched and open_root was called? Either way, they will be cleaned
up by abort_edit.

> How about a different approach: why not just 'rev' the existing API?
> Create svn_repos_get_commit_editor2(), and have it take an optional
> pre-existing txn parameter? If the new parameter is NULL, then
> open_root() will create a new txn. If the new parameter is non-NULL,
> then open_root() will do nothing.

I don't think that accomplishes what clkao needs. With his new API, he
can specify NULL for the txn, and (a) receive a txn ID which he can use
to set revision properties, and (b) know that he can abort the commit
and then reuse the transaction later.

With your suggestion, specifying NULL as the txn would not accomplish
either of these things.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 28 19:35:42 2005

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.