You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/10/19 20:12:40 UTC
svn commit: r1186376 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Author: danielsh
Date: Wed Oct 19 18:12:40 2011
New Revision: 1186376
URL: http://svn.apache.org/viewvc?rev=1186376&view=rev
Log:
Comment out confusing 'if (1)' placeholder statements.
Suggested by: stsp
* subversion/libsvn_fs_fs/fs_fs.c
(set_revision_proplist, revision_proplist, commit_body, recover_body):
Replace 'if (1)' with comments explaining the extra {} block. No functional
change.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1186376&r1=1186375&r2=1186376&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Wed Oct 19 18:12:40 2011
@@ -2907,7 +2907,7 @@ set_revision_proplist(svn_fs_t *fs,
{
SVN_ERR(ensure_revision_exists(fs, rev, pool));
- if (1)
+ /* if (1); null condition for easier merging to revprop-packing */
{
const char *final_path = path_revprops(fs, rev, pool);
const char *tmp_path;
@@ -2945,7 +2945,7 @@ revision_proplist(apr_hash_t **proplist_
SVN_ERR(ensure_revision_exists(fs, rev, pool));
- if (1)
+ /* if (1); null condition for easier merging to revprop-packing */
{
apr_file_t *revprop_file = NULL;
svn_error_t *err = SVN_NO_ERROR;
@@ -6387,7 +6387,7 @@ commit_body(void *baton, apr_pool_t *poo
fails because the shard already existed for some reason. */
if (ffd->max_files_per_dir && new_rev % ffd->max_files_per_dir == 0)
{
- if (1)
+ /* if (1); null condition for easier merging to revprop-packing */
{
const char *new_dir = path_rev_shard(cb->fs, new_rev, pool);
svn_error_t *err = svn_io_dir_make(new_dir, APR_OS_DEFAULT, pool);
@@ -7043,7 +7043,7 @@ recover_body(void *baton, apr_pool_t *po
&youngest_revprops_kind, pool));
if (youngest_revprops_kind == svn_node_none)
{
- if (1)
+ /* if (1); null condition for easier merging to revprop-packing */
{
return svn_error_createf(SVN_ERR_FS_CORRUPT, NULL,
_("Revision %ld has a revs file but no "