Fossil SCM

Bug fix in the mlink table builder. Use the "rebuild" method to correct the problem in preexisting repositories.

drh 2007-07-31 20:53 trunk
Commit 5b58559c0c35cd87d9f15f18a15a20b014319bdb
1 file changed +1 -1
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -258,11 +258,11 @@
258258
content_get(cid, &otherContent);
259259
}
260260
if( blob_size(&otherContent)==0 ) return;
261261
if( manifest_parse(&other, &otherContent)==0 ) return;
262262
content_deltify(pid, cid, 0);
263
- for(i=j=0; pParent->nFile<i && pChild->nFile<j; ){
263
+ for(i=j=0; i<pParent->nFile && j<pChild->nFile; ){
264264
int c = strcmp(pParent->aFile[i].zName, pChild->aFile[j].zName);
265265
if( c<0 ){
266266
add_one_mlink(cid, pParent->aFile[i].zUuid, 0, pParent->aFile[i].zName);
267267
i++;
268268
}else if( c>0 ){
269269
--- src/manifest.c
+++ src/manifest.c
@@ -258,11 +258,11 @@
258 content_get(cid, &otherContent);
259 }
260 if( blob_size(&otherContent)==0 ) return;
261 if( manifest_parse(&other, &otherContent)==0 ) return;
262 content_deltify(pid, cid, 0);
263 for(i=j=0; pParent->nFile<i && pChild->nFile<j; ){
264 int c = strcmp(pParent->aFile[i].zName, pChild->aFile[j].zName);
265 if( c<0 ){
266 add_one_mlink(cid, pParent->aFile[i].zUuid, 0, pParent->aFile[i].zName);
267 i++;
268 }else if( c>0 ){
269
--- src/manifest.c
+++ src/manifest.c
@@ -258,11 +258,11 @@
258 content_get(cid, &otherContent);
259 }
260 if( blob_size(&otherContent)==0 ) return;
261 if( manifest_parse(&other, &otherContent)==0 ) return;
262 content_deltify(pid, cid, 0);
263 for(i=j=0; i<pParent->nFile && j<pChild->nFile; ){
264 int c = strcmp(pParent->aFile[i].zName, pChild->aFile[j].zName);
265 if( c<0 ){
266 add_one_mlink(cid, pParent->aFile[i].zUuid, 0, pParent->aFile[i].zName);
267 i++;
268 }else if( c>0 ){
269

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button