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

An incorrect error code?

From: Alexander Sinyushkin <sa_at_tmate.org>
Date: 2006-01-28 11:04:56 CET

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.

 Alexander                          mailto:sa@tmate.org
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jan 29 15:20:32 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.