Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch settingsTest Excluding Merge-Ins
This is equivalent to a diff from 401d9b2937 to ca6c8f9be8
|
2016-08-23
| ||
| 17:30 | Add extensive tests for the 'settings' and 'unset' commands. Also, add --exact option to the 'settings' / 'unset' commands. ... (check-in: 816bc43b80 user: mistachkin tags: trunk) | |
| 17:21 | Add a comment. ... (Closed-Leaf check-in: ca6c8f9be8 user: mistachkin tags: settingsTest) | |
| 10:13 | Fix a harmless but redundant space in the admin_log schema definition. ... (check-in: 1852455158 user: drh tags: trunk) | |
| 09:49 | eliminate some end-of-line spaces ... (Closed-Leaf check-in: 22ed008469 user: jan.nijtmans tags: mistake) | |
| 02:19 | Add another test to check the value of each versionable setting after it is written. ... (check-in: 46228ffb1f user: mistachkin tags: settingsTest) | |
| 02:13 | Add extensive tests for the 'settings' and 'unset' commands. Also, add --exact option to the 'settings' / 'unset' commands. ... (check-in: b9414210cd user: mistachkin tags: settingsTest) | |
| 01:41 | Better default sort orders for columns on the /uvlist ... (check-in: 401d9b2937 user: drh tags: trunk) | |
| 01:37 | In the /uvlist, do not link to deleted files. ... (check-in: d8b0489b81 user: drh tags: trunk) | |
Changes to src/db.c.
| ︙ | |||
2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 | 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 | + + + + |
** Defaults to "start" on windows, "open" on Mac,
** and "firefox" on Unix.
**
** Options:
** --global set or unset the given property globally instead of
** setting or unsetting it for the open repository only.
**
** --exact only consider exact name matches.
**
** 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;
}
|
| ︙ | |||
2914 2915 2916 2917 2918 2919 2920 | 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 | - + |
if( g.argc==2 ){
for(i=0; aSetting[i].name; i++){
print_setting(&aSetting[i]);
}
}else if( g.argc==3 || g.argc==4 ){
const char *zName = g.argv[2];
int n = (int)strlen(zName);
|
| ︙ | |||
2947 2948 2949 2950 2951 2952 2953 | 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 | - + + + + + + |
}else{
db_set(pSetting->name, g.argv[3], globalFlag);
}
if( isManifest && g.localOpen ){
manifest_to_disk(db_lget_int("checkout", 0));
}
}else{
|
| ︙ |
Added test/settings-repo.test.