Fossil SCM

Fix the merge command so that file renames are only considered if they are on the shortest path between the pivot and the checkins being merged. Ticket [74413366fe5067b3d].

drh 2011-01-04 14:12 trunk
Commit ff2a87103bf16f4781182cd66cef550cbbaecc3a
1 file changed +1 -1
+1 -1
--- src/bisect.c
+++ src/bisect.c
@@ -363,11 +363,11 @@
363363
Stmt q1; /* Query of name changes */
364364
365365
*pnChng = 0;
366366
*aiChng = 0;
367367
bisect_reset();
368
- p = bisect_shortest_path(iFrom, iTo, 1);
368
+ p = bisect_shortest_path(iFrom, iTo, 0);
369369
if( p==0 ) return;
370370
bisect_reverse_path();
371371
db_prepare(&q1,
372372
"SELECT pfnid, fnid FROM mlink WHERE mid=:mid AND pfnid>0"
373373
);
374374
--- src/bisect.c
+++ src/bisect.c
@@ -363,11 +363,11 @@
363 Stmt q1; /* Query of name changes */
364
365 *pnChng = 0;
366 *aiChng = 0;
367 bisect_reset();
368 p = bisect_shortest_path(iFrom, iTo, 1);
369 if( p==0 ) return;
370 bisect_reverse_path();
371 db_prepare(&q1,
372 "SELECT pfnid, fnid FROM mlink WHERE mid=:mid AND pfnid>0"
373 );
374
--- src/bisect.c
+++ src/bisect.c
@@ -363,11 +363,11 @@
363 Stmt q1; /* Query of name changes */
364
365 *pnChng = 0;
366 *aiChng = 0;
367 bisect_reset();
368 p = bisect_shortest_path(iFrom, iTo, 0);
369 if( p==0 ) return;
370 bisect_reverse_path();
371 db_prepare(&q1,
372 "SELECT pfnid, fnid FROM mlink WHERE mid=:mid AND pfnid>0"
373 );
374

Keyboard Shortcuts

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