Fossil

Check-in [844a7a78]
Login

Check-in [844a7a78]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Improved error message when the "ls" command is used with -R but without -r.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 844a7a786fb00fb858de9f8fa019e5ffd03b6d92
User & Date: drh 2016-01-26 15:42:09.957
Context
2016-01-27
01:23
Added copyright and license comment blocks to two existing test case files that were missing them, with years based on looking for when the tests were first added to the repository. ... (check-in: 08a35878 user: rberteig tags: trunk)
2016-01-26
15:42
Improved error message when the "ls" command is used with -R but without -r. ... (check-in: 844a7a78 user: drh tags: trunk)
13:18
Fix a comment with wrong parameters description ... (check-in: 12cf825f user: baruch tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/checkin.c.
394
395
396
397
398
399
400


401
402
403
404
405
406
407
  timeOrder = find_option("t","t",0)!=0;

  if( zRev!=0 ){
    db_find_and_open_repository(0, 0);
    verify_all_options();
    ls_cmd_rev(zRev,verboseFlag,showAge,timeOrder);
    return;


  }

  db_must_be_within_tree();
  vid = db_lget_int("checkout", 0);
  if( timeOrder ){
    if( showAge ){
      zOrderBy = mprintf("checkin_mtime(%d,rid) DESC", vid);







>
>







394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
  timeOrder = find_option("t","t",0)!=0;

  if( zRev!=0 ){
    db_find_and_open_repository(0, 0);
    verify_all_options();
    ls_cmd_rev(zRev,verboseFlag,showAge,timeOrder);
    return;
  }else if( find_option("R",0,1)!=0 ){
    fossil_fatal("the -r is required in addition to -R");
  }

  db_must_be_within_tree();
  vid = db_lget_int("checkout", 0);
  if( timeOrder ){
    if( showAge ){
      zOrderBy = mprintf("checkin_mtime(%d,rid) DESC", vid);