Fossil SCM
Improved error message when the "ls" command is used with -R but without -r.
Commit
844a7a786fb00fb858de9f8fa019e5ffd03b6d92
Parent
12cf825f663e49a…
1 file changed
+2
+2
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -396,10 +396,12 @@ | ||
| 396 | 396 | if( zRev!=0 ){ |
| 397 | 397 | db_find_and_open_repository(0, 0); |
| 398 | 398 | verify_all_options(); |
| 399 | 399 | ls_cmd_rev(zRev,verboseFlag,showAge,timeOrder); |
| 400 | 400 | return; |
| 401 | + }else if( find_option("R",0,1)!=0 ){ | |
| 402 | + fossil_fatal("the -r is required in addition to -R"); | |
| 401 | 403 | } |
| 402 | 404 | |
| 403 | 405 | db_must_be_within_tree(); |
| 404 | 406 | vid = db_lget_int("checkout", 0); |
| 405 | 407 | if( timeOrder ){ |
| 406 | 408 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -396,10 +396,12 @@ | |
| 396 | if( zRev!=0 ){ |
| 397 | db_find_and_open_repository(0, 0); |
| 398 | verify_all_options(); |
| 399 | ls_cmd_rev(zRev,verboseFlag,showAge,timeOrder); |
| 400 | return; |
| 401 | } |
| 402 | |
| 403 | db_must_be_within_tree(); |
| 404 | vid = db_lget_int("checkout", 0); |
| 405 | if( timeOrder ){ |
| 406 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -396,10 +396,12 @@ | |
| 396 | if( zRev!=0 ){ |
| 397 | db_find_and_open_repository(0, 0); |
| 398 | verify_all_options(); |
| 399 | ls_cmd_rev(zRev,verboseFlag,showAge,timeOrder); |
| 400 | return; |
| 401 | }else if( find_option("R",0,1)!=0 ){ |
| 402 | fossil_fatal("the -r is required in addition to -R"); |
| 403 | } |
| 404 | |
| 405 | db_must_be_within_tree(); |
| 406 | vid = db_lget_int("checkout", 0); |
| 407 | if( timeOrder ){ |
| 408 |