| | @@ -340,15 +340,14 @@ |
| 340 | 340 | db_finalize(&q); |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | /* |
| 344 | 344 | ** COMMAND: leaves* |
| 345 | | -** COMMAND: forks* |
| 345 | +** |
| 346 | +** Usage: %fossil leaves ?OPTIONS? |
| 346 | 347 | ** |
| 347 | | -** Usage: %fossil leaves|forks ?OPTIONS? |
| 348 | | -** |
| 349 | | -** Find leaves/forks of all branches. By default show only open leaves. |
| 348 | +** Find leaves of all branches. By default show only open leaves. |
| 350 | 349 | ** The -a|--all flag causes all leaves (closed and open) to be shown. |
| 351 | 350 | ** The -c|--closed flag shows only closed leaves. |
| 352 | 351 | ** |
| 353 | 352 | ** The --recompute flag causes the content of the "leaf" table in the |
| 354 | 353 | ** repository database to be recomputed. |
| | @@ -368,12 +367,12 @@ |
| 368 | 367 | Stmt q; |
| 369 | 368 | Blob sql; |
| 370 | 369 | int showAll = find_option("all", "a", 0)!=0; |
| 371 | 370 | int showClosed = find_option("closed", "c", 0)!=0; |
| 372 | 371 | int recomputeFlag = find_option("recompute",0,0)!=0; |
| 373 | | - int byBranch = find_option("bybranch",0,0)!=0; |
| 374 | | - int showForks = g.argv[1][0]=='f'; |
| 372 | + int showForks = g.argv[1][0]!='l'; |
| 373 | + int byBranch = (find_option("bybranch",0,0)!=0) || showForks; |
| 375 | 374 | const char *zWidth = find_option("width","W",1); |
| 376 | 375 | char *zLastBr = 0; |
| 377 | 376 | int n, width; |
| 378 | 377 | char zLineNo[10]; |
| 379 | 378 | |
| | @@ -430,10 +429,11 @@ |
| 430 | 429 | fossil_free(z); |
| 431 | 430 | } |
| 432 | 431 | } |
| 433 | 432 | fossil_free(zLastBr); |
| 434 | 433 | db_finalize(&q); |
| 434 | + if( showForks && !zLastBr ) fossil_print("*** OK, no ambigeous branches found ***\n"); |
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | /* |
| 438 | 438 | ** WEBPAGE: leaves |
| 439 | 439 | ** |
| 440 | 440 | |