On Thu, 10 Jun 2004 bliss@tigris.org wrote:
> Author: bliss
> Date: Thu Jun 10 04:25:51 2004
> New Revision: 9945
>
> Modified: trunk/subversion/libsvn_fs_fs/fs_fs.c
> Url: http://svn.collab.net/viewcvs/svn/trunk/subversion/libsvn_fs_fs/fs_fs.c?view=diff&rev=9945&p1=trunk/subversion/libsvn_fs_fs/fs_fs.c&r1=9944&p2=trunk/subversion/libsvn_fs_fs/fs_fs.c&r2=9945
> ==============================================================================
> --- trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
> +++ trunk/subversion/libsvn_fs_fs/fs_fs.c Thu Jun 10 04:25:51 2004
> @@ -2131,17 +2131,24 @@
> unique_path = apr_psprintf (subpool, "%s-%u" PATH_EXT_TXN, prefix, i);
> err = svn_io_dir_make (unique_path, APR_OS_DEFAULT, subpool);
> if (! err)
> - break;
> + {
> + /* We succeeded. Return the basename minus the ".txn" extension. */
> + name = svn_path_basename (unique_path, subpool);
> + *id_p = apr_pstrndup (pool, name,
> + strlen (name) - strlen (PATH_EXT_TXN));
> + svn_pool_destroy (subpool);
> + return SVN_NO_ERROR;
> + }
> if (! APR_STATUS_IS_EEXIST (err->apr_err))
> return err;
> svn_error_clear (err);
> }
>
> - /* We succeeded. Return the basename minus the ".txn" extension. */
> - name = svn_path_basename (unique_path, subpool);
> - *id_p = apr_pstrndup (pool, name, strlen (name) - strlen (PATH_EXT_TXN));
> - svn_pool_destroy (subpool);
> - return SVN_NO_ERROR;
> + return svn_error_createf (SVN_ERR_IO_UNIQUE_NAMES_EXHAUSTED,
> + NULL,
> + "Unable to create transaction directory "
> + "in '%s' for revision %ld",
> + fs->path, rev);
Please mark up new error strings for translation.
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 10 23:16:06 2004