Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fixed omitsign discrepancies. Windows version now looks for USERNAME instead of USER when creating new database. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a21806dcf394d6b99c775fa5f3daccab |
| User & Date: | jnc 2007-10-07 14:38:54.000 |
Context
|
2007-10-09
| ||
| 02:35 | Refinements to the timeline for giving better information about wiki pages. ... (check-in: dfea940da8 user: drh tags: trunk) | |
|
2007-10-07
| ||
| 14:38 | Fixed omitsign discrepancies. Windows version now looks for USERNAME instead of USER when creating new database. ... (check-in: a21806dcf3 user: jnc tags: trunk) | |
|
2007-10-06
| ||
| 17:10 | Enforce well-formedness constraints on wiki pagenames. ... (check-in: 488afb9746 user: drh tags: trunk) | |
Changes
Changes to src/branch.c.
| ︙ | ︙ | |||
35 36 37 38 39 40 41 |
Blob manifest;
Blob mcksum; /* Self-checksum on the manifest */
Blob cksum1, cksum2; /* Before and after commit checksums */
Blob cksum1b; /* Checksum recorded in the manifest */
noSign = find_option("nosign","",0)!=0;
db_must_be_within_tree();
| | | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
Blob manifest;
Blob mcksum; /* Self-checksum on the manifest */
Blob cksum1, cksum2; /* Before and after commit checksums */
Blob cksum1b; /* Checksum recorded in the manifest */
noSign = find_option("nosign","",0)!=0;
db_must_be_within_tree();
noSign = db_get_int("omitsign", 0)|noSign;
zColor = find_option("bgcolor","c",1);
verify_all_options();
/* fossil branch new name */
if( g.argc<3 ){
usage("branch new ?-bgcolor COLOR BRANCH-NAME");
|
| ︙ | ︙ |
Changes to src/checkin.c.
| ︙ | ︙ | |||
333 334 335 336 337 338 339 |
Blob cksum1, cksum2; /* Before and after commit checksums */
Blob cksum1b; /* Checksum recorded in the manifest */
noSign = find_option("nosign","",0)!=0;
zComment = find_option("comment","m",1);
forceFlag = find_option("force", "r", 0)!=0;
db_must_be_within_tree();
| | | 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 |
Blob cksum1, cksum2; /* Before and after commit checksums */
Blob cksum1b; /* Checksum recorded in the manifest */
noSign = find_option("nosign","",0)!=0;
zComment = find_option("comment","m",1);
forceFlag = find_option("force", "r", 0)!=0;
db_must_be_within_tree();
noSign = db_get_int("omitsign", 0)|noSign;
verify_all_options();
/*
** Autosync if requested.
*/
autosync(1);
|
| ︙ | ︙ |
Changes to src/db.c.
| ︙ | ︙ | |||
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 |
);
}
if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0);
if( !db_is_global("safemerge") ) db_set_int("safemerge", 0, 0);
if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0);
zUser = db_get("default-user", 0);
if( zUser==0 ){
zUser = getenv("USER");
}
if( zUser==0 ){
zUser = "root";
}
db_multi_exec(
"INSERT INTO user(login, pw, cap, info)"
"VALUES(%Q,'','s','')", zUser
| > > > > | 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 |
);
}
if( !db_is_global("autosync") ) db_set_int("autosync", 1, 0);
if( !db_is_global("safemerge") ) db_set_int("safemerge", 0, 0);
if( !db_is_global("localauth") ) db_set_int("localauth", 0, 0);
zUser = db_get("default-user", 0);
if( zUser==0 ){
#ifdef __MINGW32__
zUser = getenv("USERNAME");
#else
zUser = getenv("USER");
#endif
}
if( zUser==0 ){
zUser = "root";
}
db_multi_exec(
"INSERT INTO user(login, pw, cap, info)"
"VALUES(%Q,'','s','')", zUser
|
| ︙ | ︙ | |||
970 971 972 973 974 975 976 | ** a property name, show the value of that property. With a value ** argument, change the property for the current repository. ** ** autosync If enabled, automatically pull prior to ** commit or update and automatically push ** after commit or tag or branch creation. ** | | | | | 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 |
** a property name, show the value of that property. With a value
** argument, change the property for the current repository.
**
** autosync If enabled, automatically pull prior to
** commit or update and automatically push
** after commit or tag or branch creation.
**
** clearsign Command used to clear-sign manifests at check-in.
** The default is "gpg --clearsign -o ".
**
** editor Text editor command used for check-in comments.
**
** localauth If enabled, require that HTTP connections from
** 127.0.0.1 be authenticated by password. If
** false, all HTTP requests from localhost have
** unrestricted access to the repository.
**
** omitsign When enabled, fossil will not attempt to sign any
** commit with gpg. All commits will be unsigned.
**
** safemerge If enabled, when commit will cause a fork, the
** commit will not abort with warning. Also update
** will not be allowed if local changes exist.
*/
void setting_cmd(void){
static const char *azName[] = {
"autosync",
"clearsign",
"editor",
"localauth",
"omitsign",
"safemerge",
};
int i;
int globalFlag = find_option("global","g",0)!=0;
db_find_and_open_repository();
if( g.argc==2 ){
for(i=0; i<sizeof(azName)/sizeof(azName[0]); i++){
|
| ︙ | ︙ |