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

Re: An incorrect error code?

From: <kfogel_at_collab.net>
Date: 2006-01-29 23:13:34 CET

Alexander Sinyushkin <sa@tmate.org> writes:
> Hello, svn devs. I've got a tag version of the 1.3.0 Subversion source
> code. In the 'svn_fs_fs__dag_set_entry' function (both libsvn_fs_base
> & libsvn_fs_fs) when a node is an immutable dir you set an
> /* Check it's a directory. */
> if (node->kind != svn_node_dir)
> return svn_error_create
> _("Attempted to set entry in non-directory node"));
> /* Check it's mutable. */
> if (! svn_fs_fs__dag_check_mutable (node, txn_id))
> return svn_error_create
> _("Attempted to set entry in immutable node"));
> The previous check is already reporting of a non-directory node, so,
> maybe the next check should set an SVN_ERR_FS_NOT_MUTABLE error code?
> I'm not sure if it's so important, but anyway decided to tell you
> about this.

Fixed in r18286, thanks for pointing it out.


www.collab.net  <>  CollabNet  |  Distributed Development On Demand
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 30 00:51:30 2006

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.