Fossil SCM
Change the "reparent" command so that it only works within an open checkout. Documentation improvements, especially add documentation to about the FOSSIL_SECURITY_LEVEL environment variable.
Commit
d168be0cacd3169bf1cde0158fa9ec644a35cb1a19d4fe5a8c525ca21b3a5793
Parent
2476b8121e5dde5…
5 files changed
+1
-1
+1
-1
+1
-1
+12
+12
+1
-1
| --- src/content.c | ||
| +++ src/content.c | ||
| @@ -1218,11 +1218,11 @@ | ||
| 1218 | 1218 | ** |
| 1219 | 1219 | ** WARNING: You must run "fossil rebuild" after this command to rebuild |
| 1220 | 1220 | ** the metadata. |
| 1221 | 1221 | ** |
| 1222 | 1222 | ** Note that the arguments are the integer raw RID values from the BLOB table, |
| 1223 | -** not artifact hashs or labels. | |
| 1223 | +** not artifact hashes or labels. | |
| 1224 | 1224 | */ |
| 1225 | 1225 | void test_content_erase(void){ |
| 1226 | 1226 | int i; |
| 1227 | 1227 | Blob x; |
| 1228 | 1228 | char c; |
| 1229 | 1229 |
| --- src/content.c | |
| +++ src/content.c | |
| @@ -1218,11 +1218,11 @@ | |
| 1218 | ** |
| 1219 | ** WARNING: You must run "fossil rebuild" after this command to rebuild |
| 1220 | ** the metadata. |
| 1221 | ** |
| 1222 | ** Note that the arguments are the integer raw RID values from the BLOB table, |
| 1223 | ** not artifact hashs or labels. |
| 1224 | */ |
| 1225 | void test_content_erase(void){ |
| 1226 | int i; |
| 1227 | Blob x; |
| 1228 | char c; |
| 1229 |
| --- src/content.c | |
| +++ src/content.c | |
| @@ -1218,11 +1218,11 @@ | |
| 1218 | ** |
| 1219 | ** WARNING: You must run "fossil rebuild" after this command to rebuild |
| 1220 | ** the metadata. |
| 1221 | ** |
| 1222 | ** Note that the arguments are the integer raw RID values from the BLOB table, |
| 1223 | ** not artifact hashes or labels. |
| 1224 | */ |
| 1225 | void test_content_erase(void){ |
| 1226 | int i; |
| 1227 | Blob x; |
| 1228 | char c; |
| 1229 |
+1
-1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -633,14 +633,14 @@ | ||
| 633 | 633 | char *zUuid; |
| 634 | 634 | int dryRun = 0; |
| 635 | 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | 637 | |
| 638 | + db_must_be_within_tree(); | |
| 638 | 639 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 639 | 640 | zDateOvrd = find_option("date-override",0,1); |
| 640 | 641 | zUserOvrd = find_option("user-override",0,1); |
| 641 | - db_find_and_open_repository(0, 0); | |
| 642 | 642 | verify_all_options(); |
| 643 | 643 | if( g.argc<4 ){ |
| 644 | 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | 645 | } |
| 646 | 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 | 647 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -633,14 +633,14 @@ | |
| 633 | char *zUuid; |
| 634 | int dryRun = 0; |
| 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | |
| 638 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 639 | zDateOvrd = find_option("date-override",0,1); |
| 640 | zUserOvrd = find_option("user-override",0,1); |
| 641 | db_find_and_open_repository(0, 0); |
| 642 | verify_all_options(); |
| 643 | if( g.argc<4 ){ |
| 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | } |
| 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -633,14 +633,14 @@ | |
| 633 | char *zUuid; |
| 634 | int dryRun = 0; |
| 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | |
| 638 | db_must_be_within_tree(); |
| 639 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 640 | zDateOvrd = find_option("date-override",0,1); |
| 641 | zUserOvrd = find_option("user-override",0,1); |
| 642 | verify_all_options(); |
| 643 | if( g.argc<4 ){ |
| 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | } |
| 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 |
+1
-1
| --- src/tag.c | ||
| +++ src/tag.c | ||
| @@ -633,14 +633,14 @@ | ||
| 633 | 633 | char *zUuid; |
| 634 | 634 | int dryRun = 0; |
| 635 | 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | 637 | |
| 638 | + db_must_be_within_tree(); | |
| 638 | 639 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 639 | 640 | zDateOvrd = find_option("date-override",0,1); |
| 640 | 641 | zUserOvrd = find_option("user-override",0,1); |
| 641 | - db_find_and_open_repository(0, 0); | |
| 642 | 642 | verify_all_options(); |
| 643 | 643 | if( g.argc<4 ){ |
| 644 | 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | 645 | } |
| 646 | 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 | 647 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -633,14 +633,14 @@ | |
| 633 | char *zUuid; |
| 634 | int dryRun = 0; |
| 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | |
| 638 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 639 | zDateOvrd = find_option("date-override",0,1); |
| 640 | zUserOvrd = find_option("user-override",0,1); |
| 641 | db_find_and_open_repository(0, 0); |
| 642 | verify_all_options(); |
| 643 | if( g.argc<4 ){ |
| 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | } |
| 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 |
| --- src/tag.c | |
| +++ src/tag.c | |
| @@ -633,14 +633,14 @@ | |
| 633 | char *zUuid; |
| 634 | int dryRun = 0; |
| 635 | const char *zDateOvrd; /* The change time on the control artifact */ |
| 636 | const char *zUserOvrd; /* The user name on the control artifact */ |
| 637 | |
| 638 | db_must_be_within_tree(); |
| 639 | if( find_option("dryrun","n",0)!=0 ) dryRun = TAG_ADD_DRYRUN; |
| 640 | zDateOvrd = find_option("date-override",0,1); |
| 641 | zUserOvrd = find_option("user-override",0,1); |
| 642 | verify_all_options(); |
| 643 | if( g.argc<4 ){ |
| 644 | usage("[OPTIONS] CHECK-IN PARENT ..."); |
| 645 | } |
| 646 | rid = name_to_typed_rid(g.argv[2], "ci"); |
| 647 |
+12
| --- www/env-opts.md | ||
| +++ www/env-opts.md | ||
| @@ -156,10 +156,22 @@ | ||
| 156 | 156 | or global `default-user` setting is not present. The first environment |
| 157 | 157 | variable found in the environment from the list `FOSSIL_USER`, `USER`, |
| 158 | 158 | `LOGNAME`, and `USERNAME` is the user name. If none of those are set, |
| 159 | 159 | then the default user name is "root". See the discussion of Fossil |
| 160 | 160 | Username below for a lot more detail. |
| 161 | + | |
| 162 | + | |
| 163 | +`FOSSIL_SECURITY_LEVEL`: If set to any of the values listed below, | |
| 164 | +additional measures for password security will be enabled (also see | |
| 165 | +[How To Use Encrypted Repositories][encryptedrepos.wiki]): | |
| 166 | + | |
| 167 | +[encryptedrepos.wiki]: /doc/trunk/www/encryptedrepos.wiki | |
| 168 | + | |
| 169 | + * _≥1_ — Do not remember passwords. | |
| 170 | + | |
| 171 | + * _≥2_ — Use a scrambled matrix for password input. | |
| 172 | + | |
| 161 | 173 | |
| 162 | 174 | `FOSSIL_TCL_PATH`: When Tcl stubs support is configured, point to a |
| 163 | 175 | specific file or folder containing the version of Tcl to load at run |
| 164 | 176 | time. |
| 165 | 177 | |
| 166 | 178 |
| --- www/env-opts.md | |
| +++ www/env-opts.md | |
| @@ -156,10 +156,22 @@ | |
| 156 | or global `default-user` setting is not present. The first environment |
| 157 | variable found in the environment from the list `FOSSIL_USER`, `USER`, |
| 158 | `LOGNAME`, and `USERNAME` is the user name. If none of those are set, |
| 159 | then the default user name is "root". See the discussion of Fossil |
| 160 | Username below for a lot more detail. |
| 161 | |
| 162 | `FOSSIL_TCL_PATH`: When Tcl stubs support is configured, point to a |
| 163 | specific file or folder containing the version of Tcl to load at run |
| 164 | time. |
| 165 | |
| 166 |
| --- www/env-opts.md | |
| +++ www/env-opts.md | |
| @@ -156,10 +156,22 @@ | |
| 156 | or global `default-user` setting is not present. The first environment |
| 157 | variable found in the environment from the list `FOSSIL_USER`, `USER`, |
| 158 | `LOGNAME`, and `USERNAME` is the user name. If none of those are set, |
| 159 | then the default user name is "root". See the discussion of Fossil |
| 160 | Username below for a lot more detail. |
| 161 | |
| 162 | |
| 163 | `FOSSIL_SECURITY_LEVEL`: If set to any of the values listed below, |
| 164 | additional measures for password security will be enabled (also see |
| 165 | [How To Use Encrypted Repositories][encryptedrepos.wiki]): |
| 166 | |
| 167 | [encryptedrepos.wiki]: /doc/trunk/www/encryptedrepos.wiki |
| 168 | |
| 169 | * _≥1_ — Do not remember passwords. |
| 170 | |
| 171 | * _≥2_ — Use a scrambled matrix for password input. |
| 172 | |
| 173 | |
| 174 | `FOSSIL_TCL_PATH`: When Tcl stubs support is configured, point to a |
| 175 | specific file or folder containing the version of Tcl to load at run |
| 176 | time. |
| 177 | |
| 178 |
+12
| --- www/env-opts.md | ||
| +++ www/env-opts.md | ||
| @@ -156,10 +156,22 @@ | ||
| 156 | 156 | or global `default-user` setting is not present. The first environment |
| 157 | 157 | variable found in the environment from the list `FOSSIL_USER`, `USER`, |
| 158 | 158 | `LOGNAME`, and `USERNAME` is the user name. If none of those are set, |
| 159 | 159 | then the default user name is "root". See the discussion of Fossil |
| 160 | 160 | Username below for a lot more detail. |
| 161 | + | |
| 162 | + | |
| 163 | +`FOSSIL_SECURITY_LEVEL`: If set to any of the values listed below, | |
| 164 | +additional measures for password security will be enabled (also see | |
| 165 | +[How To Use Encrypted Repositories][encryptedrepos.wiki]): | |
| 166 | + | |
| 167 | +[encryptedrepos.wiki]: /doc/trunk/www/encryptedrepos.wiki | |
| 168 | + | |
| 169 | + * _≥1_ — Do not remember passwords. | |
| 170 | + | |
| 171 | + * _≥2_ — Use a scrambled matrix for password input. | |
| 172 | + | |
| 161 | 173 | |
| 162 | 174 | `FOSSIL_TCL_PATH`: When Tcl stubs support is configured, point to a |
| 163 | 175 | specific file or folder containing the version of Tcl to load at run |
| 164 | 176 | time. |
| 165 | 177 | |
| 166 | 178 |
| --- www/env-opts.md | |
| +++ www/env-opts.md | |
| @@ -156,10 +156,22 @@ | |
| 156 | or global `default-user` setting is not present. The first environment |
| 157 | variable found in the environment from the list `FOSSIL_USER`, `USER`, |
| 158 | `LOGNAME`, and `USERNAME` is the user name. If none of those are set, |
| 159 | then the default user name is "root". See the discussion of Fossil |
| 160 | Username below for a lot more detail. |
| 161 | |
| 162 | `FOSSIL_TCL_PATH`: When Tcl stubs support is configured, point to a |
| 163 | specific file or folder containing the version of Tcl to load at run |
| 164 | time. |
| 165 | |
| 166 |
| --- www/env-opts.md | |
| +++ www/env-opts.md | |
| @@ -156,10 +156,22 @@ | |
| 156 | or global `default-user` setting is not present. The first environment |
| 157 | variable found in the environment from the list `FOSSIL_USER`, `USER`, |
| 158 | `LOGNAME`, and `USERNAME` is the user name. If none of those are set, |
| 159 | then the default user name is "root". See the discussion of Fossil |
| 160 | Username below for a lot more detail. |
| 161 | |
| 162 | |
| 163 | `FOSSIL_SECURITY_LEVEL`: If set to any of the values listed below, |
| 164 | additional measures for password security will be enabled (also see |
| 165 | [How To Use Encrypted Repositories][encryptedrepos.wiki]): |
| 166 | |
| 167 | [encryptedrepos.wiki]: /doc/trunk/www/encryptedrepos.wiki |
| 168 | |
| 169 | * _≥1_ — Do not remember passwords. |
| 170 | |
| 171 | * _≥2_ — Use a scrambled matrix for password input. |
| 172 | |
| 173 | |
| 174 | `FOSSIL_TCL_PATH`: When Tcl stubs support is configured, point to a |
| 175 | specific file or folder containing the version of Tcl to load at run |
| 176 | time. |
| 177 | |
| 178 |