Fossil SCM

Improved error message when the "ls" command is used with -R but without -r.

drh 2016-01-26 15:42 trunk
Commit 844a7a786fb00fb858de9f8fa019e5ffd03b6d92
1 file changed +2
--- src/checkin.c
+++ src/checkin.c
@@ -396,10 +396,12 @@
396396
if( zRev!=0 ){
397397
db_find_and_open_repository(0, 0);
398398
verify_all_options();
399399
ls_cmd_rev(zRev,verboseFlag,showAge,timeOrder);
400400
return;
401
+ }else if( find_option("R",0,1)!=0 ){
402
+ fossil_fatal("the -r is required in addition to -R");
401403
}
402404
403405
db_must_be_within_tree();
404406
vid = db_lget_int("checkout", 0);
405407
if( timeOrder ){
406408
--- 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

Keyboard Shortcuts

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