Fossil SCM

Fix the code for adding "mlink" entries so that it records file deletions on a baseline manifest.

drh 2010-11-10 18:42 trunk
Commit 0ba2c86d2bbd36e5126928b34b160f738149ba03
1 file changed +8
--- src/manifest.c
+++ src/manifest.c
@@ -1258,10 +1258,18 @@
12581258
if( pParentFile->zUuid ) continue;
12591259
pChildFile = manifest_file_seek(pChild, pParentFile->zName);
12601260
if( pChildFile ){
12611261
add_one_mlink(cid, 0, pChildFile->zUuid, pChildFile->zName, 0);
12621262
}
1263
+ }
1264
+ }else if( pChild->zBaseline==0 ){
1265
+ manifest_file_rewind(pParent);
1266
+ while( (pParentFile = manifest_file_next(pParent,0))!=0 ){
1267
+ pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1268
+ if( pChildFile==0 ){
1269
+ add_one_mlink(cid, pParentFile->zUuid, 0, pParentFile->zName, 0);
1270
+ }
12631271
}
12641272
}
12651273
manifest_cache_insert(*ppOther);
12661274
}
12671275
12681276
--- src/manifest.c
+++ src/manifest.c
@@ -1258,10 +1258,18 @@
1258 if( pParentFile->zUuid ) continue;
1259 pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1260 if( pChildFile ){
1261 add_one_mlink(cid, 0, pChildFile->zUuid, pChildFile->zName, 0);
1262 }
 
 
 
 
 
 
 
 
1263 }
1264 }
1265 manifest_cache_insert(*ppOther);
1266 }
1267
1268
--- src/manifest.c
+++ src/manifest.c
@@ -1258,10 +1258,18 @@
1258 if( pParentFile->zUuid ) continue;
1259 pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1260 if( pChildFile ){
1261 add_one_mlink(cid, 0, pChildFile->zUuid, pChildFile->zName, 0);
1262 }
1263 }
1264 }else if( pChild->zBaseline==0 ){
1265 manifest_file_rewind(pParent);
1266 while( (pParentFile = manifest_file_next(pParent,0))!=0 ){
1267 pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1268 if( pChildFile==0 ){
1269 add_one_mlink(cid, pParentFile->zUuid, 0, pParentFile->zName, 0);
1270 }
1271 }
1272 }
1273 manifest_cache_insert(*ppOther);
1274 }
1275
1276

Keyboard Shortcuts

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