Changeset 782 for git/branches/dmik/xdiff/xprepare.c
- Timestamp:
- Jun 23, 2014, 9:45:51 PM (11 years ago)
- Location:
- git/branches/dmik
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
git/branches/dmik ¶
- Property svn:mergeinfo changed
/git/vendor/2.0.0 (added) merged: 777 /git/vendor/current merged: 772,774,776
- Property svn:mergeinfo changed
-
TabularUnified git/branches/dmik/xdiff/xprepare.c ¶
r626 r782 182 182 goto abort; 183 183 184 if ( xpp->flags &XDF_HISTOGRAM_DIFF)184 if (XDF_DIFF_ALG(xpp->flags) == XDF_HISTOGRAM_DIFF) 185 185 hbits = hsize = 0; 186 186 else { … … 210 210 recs[nrec++] = crec; 211 211 212 if ( !(xpp->flags &XDF_HISTOGRAM_DIFF) &&213 212 if ((XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF) && 213 xdl_classify_record(pass, cf, rhash, hbits, crec) < 0) 214 214 goto abort; 215 215 } … … 274 274 * xdl_prepare_ctx(). 275 275 */ 276 sample = xpp->flags & XDF_HISTOGRAM_DIFF ? XDL_GUESS_NLINES2 : XDL_GUESS_NLINES1; 276 sample = (XDF_DIFF_ALG(xpp->flags) == XDF_HISTOGRAM_DIFF 277 ? XDL_GUESS_NLINES2 : XDL_GUESS_NLINES1); 277 278 278 279 enl1 = xdl_guess_lines(mf1, sample) + 1; 279 280 enl2 = xdl_guess_lines(mf2, sample) + 1; 280 281 281 if (!(xpp->flags & XDF_HISTOGRAM_DIFF) && 282 xdl_init_classifier(&cf, enl1 + enl2 + 1, xpp->flags) < 0) { 283 284 return -1; 285 } 282 if (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF && 283 xdl_init_classifier(&cf, enl1 + enl2 + 1, xpp->flags) < 0) 284 return -1; 286 285 287 286 if (xdl_prepare_ctx(1, mf1, enl1, xpp, &cf, &xe->xdf1) < 0) { … … 297 296 } 298 297 299 if ( !(xpp->flags &XDF_PATIENCE_DIFF) &&300 !(xpp->flags &XDF_HISTOGRAM_DIFF) &&301 298 if ((XDF_DIFF_ALG(xpp->flags) != XDF_PATIENCE_DIFF) && 299 (XDF_DIFF_ALG(xpp->flags) != XDF_HISTOGRAM_DIFF) && 300 xdl_optimize_ctxs(&cf, &xe->xdf1, &xe->xdf2) < 0) { 302 301 303 302 xdl_free_ctx(&xe->xdf2);
Note:
See TracChangeset
for help on using the changeset viewer.