| | @@ -39,11 +39,11 @@ |
| 39 | 39 | } |
| 40 | 40 | /* The undocumented --script FILENAME option causes the Tk script to |
| 41 | 41 | ** be written into the FILENAME instead of being run. This is used |
| 42 | 42 | ** for testing and debugging. */ |
| 43 | 43 | zTempFile = find_option("script",0,1); |
| 44 | | - bDebug = find_option("debug",0,0)!=0; |
| 44 | + bDebug = find_option("tkdebug",0,0)!=0; |
| 45 | 45 | verify_all_options(); |
| 46 | 46 | |
| 47 | 47 | blob_zero(&script); |
| 48 | 48 | blob_appendf(&script, "set ncontext %d\n", nContext); |
| 49 | 49 | blob_appendf(&script, "set fossilexe {\"%/\"}\n", g.nameOfExe); |
| | @@ -314,11 +314,11 @@ |
| 314 | 314 | ** information needed to display the changes to |
| 315 | 315 | ** FILE caused by the most recent merge. FILE must |
| 316 | 316 | ** be a pathname relative to the root of the check-out. |
| 317 | 317 | ** |
| 318 | 318 | ** Debugging options available only when --tk is used: |
| 319 | | -** --debug Show sub-commands run to implement --tk |
| 319 | +** --tkdebug Show sub-commands run to implement --tk |
| 320 | 320 | ** --script FILE Write script used to implement --tk into FILE |
| 321 | 321 | */ |
| 322 | 322 | void merge_info_cmd(void){ |
| 323 | 323 | const char *zCnt; |
| 324 | 324 | const char *zTcl; |
| | @@ -345,18 +345,11 @@ |
| 345 | 345 | diffMode = 13; |
| 346 | 346 | }else |
| 347 | 347 | if( (zDiff2 = find_option("diff23", 0, 1))!=0 ){ |
| 348 | 348 | diffMode = 23; |
| 349 | 349 | } |
| 350 | | - |
| 351 | | - if( bTk==0 ){ |
| 352 | | - find_option("v",0,0); |
| 353 | | - verify_all_options(); |
| 354 | | - if( g.argc>2 ){ |
| 355 | | - usage("[OPTIONS]"); |
| 356 | | - } |
| 357 | | - } |
| 350 | + |
| 358 | 351 | if( zCnt ){ |
| 359 | 352 | nContext = atoi(zCnt); |
| 360 | 353 | if( nContext<0 ) nContext = 0xfffffff; |
| 361 | 354 | }else{ |
| 362 | 355 | nContext = 6; |
| | @@ -384,10 +377,16 @@ |
| 384 | 377 | diffMode, zDiff2, nContext, bDark ? " --dark" : ""); |
| 385 | 378 | diff_tk(zCmd, g.argc); |
| 386 | 379 | fossil_free(zCmd); |
| 387 | 380 | return; |
| 388 | 381 | } |
| 382 | + |
| 383 | + verify_all_options(); |
| 384 | + if( g.argc>2 ){ |
| 385 | + usage("[OPTIONS]"); |
| 386 | + } |
| 387 | + |
| 389 | 388 | if( bAll ){ |
| 390 | 389 | zWhere = ""; |
| 391 | 390 | }else{ |
| 392 | 391 | zWhere = "WHERE op IN ('MERGE','CONFLICT','ERROR')"; |
| 393 | 392 | } |
| 394 | 393 | |