Fossil

Check-in [3d592297]
Login

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

Overview
Comment:Change the "setting" command so that it works for global settings even if it is run outside of a check-out and with no repository specified using -R.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3d59229789df4de496ea7bfaa5daf6a517a8510d
User & Date: drh 2010-12-26 13:22:12
Context
2010-12-26
14:15
corrected dmc makefile generate, resource compile failed check-in: 518978f1 user: wolfgang tags: trunk
13:22
Change the "setting" command so that it works for global settings even if it is run outside of a check-out and with no repository specified using -R. check-in: 3d592297 user: drh tags: trunk
00:43
Update the quick-start guide documentation to provide hyperlinks to the command-line help in the web interface. Add the beginning of a technical overview article, but as that article is still incomplete, do not hyperlink to it. check-in: 0e1447a6 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

1690
1691
1692
1693
1694
1695
1696

1697

1698
1699
1700
1701
1702
1703
1704
**                     and "firefox" on Unix.
*/
void setting_cmd(void){
  int i;
  int globalFlag = find_option("global","g",0)!=0;
  int unsetFlag = g.argv[1][0]=='u';
  db_open_config(1);

  db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);

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







>
|
>







1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
**                     and "firefox" on Unix.
*/
void setting_cmd(void){
  int i;
  int globalFlag = find_option("global","g",0)!=0;
  int unsetFlag = g.argv[1][0]=='u';
  db_open_config(1);
  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?");
  }
  if( g.argc==2 ){