Fossil SCM

If the child manifest is a baseline and the parent a delta manifest, files that are marked as removed in the parent have to be skipped. This fixes "Added XXX version []" entries in the UI.

joerg 2011-03-24 17:14 trunk
Commit 91472616bfe48baca3f12bf0a45b25f9413868a2
1 file changed +1 -1
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -1330,11 +1330,11 @@
13301330
** present in pParent but which are missing from pChild and mark them
13311331
** has having been deleted. */
13321332
manifest_file_rewind(pParent);
13331333
while( (pParentFile = manifest_file_next(pParent,0))!=0 ){
13341334
pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1335
- if( pChildFile==0 ){
1335
+ if( pChildFile==0 && pParentFile->zUuid!=0 ){
13361336
add_one_mlink(cid, pParentFile->zUuid, 0, pParentFile->zName, 0,
13371337
isPublic, 0);
13381338
}
13391339
}
13401340
}
13411341
--- src/manifest.c
+++ src/manifest.c
@@ -1330,11 +1330,11 @@
1330 ** present in pParent but which are missing from pChild and mark them
1331 ** has having been deleted. */
1332 manifest_file_rewind(pParent);
1333 while( (pParentFile = manifest_file_next(pParent,0))!=0 ){
1334 pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1335 if( pChildFile==0 ){
1336 add_one_mlink(cid, pParentFile->zUuid, 0, pParentFile->zName, 0,
1337 isPublic, 0);
1338 }
1339 }
1340 }
1341
--- src/manifest.c
+++ src/manifest.c
@@ -1330,11 +1330,11 @@
1330 ** present in pParent but which are missing from pChild and mark them
1331 ** has having been deleted. */
1332 manifest_file_rewind(pParent);
1333 while( (pParentFile = manifest_file_next(pParent,0))!=0 ){
1334 pChildFile = manifest_file_seek(pChild, pParentFile->zName);
1335 if( pChildFile==0 && pParentFile->zUuid!=0 ){
1336 add_one_mlink(cid, pParentFile->zUuid, 0, pParentFile->zName, 0,
1337 isPublic, 0);
1338 }
1339 }
1340 }
1341

Keyboard Shortcuts

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