Fossil

Check-in [9807a05d]
Login

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

Overview
Comment:Draft fix for 'settings' command issue when using the '-R' option.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | settingRFix
Files: files | file ages | folders
SHA1: 9807a05d8a815a3dc0be0957bedfc38328656922
User & Date: mistachkin 2016-11-22 21:50:14
References
2016-11-22
21:54
Possible fix for regression reported on mailing list. It looks like there is already a better fix in [9807a05d8a]. Closed-Leaf check-in: 3cf8891e user: andybradford tags: settings-regression
Context
2016-11-22
21:50
Draft fix for 'settings' command issue when using the '-R' option. Closed-Leaf check-in: 9807a05d user: mistachkin tags: settingRFix
2016-11-19
20:11
minor simplification, and don't free zUuid if it was NULL check-in: d6cb724e user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

3083
3084
3085
3086
3087
3088
3089

3090

3091
3092
3093

3094
3095
3096
3097
3098
3099
3100
** See also: configuration
*/
void setting_cmd(void){
  int i;
  int globalFlag = find_option("global","g",0)!=0;
  int exactFlag = find_option("exact",0,0)!=0;
  int unsetFlag = g.argv[1][0]=='u';

  verify_all_options();

  db_open_config(1, 0);
  if( !globalFlag ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA | OPEN_OK_NOT_FOUND, 0);

  }
  if( !g.repositoryOpen ){
    globalFlag = 1;
  }
  if( unsetFlag && g.argc!=3 ){
    usage("PROPERTY ?-global?");
  }







>
|
>



>







3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
** See also: configuration
*/
void setting_cmd(void){
  int i;
  int globalFlag = find_option("global","g",0)!=0;
  int exactFlag = find_option("exact",0,0)!=0;
  int unsetFlag = g.argv[1][0]=='u';
  if( globalFlag ){
    verify_all_options();
  }
  db_open_config(1, 0);
  if( !globalFlag ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA | OPEN_OK_NOT_FOUND, 0);
    verify_all_options();
  }
  if( !g.repositoryOpen ){
    globalFlag = 1;
  }
  if( unsetFlag && g.argc!=3 ){
    usage("PROPERTY ?-global?");
  }