Hi All,
Find the attached patch and log.
With regards
Kamesh Jayachandran
[[[
Clarity fix.
* subversion/libsvn_fs_util/merge-info-sqlite-index.c
(parse_mergeinfo_from_db):
Changing from 'while' to 'do...while' as we know this block is exercised
iff we have atleast one record.
Patch by: Kamesh Jayachandran <kamesh@collab.net>
Suggested by: Daniel L Rall <dlr@collab.net>
]]]
Index: subversion/libsvn_fs_util/merge-info-sqlite-index.c
===================================================================
--- subversion/libsvn_fs_util/merge-info-sqlite-index.c (revision 22305)
+++ subversion/libsvn_fs_util/merge-info-sqlite-index.c (working copy)
@@ -319,7 +319,7 @@
*result = apr_hash_make(pool);
pathranges = apr_array_make(pool, 1, sizeof(svn_merge_range_t *));
- while (sqlite_result == SQLITE_ROW)
+ do
{
svn_merge_range_t *temprange;
@@ -343,6 +343,8 @@
sqlite_result = sqlite3_step(stmt);
lastmergedfrom = mergedfrom;
}
+ while (sqlite_result == SQLITE_ROW);
+
apr_hash_set(*result, mergedfrom, APR_HASH_KEY_STRING, pathranges);
if (sqlite_result != SQLITE_DONE)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 15 09:33:57 2006