Fossil SCM

Fix for lockup on merge with rename and custom baseline. Change received from drh via mailing list. See [http://www.mail-archive.com/[email protected]/msg23838.html] for details.

jan.nijtmans 2016-09-07 07:50 trunk merge
Commit 496c0fea3b4d48252171011fa34af7f917a05ca8
1 file changed +1 -1
+1 -1
--- src/merge.c
+++ src/merge.c
@@ -395,11 +395,11 @@
395395
}
396396
if( zPivot ){
397397
vAncestor = db_exists(
398398
"WITH RECURSIVE ancestor(id) AS ("
399399
" VALUES(%d)"
400
- " UNION ALL"
400
+ " UNION"
401401
" SELECT pid FROM plink, ancestor"
402402
" WHERE cid=ancestor.id AND pid!=%d AND cid!=%d)"
403403
"SELECT 1 FROM ancestor WHERE id=%d LIMIT 1",
404404
vid, nid, pid, pid
405405
) ? 'p' : 'n';
406406
--- src/merge.c
+++ src/merge.c
@@ -395,11 +395,11 @@
395 }
396 if( zPivot ){
397 vAncestor = db_exists(
398 "WITH RECURSIVE ancestor(id) AS ("
399 " VALUES(%d)"
400 " UNION ALL"
401 " SELECT pid FROM plink, ancestor"
402 " WHERE cid=ancestor.id AND pid!=%d AND cid!=%d)"
403 "SELECT 1 FROM ancestor WHERE id=%d LIMIT 1",
404 vid, nid, pid, pid
405 ) ? 'p' : 'n';
406
--- src/merge.c
+++ src/merge.c
@@ -395,11 +395,11 @@
395 }
396 if( zPivot ){
397 vAncestor = db_exists(
398 "WITH RECURSIVE ancestor(id) AS ("
399 " VALUES(%d)"
400 " UNION"
401 " SELECT pid FROM plink, ancestor"
402 " WHERE cid=ancestor.id AND pid!=%d AND cid!=%d)"
403 "SELECT 1 FROM ancestor WHERE id=%d LIMIT 1",
404 vid, nid, pid, pid
405 ) ? 'p' : 'n';
406

Keyboard Shortcuts

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