Fossil SCM
Remove spacings at end-of-line. No change in any functionality.
Commit
080ab8cb0a1aab44b10e60a3b5bd127acea70d1c
Parent
3b2dcd937899ad6…
17 files changed
+5
-5
+6
-6
+1
-1
+4
-4
+1
-1
+4
-4
+4
-4
+5
-5
+5
-5
+1
-1
+6
-6
+1
-1
+2
-2
+1
-1
+5
-5
+17
-17
+2
-2
+5
-5
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -213,11 +213,11 @@ | ||
| 213 | 213 | int showHdr = find_option("header",0,0)!=0; |
| 214 | 214 | int verboseFlag = find_option("verbose","v",0)!=0; |
| 215 | 215 | int cwdRelative = 0; |
| 216 | 216 | db_must_be_within_tree(); |
| 217 | 217 | cwdRelative = determine_cwd_relative_option(); |
| 218 | - | |
| 218 | + | |
| 219 | 219 | /* We should be done with options.. */ |
| 220 | 220 | verify_all_options(); |
| 221 | 221 | |
| 222 | 222 | print_changes(useSha1sum, showHdr, verboseFlag, cwdRelative); |
| 223 | 223 | } |
| @@ -249,11 +249,11 @@ | ||
| 249 | 249 | int verboseFlag = find_option("verbose","v",0)!=0; |
| 250 | 250 | int cwdRelative = 0; |
| 251 | 251 | db_must_be_within_tree(); |
| 252 | 252 | /* 012345678901234 */ |
| 253 | 253 | cwdRelative = determine_cwd_relative_option(); |
| 254 | - | |
| 254 | + | |
| 255 | 255 | /* We should be done with options.. */ |
| 256 | 256 | verify_all_options(); |
| 257 | 257 | |
| 258 | 258 | fossil_print("repository: %s\n", db_repository_filename()); |
| 259 | 259 | fossil_print("local-root: %s\n", g.zLocalRoot); |
| @@ -262,11 +262,11 @@ | ||
| 262 | 262 | } |
| 263 | 263 | vid = db_lget_int("checkout", 0); |
| 264 | 264 | if( vid ){ |
| 265 | 265 | show_common_info(vid, "checkout:", 1, 1); |
| 266 | 266 | } |
| 267 | - db_record_repository_filename(0); | |
| 267 | + db_record_repository_filename(0); | |
| 268 | 268 | print_changes(useSha1sum, showHdr, verboseFlag, cwdRelative); |
| 269 | 269 | } |
| 270 | 270 | |
| 271 | 271 | /* |
| 272 | 272 | ** COMMAND: ls |
| @@ -480,11 +480,11 @@ | ||
| 480 | 480 | const char *zPathname, *zDisplayName; |
| 481 | 481 | |
| 482 | 482 | if( find_option("temp",0,0)!=0 ) scanFlags |= SCAN_TEMP; |
| 483 | 483 | db_must_be_within_tree(); |
| 484 | 484 | cwdRelative = determine_cwd_relative_option(); |
| 485 | - | |
| 485 | + | |
| 486 | 486 | /* We should be done with options.. */ |
| 487 | 487 | verify_all_options(); |
| 488 | 488 | |
| 489 | 489 | if( zIgnoreFlag==0 ){ |
| 490 | 490 | zIgnoreFlag = db_get("ignore-glob", 0); |
| @@ -1728,11 +1728,11 @@ | ||
| 1728 | 1728 | |
| 1729 | 1729 | /* |
| 1730 | 1730 | ** Do not allow a commit against a closed leaf unless the commit |
| 1731 | 1731 | ** ends up on a different branch. |
| 1732 | 1732 | */ |
| 1733 | - if( | |
| 1733 | + if( | |
| 1734 | 1734 | /* parent checkin has the "closed" tag... */ |
| 1735 | 1735 | db_exists("SELECT 1 FROM tagxref" |
| 1736 | 1736 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 1737 | 1737 | TAG_CLOSED, vid) |
| 1738 | 1738 | /* ... and the new checkin has no --branch option or the --branch |
| 1739 | 1739 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -213,11 +213,11 @@ | |
| 213 | int showHdr = find_option("header",0,0)!=0; |
| 214 | int verboseFlag = find_option("verbose","v",0)!=0; |
| 215 | int cwdRelative = 0; |
| 216 | db_must_be_within_tree(); |
| 217 | cwdRelative = determine_cwd_relative_option(); |
| 218 | |
| 219 | /* We should be done with options.. */ |
| 220 | verify_all_options(); |
| 221 | |
| 222 | print_changes(useSha1sum, showHdr, verboseFlag, cwdRelative); |
| 223 | } |
| @@ -249,11 +249,11 @@ | |
| 249 | int verboseFlag = find_option("verbose","v",0)!=0; |
| 250 | int cwdRelative = 0; |
| 251 | db_must_be_within_tree(); |
| 252 | /* 012345678901234 */ |
| 253 | cwdRelative = determine_cwd_relative_option(); |
| 254 | |
| 255 | /* We should be done with options.. */ |
| 256 | verify_all_options(); |
| 257 | |
| 258 | fossil_print("repository: %s\n", db_repository_filename()); |
| 259 | fossil_print("local-root: %s\n", g.zLocalRoot); |
| @@ -262,11 +262,11 @@ | |
| 262 | } |
| 263 | vid = db_lget_int("checkout", 0); |
| 264 | if( vid ){ |
| 265 | show_common_info(vid, "checkout:", 1, 1); |
| 266 | } |
| 267 | db_record_repository_filename(0); |
| 268 | print_changes(useSha1sum, showHdr, verboseFlag, cwdRelative); |
| 269 | } |
| 270 | |
| 271 | /* |
| 272 | ** COMMAND: ls |
| @@ -480,11 +480,11 @@ | |
| 480 | const char *zPathname, *zDisplayName; |
| 481 | |
| 482 | if( find_option("temp",0,0)!=0 ) scanFlags |= SCAN_TEMP; |
| 483 | db_must_be_within_tree(); |
| 484 | cwdRelative = determine_cwd_relative_option(); |
| 485 | |
| 486 | /* We should be done with options.. */ |
| 487 | verify_all_options(); |
| 488 | |
| 489 | if( zIgnoreFlag==0 ){ |
| 490 | zIgnoreFlag = db_get("ignore-glob", 0); |
| @@ -1728,11 +1728,11 @@ | |
| 1728 | |
| 1729 | /* |
| 1730 | ** Do not allow a commit against a closed leaf unless the commit |
| 1731 | ** ends up on a different branch. |
| 1732 | */ |
| 1733 | if( |
| 1734 | /* parent checkin has the "closed" tag... */ |
| 1735 | db_exists("SELECT 1 FROM tagxref" |
| 1736 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 1737 | TAG_CLOSED, vid) |
| 1738 | /* ... and the new checkin has no --branch option or the --branch |
| 1739 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -213,11 +213,11 @@ | |
| 213 | int showHdr = find_option("header",0,0)!=0; |
| 214 | int verboseFlag = find_option("verbose","v",0)!=0; |
| 215 | int cwdRelative = 0; |
| 216 | db_must_be_within_tree(); |
| 217 | cwdRelative = determine_cwd_relative_option(); |
| 218 | |
| 219 | /* We should be done with options.. */ |
| 220 | verify_all_options(); |
| 221 | |
| 222 | print_changes(useSha1sum, showHdr, verboseFlag, cwdRelative); |
| 223 | } |
| @@ -249,11 +249,11 @@ | |
| 249 | int verboseFlag = find_option("verbose","v",0)!=0; |
| 250 | int cwdRelative = 0; |
| 251 | db_must_be_within_tree(); |
| 252 | /* 012345678901234 */ |
| 253 | cwdRelative = determine_cwd_relative_option(); |
| 254 | |
| 255 | /* We should be done with options.. */ |
| 256 | verify_all_options(); |
| 257 | |
| 258 | fossil_print("repository: %s\n", db_repository_filename()); |
| 259 | fossil_print("local-root: %s\n", g.zLocalRoot); |
| @@ -262,11 +262,11 @@ | |
| 262 | } |
| 263 | vid = db_lget_int("checkout", 0); |
| 264 | if( vid ){ |
| 265 | show_common_info(vid, "checkout:", 1, 1); |
| 266 | } |
| 267 | db_record_repository_filename(0); |
| 268 | print_changes(useSha1sum, showHdr, verboseFlag, cwdRelative); |
| 269 | } |
| 270 | |
| 271 | /* |
| 272 | ** COMMAND: ls |
| @@ -480,11 +480,11 @@ | |
| 480 | const char *zPathname, *zDisplayName; |
| 481 | |
| 482 | if( find_option("temp",0,0)!=0 ) scanFlags |= SCAN_TEMP; |
| 483 | db_must_be_within_tree(); |
| 484 | cwdRelative = determine_cwd_relative_option(); |
| 485 | |
| 486 | /* We should be done with options.. */ |
| 487 | verify_all_options(); |
| 488 | |
| 489 | if( zIgnoreFlag==0 ){ |
| 490 | zIgnoreFlag = db_get("ignore-glob", 0); |
| @@ -1728,11 +1728,11 @@ | |
| 1728 | |
| 1729 | /* |
| 1730 | ** Do not allow a commit against a closed leaf unless the commit |
| 1731 | ** ends up on a different branch. |
| 1732 | */ |
| 1733 | if( |
| 1734 | /* parent checkin has the "closed" tag... */ |
| 1735 | db_exists("SELECT 1 FROM tagxref" |
| 1736 | " WHERE tagid=%d AND rid=%d AND tagtype>0", |
| 1737 | TAG_CLOSED, vid) |
| 1738 | /* ... and the new checkin has no --branch option or the --branch |
| 1739 |
+6
-6
| --- src/clone.c | ||
| +++ src/clone.c | ||
| @@ -83,11 +83,11 @@ | ||
| 83 | 83 | ** COMMAND: clone |
| 84 | 84 | ** |
| 85 | 85 | ** Usage: %fossil clone ?OPTIONS? URL FILENAME |
| 86 | 86 | ** |
| 87 | 87 | ** Make a clone of a repository specified by URL in the local |
| 88 | -** file named FILENAME. | |
| 88 | +** file named FILENAME. | |
| 89 | 89 | ** |
| 90 | 90 | ** URL must be in one of the following form: ([...] mean optional) |
| 91 | 91 | ** HTTP/HTTPS protocol: |
| 92 | 92 | ** http[s]://[userid[:password]@]host[:port][/path] |
| 93 | 93 | ** |
| @@ -96,21 +96,21 @@ | ||
| 96 | 96 | ** [?fossil=path/to/fossil.exe] |
| 97 | 97 | ** |
| 98 | 98 | ** Filesystem: |
| 99 | 99 | ** [file://]path/to/repo.fossil |
| 100 | 100 | ** |
| 101 | -** Note: For ssh and filesystem, path must have an extra leading | |
| 101 | +** Note: For ssh and filesystem, path must have an extra leading | |
| 102 | 102 | ** '/' to use an absolute path. |
| 103 | 103 | ** |
| 104 | 104 | ** By default, your current login name is used to create the default |
| 105 | 105 | ** admin user. This can be overridden using the -A|--admin-user |
| 106 | 106 | ** parameter. |
| 107 | 107 | ** |
| 108 | 108 | ** Options: |
| 109 | 109 | ** --admin-user|-A USERNAME Make USERNAME the administrator |
| 110 | 110 | ** --once Don't save url. |
| 111 | -** --private Also clone private branches | |
| 111 | +** --private Also clone private branches | |
| 112 | 112 | ** --ssl-identity=filename Use the SSL identity if requested by the server |
| 113 | 113 | ** --ssh-command|-c 'command' Use this SSH command |
| 114 | 114 | ** --httpauth|-B 'user:pass' Add HTTP Basic Authorization to requests |
| 115 | 115 | ** --verbose Show more statistics in output |
| 116 | 116 | ** |
| @@ -130,11 +130,11 @@ | ||
| 130 | 130 | if( find_option("verbose",0,0)!=0) syncFlags |= SYNC_VERBOSE; |
| 131 | 131 | zHttpAuth = find_option("httpauth","B",1); |
| 132 | 132 | zDefaultUser = find_option("admin-user","A",1); |
| 133 | 133 | clone_ssh_find_options(); |
| 134 | 134 | url_proxy_options(); |
| 135 | - | |
| 135 | + | |
| 136 | 136 | /* We should be done with options.. */ |
| 137 | 137 | verify_all_options(); |
| 138 | 138 | |
| 139 | 139 | if( g.argc < 4 ){ |
| 140 | 140 | usage("?OPTIONS? FILE-OR-URL NEW-REPOSITORY"); |
| @@ -210,11 +210,11 @@ | ||
| 210 | 210 | db_end_transaction(0); |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | 213 | /* |
| 214 | 214 | ** If user chooses to use HTTP Authentication over unencrypted HTTP, |
| 215 | -** remember decision. Otherwise, if the URL is being changed and no | |
| 215 | +** remember decision. Otherwise, if the URL is being changed and no | |
| 216 | 216 | ** preference has been indicated, err on the safe side and revert the |
| 217 | 217 | ** decision. Set the global preference if the URL is not being changed. |
| 218 | 218 | */ |
| 219 | 219 | void remember_or_get_http_auth( |
| 220 | 220 | const char *zHttpAuth, /* Credentials in the form "user:password" */ |
| @@ -269,13 +269,13 @@ | ||
| 269 | 269 | g.zSshCmd = mprintf("%s", zSshCmd); |
| 270 | 270 | } |
| 271 | 271 | } |
| 272 | 272 | |
| 273 | 273 | /* |
| 274 | -** Set SSH options discovered in global variables (set from command line | |
| 274 | +** Set SSH options discovered in global variables (set from command line | |
| 275 | 275 | ** options). |
| 276 | 276 | */ |
| 277 | 277 | void clone_ssh_db_set_options(void){ |
| 278 | 278 | if( g.zSshCmd && g.zSshCmd[0] ){ |
| 279 | 279 | db_set("ssh-command", g.zSshCmd, 0); |
| 280 | 280 | } |
| 281 | 281 | } |
| 282 | 282 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -83,11 +83,11 @@ | |
| 83 | ** COMMAND: clone |
| 84 | ** |
| 85 | ** Usage: %fossil clone ?OPTIONS? URL FILENAME |
| 86 | ** |
| 87 | ** Make a clone of a repository specified by URL in the local |
| 88 | ** file named FILENAME. |
| 89 | ** |
| 90 | ** URL must be in one of the following form: ([...] mean optional) |
| 91 | ** HTTP/HTTPS protocol: |
| 92 | ** http[s]://[userid[:password]@]host[:port][/path] |
| 93 | ** |
| @@ -96,21 +96,21 @@ | |
| 96 | ** [?fossil=path/to/fossil.exe] |
| 97 | ** |
| 98 | ** Filesystem: |
| 99 | ** [file://]path/to/repo.fossil |
| 100 | ** |
| 101 | ** Note: For ssh and filesystem, path must have an extra leading |
| 102 | ** '/' to use an absolute path. |
| 103 | ** |
| 104 | ** By default, your current login name is used to create the default |
| 105 | ** admin user. This can be overridden using the -A|--admin-user |
| 106 | ** parameter. |
| 107 | ** |
| 108 | ** Options: |
| 109 | ** --admin-user|-A USERNAME Make USERNAME the administrator |
| 110 | ** --once Don't save url. |
| 111 | ** --private Also clone private branches |
| 112 | ** --ssl-identity=filename Use the SSL identity if requested by the server |
| 113 | ** --ssh-command|-c 'command' Use this SSH command |
| 114 | ** --httpauth|-B 'user:pass' Add HTTP Basic Authorization to requests |
| 115 | ** --verbose Show more statistics in output |
| 116 | ** |
| @@ -130,11 +130,11 @@ | |
| 130 | if( find_option("verbose",0,0)!=0) syncFlags |= SYNC_VERBOSE; |
| 131 | zHttpAuth = find_option("httpauth","B",1); |
| 132 | zDefaultUser = find_option("admin-user","A",1); |
| 133 | clone_ssh_find_options(); |
| 134 | url_proxy_options(); |
| 135 | |
| 136 | /* We should be done with options.. */ |
| 137 | verify_all_options(); |
| 138 | |
| 139 | if( g.argc < 4 ){ |
| 140 | usage("?OPTIONS? FILE-OR-URL NEW-REPOSITORY"); |
| @@ -210,11 +210,11 @@ | |
| 210 | db_end_transaction(0); |
| 211 | } |
| 212 | |
| 213 | /* |
| 214 | ** If user chooses to use HTTP Authentication over unencrypted HTTP, |
| 215 | ** remember decision. Otherwise, if the URL is being changed and no |
| 216 | ** preference has been indicated, err on the safe side and revert the |
| 217 | ** decision. Set the global preference if the URL is not being changed. |
| 218 | */ |
| 219 | void remember_or_get_http_auth( |
| 220 | const char *zHttpAuth, /* Credentials in the form "user:password" */ |
| @@ -269,13 +269,13 @@ | |
| 269 | g.zSshCmd = mprintf("%s", zSshCmd); |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | /* |
| 274 | ** Set SSH options discovered in global variables (set from command line |
| 275 | ** options). |
| 276 | */ |
| 277 | void clone_ssh_db_set_options(void){ |
| 278 | if( g.zSshCmd && g.zSshCmd[0] ){ |
| 279 | db_set("ssh-command", g.zSshCmd, 0); |
| 280 | } |
| 281 | } |
| 282 |
| --- src/clone.c | |
| +++ src/clone.c | |
| @@ -83,11 +83,11 @@ | |
| 83 | ** COMMAND: clone |
| 84 | ** |
| 85 | ** Usage: %fossil clone ?OPTIONS? URL FILENAME |
| 86 | ** |
| 87 | ** Make a clone of a repository specified by URL in the local |
| 88 | ** file named FILENAME. |
| 89 | ** |
| 90 | ** URL must be in one of the following form: ([...] mean optional) |
| 91 | ** HTTP/HTTPS protocol: |
| 92 | ** http[s]://[userid[:password]@]host[:port][/path] |
| 93 | ** |
| @@ -96,21 +96,21 @@ | |
| 96 | ** [?fossil=path/to/fossil.exe] |
| 97 | ** |
| 98 | ** Filesystem: |
| 99 | ** [file://]path/to/repo.fossil |
| 100 | ** |
| 101 | ** Note: For ssh and filesystem, path must have an extra leading |
| 102 | ** '/' to use an absolute path. |
| 103 | ** |
| 104 | ** By default, your current login name is used to create the default |
| 105 | ** admin user. This can be overridden using the -A|--admin-user |
| 106 | ** parameter. |
| 107 | ** |
| 108 | ** Options: |
| 109 | ** --admin-user|-A USERNAME Make USERNAME the administrator |
| 110 | ** --once Don't save url. |
| 111 | ** --private Also clone private branches |
| 112 | ** --ssl-identity=filename Use the SSL identity if requested by the server |
| 113 | ** --ssh-command|-c 'command' Use this SSH command |
| 114 | ** --httpauth|-B 'user:pass' Add HTTP Basic Authorization to requests |
| 115 | ** --verbose Show more statistics in output |
| 116 | ** |
| @@ -130,11 +130,11 @@ | |
| 130 | if( find_option("verbose",0,0)!=0) syncFlags |= SYNC_VERBOSE; |
| 131 | zHttpAuth = find_option("httpauth","B",1); |
| 132 | zDefaultUser = find_option("admin-user","A",1); |
| 133 | clone_ssh_find_options(); |
| 134 | url_proxy_options(); |
| 135 | |
| 136 | /* We should be done with options.. */ |
| 137 | verify_all_options(); |
| 138 | |
| 139 | if( g.argc < 4 ){ |
| 140 | usage("?OPTIONS? FILE-OR-URL NEW-REPOSITORY"); |
| @@ -210,11 +210,11 @@ | |
| 210 | db_end_transaction(0); |
| 211 | } |
| 212 | |
| 213 | /* |
| 214 | ** If user chooses to use HTTP Authentication over unencrypted HTTP, |
| 215 | ** remember decision. Otherwise, if the URL is being changed and no |
| 216 | ** preference has been indicated, err on the safe side and revert the |
| 217 | ** decision. Set the global preference if the URL is not being changed. |
| 218 | */ |
| 219 | void remember_or_get_http_auth( |
| 220 | const char *zHttpAuth, /* Credentials in the form "user:password" */ |
| @@ -269,13 +269,13 @@ | |
| 269 | g.zSshCmd = mprintf("%s", zSshCmd); |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | /* |
| 274 | ** Set SSH options discovered in global variables (set from command line |
| 275 | ** options). |
| 276 | */ |
| 277 | void clone_ssh_db_set_options(void){ |
| 278 | if( g.zSshCmd && g.zSshCmd[0] ){ |
| 279 | db_set("ssh-command", g.zSshCmd, 0); |
| 280 | } |
| 281 | } |
| 282 |
+1
-1
| --- src/deltacmd.c | ||
| +++ src/deltacmd.c | ||
| @@ -17,11 +17,11 @@ | ||
| 17 | 17 | ** |
| 18 | 18 | ** This module implements the interface to the delta generator. |
| 19 | 19 | */ |
| 20 | 20 | #include "config.h" |
| 21 | 21 | #include "deltacmd.h" |
| 22 | - | |
| 22 | + | |
| 23 | 23 | /* |
| 24 | 24 | ** Create a delta that describes the change from pOriginal to pTarget |
| 25 | 25 | ** and put that delta in pDelta. The pDelta blob is assumed to be |
| 26 | 26 | ** uninitialized. |
| 27 | 27 | */ |
| 28 | 28 |
| --- src/deltacmd.c | |
| +++ src/deltacmd.c | |
| @@ -17,11 +17,11 @@ | |
| 17 | ** |
| 18 | ** This module implements the interface to the delta generator. |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "deltacmd.h" |
| 22 | |
| 23 | /* |
| 24 | ** Create a delta that describes the change from pOriginal to pTarget |
| 25 | ** and put that delta in pDelta. The pDelta blob is assumed to be |
| 26 | ** uninitialized. |
| 27 | */ |
| 28 |
| --- src/deltacmd.c | |
| +++ src/deltacmd.c | |
| @@ -17,11 +17,11 @@ | |
| 17 | ** |
| 18 | ** This module implements the interface to the delta generator. |
| 19 | */ |
| 20 | #include "config.h" |
| 21 | #include "deltacmd.h" |
| 22 | |
| 23 | /* |
| 24 | ** Create a delta that describes the change from pOriginal to pTarget |
| 25 | ** and put that delta in pDelta. The pDelta blob is assumed to be |
| 26 | ** uninitialized. |
| 27 | */ |
| 28 |
+4
-4
| --- src/export.c | ||
| +++ src/export.c | ||
| @@ -104,18 +104,18 @@ | ||
| 104 | 104 | ** |
| 105 | 105 | ** Usage: %fossil export --git ?OPTIONS? ?REPOSITORY? |
| 106 | 106 | ** |
| 107 | 107 | ** Write an export of all check-ins to standard output. The export is |
| 108 | 108 | ** written in the git-fast-export file format assuming the --git option is |
| 109 | -** provided. The git-fast-export format is currently the only VCS | |
| 109 | +** provided. The git-fast-export format is currently the only VCS | |
| 110 | 110 | ** interchange format supported, though other formats may be added in |
| 111 | 111 | ** the future. |
| 112 | 112 | ** |
| 113 | 113 | ** Run this command within a checkout. Or use the -R or --repository |
| 114 | 114 | ** option to specify a Fossil repository to be exported. |
| 115 | 115 | ** |
| 116 | -** Only check-ins are exported using --git. Git does not support tickets | |
| 116 | +** Only check-ins are exported using --git. Git does not support tickets | |
| 117 | 117 | ** or wiki or events or attachments, so none of those are exported. |
| 118 | 118 | ** |
| 119 | 119 | ** If the "--import-marks FILE" option is used, it contains a list of |
| 120 | 120 | ** rids to skip. |
| 121 | 121 | ** |
| @@ -124,11 +124,11 @@ | ||
| 124 | 124 | ** |
| 125 | 125 | ** Options: |
| 126 | 126 | ** --export-marks FILE export rids of exported data to FILE |
| 127 | 127 | ** --import-marks FILE read rids of data to ignore from FILE |
| 128 | 128 | ** --repository|-R REPOSITORY export the given REPOSITORY |
| 129 | -** | |
| 129 | +** | |
| 130 | 130 | ** See also: import |
| 131 | 131 | */ |
| 132 | 132 | void export_cmd(void){ |
| 133 | 133 | Stmt q, q2, q3; |
| 134 | 134 | int i; |
| @@ -179,11 +179,11 @@ | ||
| 179 | 179 | db_finalize(&qc); |
| 180 | 180 | fclose(f); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | /* Step 1: Generate "blob" records for every artifact that is part |
| 184 | - ** of a check-in | |
| 184 | + ** of a check-in | |
| 185 | 185 | */ |
| 186 | 186 | fossil_binary_mode(stdout); |
| 187 | 187 | db_multi_exec("CREATE TEMP TABLE newblob(rid INTEGER KEY, srcid INTEGER)"); |
| 188 | 188 | db_multi_exec("CREATE INDEX newblob_src ON newblob(srcid)"); |
| 189 | 189 | db_multi_exec( |
| 190 | 190 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -104,18 +104,18 @@ | |
| 104 | ** |
| 105 | ** Usage: %fossil export --git ?OPTIONS? ?REPOSITORY? |
| 106 | ** |
| 107 | ** Write an export of all check-ins to standard output. The export is |
| 108 | ** written in the git-fast-export file format assuming the --git option is |
| 109 | ** provided. The git-fast-export format is currently the only VCS |
| 110 | ** interchange format supported, though other formats may be added in |
| 111 | ** the future. |
| 112 | ** |
| 113 | ** Run this command within a checkout. Or use the -R or --repository |
| 114 | ** option to specify a Fossil repository to be exported. |
| 115 | ** |
| 116 | ** Only check-ins are exported using --git. Git does not support tickets |
| 117 | ** or wiki or events or attachments, so none of those are exported. |
| 118 | ** |
| 119 | ** If the "--import-marks FILE" option is used, it contains a list of |
| 120 | ** rids to skip. |
| 121 | ** |
| @@ -124,11 +124,11 @@ | |
| 124 | ** |
| 125 | ** Options: |
| 126 | ** --export-marks FILE export rids of exported data to FILE |
| 127 | ** --import-marks FILE read rids of data to ignore from FILE |
| 128 | ** --repository|-R REPOSITORY export the given REPOSITORY |
| 129 | ** |
| 130 | ** See also: import |
| 131 | */ |
| 132 | void export_cmd(void){ |
| 133 | Stmt q, q2, q3; |
| 134 | int i; |
| @@ -179,11 +179,11 @@ | |
| 179 | db_finalize(&qc); |
| 180 | fclose(f); |
| 181 | } |
| 182 | |
| 183 | /* Step 1: Generate "blob" records for every artifact that is part |
| 184 | ** of a check-in |
| 185 | */ |
| 186 | fossil_binary_mode(stdout); |
| 187 | db_multi_exec("CREATE TEMP TABLE newblob(rid INTEGER KEY, srcid INTEGER)"); |
| 188 | db_multi_exec("CREATE INDEX newblob_src ON newblob(srcid)"); |
| 189 | db_multi_exec( |
| 190 |
| --- src/export.c | |
| +++ src/export.c | |
| @@ -104,18 +104,18 @@ | |
| 104 | ** |
| 105 | ** Usage: %fossil export --git ?OPTIONS? ?REPOSITORY? |
| 106 | ** |
| 107 | ** Write an export of all check-ins to standard output. The export is |
| 108 | ** written in the git-fast-export file format assuming the --git option is |
| 109 | ** provided. The git-fast-export format is currently the only VCS |
| 110 | ** interchange format supported, though other formats may be added in |
| 111 | ** the future. |
| 112 | ** |
| 113 | ** Run this command within a checkout. Or use the -R or --repository |
| 114 | ** option to specify a Fossil repository to be exported. |
| 115 | ** |
| 116 | ** Only check-ins are exported using --git. Git does not support tickets |
| 117 | ** or wiki or events or attachments, so none of those are exported. |
| 118 | ** |
| 119 | ** If the "--import-marks FILE" option is used, it contains a list of |
| 120 | ** rids to skip. |
| 121 | ** |
| @@ -124,11 +124,11 @@ | |
| 124 | ** |
| 125 | ** Options: |
| 126 | ** --export-marks FILE export rids of exported data to FILE |
| 127 | ** --import-marks FILE read rids of data to ignore from FILE |
| 128 | ** --repository|-R REPOSITORY export the given REPOSITORY |
| 129 | ** |
| 130 | ** See also: import |
| 131 | */ |
| 132 | void export_cmd(void){ |
| 133 | Stmt q, q2, q3; |
| 134 | int i; |
| @@ -179,11 +179,11 @@ | |
| 179 | db_finalize(&qc); |
| 180 | fclose(f); |
| 181 | } |
| 182 | |
| 183 | /* Step 1: Generate "blob" records for every artifact that is part |
| 184 | ** of a check-in |
| 185 | */ |
| 186 | fossil_binary_mode(stdout); |
| 187 | db_multi_exec("CREATE TEMP TABLE newblob(rid INTEGER KEY, srcid INTEGER)"); |
| 188 | db_multi_exec("CREATE INDEX newblob_src ON newblob(srcid)"); |
| 189 | db_multi_exec( |
| 190 |
+1
-1
| --- src/finfo.c | ||
| +++ src/finfo.c | ||
| @@ -250,11 +250,11 @@ | ||
| 250 | 250 | int rc; |
| 251 | 251 | Blob content, fname; |
| 252 | 252 | const char *zRev; |
| 253 | 253 | db_find_and_open_repository(0, 0); |
| 254 | 254 | zRev = find_option("r","r",1); |
| 255 | - | |
| 255 | + | |
| 256 | 256 | /* We should be done with options.. */ |
| 257 | 257 | verify_all_options(); |
| 258 | 258 | |
| 259 | 259 | for(i=2; i<g.argc; i++){ |
| 260 | 260 | file_tree_name(g.argv[i], &fname, 1); |
| 261 | 261 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -250,11 +250,11 @@ | |
| 250 | int rc; |
| 251 | Blob content, fname; |
| 252 | const char *zRev; |
| 253 | db_find_and_open_repository(0, 0); |
| 254 | zRev = find_option("r","r",1); |
| 255 | |
| 256 | /* We should be done with options.. */ |
| 257 | verify_all_options(); |
| 258 | |
| 259 | for(i=2; i<g.argc; i++){ |
| 260 | file_tree_name(g.argv[i], &fname, 1); |
| 261 |
| --- src/finfo.c | |
| +++ src/finfo.c | |
| @@ -250,11 +250,11 @@ | |
| 250 | int rc; |
| 251 | Blob content, fname; |
| 252 | const char *zRev; |
| 253 | db_find_and_open_repository(0, 0); |
| 254 | zRev = find_option("r","r",1); |
| 255 | |
| 256 | /* We should be done with options.. */ |
| 257 | verify_all_options(); |
| 258 | |
| 259 | for(i=2; i<g.argc; i++){ |
| 260 | file_tree_name(g.argv[i], &fname, 1); |
| 261 |
+4
-4
| --- src/foci.c | ||
| +++ src/foci.c | ||
| @@ -25,11 +25,11 @@ | ||
| 25 | 25 | #include <assert.h> |
| 26 | 26 | |
| 27 | 27 | /* |
| 28 | 28 | ** The schema for the virtual table: |
| 29 | 29 | */ |
| 30 | -static const char zFociSchema[] = | |
| 30 | +static const char zFociSchema[] = | |
| 31 | 31 | @ CREATE TABLE files_of_checkin( |
| 32 | 32 | @ checkinID INTEGER, -- RID for the checkin manifest |
| 33 | 33 | @ filename TEXT, -- Name of a file |
| 34 | 34 | @ uuid TEXT, -- SHA1 hash of the file |
| 35 | 35 | @ previousName TEXT, -- Name of the file in previous checkin |
| @@ -139,11 +139,11 @@ | ||
| 139 | 139 | FociCursor *pCsr = (FociCursor *)pCursor; |
| 140 | 140 | return pCsr->pFile==0; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 143 | static int fociFilter( |
| 144 | - sqlite3_vtab_cursor *pCursor, | |
| 144 | + sqlite3_vtab_cursor *pCursor, | |
| 145 | 145 | int idxNum, const char *idxStr, |
| 146 | 146 | int argc, sqlite3_value **argv |
| 147 | 147 | ){ |
| 148 | 148 | FociCursor *pCur = (FociCursor *)pCursor; |
| 149 | 149 | manifest_destroy(pCur->pMan); |
| @@ -158,12 +158,12 @@ | ||
| 158 | 158 | } |
| 159 | 159 | return SQLITE_OK; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | static int fociColumn( |
| 163 | - sqlite3_vtab_cursor *pCursor, | |
| 164 | - sqlite3_context *ctx, | |
| 163 | + sqlite3_vtab_cursor *pCursor, | |
| 164 | + sqlite3_context *ctx, | |
| 165 | 165 | int i |
| 166 | 166 | ){ |
| 167 | 167 | FociCursor *pCsr = (FociCursor *)pCursor; |
| 168 | 168 | switch( i ){ |
| 169 | 169 | case 0: /* checkinID */ |
| 170 | 170 |
| --- src/foci.c | |
| +++ src/foci.c | |
| @@ -25,11 +25,11 @@ | |
| 25 | #include <assert.h> |
| 26 | |
| 27 | /* |
| 28 | ** The schema for the virtual table: |
| 29 | */ |
| 30 | static const char zFociSchema[] = |
| 31 | @ CREATE TABLE files_of_checkin( |
| 32 | @ checkinID INTEGER, -- RID for the checkin manifest |
| 33 | @ filename TEXT, -- Name of a file |
| 34 | @ uuid TEXT, -- SHA1 hash of the file |
| 35 | @ previousName TEXT, -- Name of the file in previous checkin |
| @@ -139,11 +139,11 @@ | |
| 139 | FociCursor *pCsr = (FociCursor *)pCursor; |
| 140 | return pCsr->pFile==0; |
| 141 | } |
| 142 | |
| 143 | static int fociFilter( |
| 144 | sqlite3_vtab_cursor *pCursor, |
| 145 | int idxNum, const char *idxStr, |
| 146 | int argc, sqlite3_value **argv |
| 147 | ){ |
| 148 | FociCursor *pCur = (FociCursor *)pCursor; |
| 149 | manifest_destroy(pCur->pMan); |
| @@ -158,12 +158,12 @@ | |
| 158 | } |
| 159 | return SQLITE_OK; |
| 160 | } |
| 161 | |
| 162 | static int fociColumn( |
| 163 | sqlite3_vtab_cursor *pCursor, |
| 164 | sqlite3_context *ctx, |
| 165 | int i |
| 166 | ){ |
| 167 | FociCursor *pCsr = (FociCursor *)pCursor; |
| 168 | switch( i ){ |
| 169 | case 0: /* checkinID */ |
| 170 |
| --- src/foci.c | |
| +++ src/foci.c | |
| @@ -25,11 +25,11 @@ | |
| 25 | #include <assert.h> |
| 26 | |
| 27 | /* |
| 28 | ** The schema for the virtual table: |
| 29 | */ |
| 30 | static const char zFociSchema[] = |
| 31 | @ CREATE TABLE files_of_checkin( |
| 32 | @ checkinID INTEGER, -- RID for the checkin manifest |
| 33 | @ filename TEXT, -- Name of a file |
| 34 | @ uuid TEXT, -- SHA1 hash of the file |
| 35 | @ previousName TEXT, -- Name of the file in previous checkin |
| @@ -139,11 +139,11 @@ | |
| 139 | FociCursor *pCsr = (FociCursor *)pCursor; |
| 140 | return pCsr->pFile==0; |
| 141 | } |
| 142 | |
| 143 | static int fociFilter( |
| 144 | sqlite3_vtab_cursor *pCursor, |
| 145 | int idxNum, const char *idxStr, |
| 146 | int argc, sqlite3_value **argv |
| 147 | ){ |
| 148 | FociCursor *pCur = (FociCursor *)pCursor; |
| 149 | manifest_destroy(pCur->pMan); |
| @@ -158,12 +158,12 @@ | |
| 158 | } |
| 159 | return SQLITE_OK; |
| 160 | } |
| 161 | |
| 162 | static int fociColumn( |
| 163 | sqlite3_vtab_cursor *pCursor, |
| 164 | sqlite3_context *ctx, |
| 165 | int i |
| 166 | ){ |
| 167 | FociCursor *pCsr = (FociCursor *)pCursor; |
| 168 | switch( i ){ |
| 169 | case 0: /* checkinID */ |
| 170 |
+4
-4
| --- src/fusefs.c | ||
| +++ src/fusefs.c | ||
| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | ** http://www.hwaci.com/drh/ |
| 15 | 15 | ** |
| 16 | 16 | ******************************************************************************* |
| 17 | 17 | ** |
| 18 | 18 | ** This module implements the userspace side of a Fuse Filesystem that |
| 19 | -** contains all check-ins for a fossil repository. | |
| 19 | +** contains all check-ins for a fossil repository. | |
| 20 | 20 | ** |
| 21 | 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | 23 | ** the Fuse Filesystem, of course. |
| 24 | 24 | */ |
| @@ -193,11 +193,11 @@ | ||
| 193 | 193 | int cnt = 0; |
| 194 | 194 | n = fusefs_parse_path(zPath); |
| 195 | 195 | if( n==0 ){ |
| 196 | 196 | filler(buf, ".", NULL, 0); |
| 197 | 197 | filler(buf, "..", NULL, 0); |
| 198 | - filler(buf, "checkins", NULL, 0); | |
| 198 | + filler(buf, "checkins", NULL, 0); | |
| 199 | 199 | return 0; |
| 200 | 200 | } |
| 201 | 201 | if( strcmp(fusefs.az[0],"checkins")!=0 ) return -ENOENT; |
| 202 | 202 | if( n==1 ) return -ENOENT; |
| 203 | 203 | rid = fusefs_name_to_rid(fusefs.az[1]); |
| @@ -275,11 +275,11 @@ | ||
| 275 | 275 | if( offset+size>blob_size(&fusefs.content) ){ |
| 276 | 276 | size = blob_size(&fusefs.content) - offset; |
| 277 | 277 | } |
| 278 | 278 | memcpy(buf, blob_buffer(&fusefs.content)+offset, size); |
| 279 | 279 | return size; |
| 280 | -} | |
| 280 | +} | |
| 281 | 281 | |
| 282 | 282 | static struct fuse_operations fusefs_methods = { |
| 283 | 283 | .getattr = fusefs_getattr, |
| 284 | 284 | .readdir = fusefs_readdir, |
| 285 | 285 | .read = fusefs_read, |
| @@ -293,11 +293,11 @@ | ||
| 293 | 293 | ** |
| 294 | 294 | ** This command uses the Fuse Filesystem to mount a directory at |
| 295 | 295 | ** DIRECTORY that contains the content of all check-ins in the |
| 296 | 296 | ** repository. The names of files are DIRECTORY/checkins/VERSION/PATH |
| 297 | 297 | ** where DIRECTORY is the root of the mount, VERSION is any valid |
| 298 | -** check-in name (examples: "trunk" or "tip" or a tag or any unique | |
| 298 | +** check-in name (examples: "trunk" or "tip" or a tag or any unique | |
| 299 | 299 | ** prefix of a SHA1 hash, etc) and PATH is the pathname of the file |
| 300 | 300 | ** in the checkin. If DIRECTORY does not exist, then an attempt is |
| 301 | 301 | ** made to create it. |
| 302 | 302 | ** |
| 303 | 303 | ** The DIRECTORY/checkins directory is not searchable so one cannot |
| 304 | 304 |
| --- src/fusefs.c | |
| +++ src/fusefs.c | |
| @@ -14,11 +14,11 @@ | |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** This module implements the userspace side of a Fuse Filesystem that |
| 19 | ** contains all check-ins for a fossil repository. |
| 20 | ** |
| 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | ** the Fuse Filesystem, of course. |
| 24 | */ |
| @@ -193,11 +193,11 @@ | |
| 193 | int cnt = 0; |
| 194 | n = fusefs_parse_path(zPath); |
| 195 | if( n==0 ){ |
| 196 | filler(buf, ".", NULL, 0); |
| 197 | filler(buf, "..", NULL, 0); |
| 198 | filler(buf, "checkins", NULL, 0); |
| 199 | return 0; |
| 200 | } |
| 201 | if( strcmp(fusefs.az[0],"checkins")!=0 ) return -ENOENT; |
| 202 | if( n==1 ) return -ENOENT; |
| 203 | rid = fusefs_name_to_rid(fusefs.az[1]); |
| @@ -275,11 +275,11 @@ | |
| 275 | if( offset+size>blob_size(&fusefs.content) ){ |
| 276 | size = blob_size(&fusefs.content) - offset; |
| 277 | } |
| 278 | memcpy(buf, blob_buffer(&fusefs.content)+offset, size); |
| 279 | return size; |
| 280 | } |
| 281 | |
| 282 | static struct fuse_operations fusefs_methods = { |
| 283 | .getattr = fusefs_getattr, |
| 284 | .readdir = fusefs_readdir, |
| 285 | .read = fusefs_read, |
| @@ -293,11 +293,11 @@ | |
| 293 | ** |
| 294 | ** This command uses the Fuse Filesystem to mount a directory at |
| 295 | ** DIRECTORY that contains the content of all check-ins in the |
| 296 | ** repository. The names of files are DIRECTORY/checkins/VERSION/PATH |
| 297 | ** where DIRECTORY is the root of the mount, VERSION is any valid |
| 298 | ** check-in name (examples: "trunk" or "tip" or a tag or any unique |
| 299 | ** prefix of a SHA1 hash, etc) and PATH is the pathname of the file |
| 300 | ** in the checkin. If DIRECTORY does not exist, then an attempt is |
| 301 | ** made to create it. |
| 302 | ** |
| 303 | ** The DIRECTORY/checkins directory is not searchable so one cannot |
| 304 |
| --- src/fusefs.c | |
| +++ src/fusefs.c | |
| @@ -14,11 +14,11 @@ | |
| 14 | ** http://www.hwaci.com/drh/ |
| 15 | ** |
| 16 | ******************************************************************************* |
| 17 | ** |
| 18 | ** This module implements the userspace side of a Fuse Filesystem that |
| 19 | ** contains all check-ins for a fossil repository. |
| 20 | ** |
| 21 | ** This module is a mostly a no-op unless compiled with -DFOSSIL_HAVE_FUSEFS. |
| 22 | ** The FOSSIL_HAVE_FUSEFS should be omitted on systems that lack support for |
| 23 | ** the Fuse Filesystem, of course. |
| 24 | */ |
| @@ -193,11 +193,11 @@ | |
| 193 | int cnt = 0; |
| 194 | n = fusefs_parse_path(zPath); |
| 195 | if( n==0 ){ |
| 196 | filler(buf, ".", NULL, 0); |
| 197 | filler(buf, "..", NULL, 0); |
| 198 | filler(buf, "checkins", NULL, 0); |
| 199 | return 0; |
| 200 | } |
| 201 | if( strcmp(fusefs.az[0],"checkins")!=0 ) return -ENOENT; |
| 202 | if( n==1 ) return -ENOENT; |
| 203 | rid = fusefs_name_to_rid(fusefs.az[1]); |
| @@ -275,11 +275,11 @@ | |
| 275 | if( offset+size>blob_size(&fusefs.content) ){ |
| 276 | size = blob_size(&fusefs.content) - offset; |
| 277 | } |
| 278 | memcpy(buf, blob_buffer(&fusefs.content)+offset, size); |
| 279 | return size; |
| 280 | } |
| 281 | |
| 282 | static struct fuse_operations fusefs_methods = { |
| 283 | .getattr = fusefs_getattr, |
| 284 | .readdir = fusefs_readdir, |
| 285 | .read = fusefs_read, |
| @@ -293,11 +293,11 @@ | |
| 293 | ** |
| 294 | ** This command uses the Fuse Filesystem to mount a directory at |
| 295 | ** DIRECTORY that contains the content of all check-ins in the |
| 296 | ** repository. The names of files are DIRECTORY/checkins/VERSION/PATH |
| 297 | ** where DIRECTORY is the root of the mount, VERSION is any valid |
| 298 | ** check-in name (examples: "trunk" or "tip" or a tag or any unique |
| 299 | ** prefix of a SHA1 hash, etc) and PATH is the pathname of the file |
| 300 | ** in the checkin. If DIRECTORY does not exist, then an attempt is |
| 301 | ** made to create it. |
| 302 | ** |
| 303 | ** The DIRECTORY/checkins directory is not searchable so one cannot |
| 304 |
+5
-5
| --- src/graph.c | ||
| +++ src/graph.c | ||
| @@ -38,11 +38,11 @@ | ||
| 38 | 38 | char *zBgClr; /* Background Color */ |
| 39 | 39 | char zUuid[41]; /* Check-in for file ID */ |
| 40 | 40 | |
| 41 | 41 | GraphRow *pNext; /* Next row down in the list of all rows */ |
| 42 | 42 | GraphRow *pPrev; /* Previous row */ |
| 43 | - | |
| 43 | + | |
| 44 | 44 | int idx; /* Row index. First is 1. 0 used for "none" */ |
| 45 | 45 | int idxTop; /* Direct descendent highest up on the graph */ |
| 46 | 46 | GraphRow *pChild; /* Child immediately above this node */ |
| 47 | 47 | u8 isDup; /* True if this is duplicate of a prior entry */ |
| 48 | 48 | u8 isLeaf; /* True if this is a leaf node */ |
| @@ -154,11 +154,11 @@ | ||
| 154 | 154 | ** Return the canonical pointer for a given branch name. |
| 155 | 155 | ** Multiple calls to this routine with equivalent strings |
| 156 | 156 | ** will return the same pointer. |
| 157 | 157 | ** |
| 158 | 158 | ** The returned value is a pointer to a (readonly) string that |
| 159 | -** has the useful property that strings can be checked for | |
| 159 | +** has the useful property that strings can be checked for | |
| 160 | 160 | ** equality by comparing pointers. |
| 161 | 161 | ** |
| 162 | 162 | ** Note: also used for background color names. |
| 163 | 163 | */ |
| 164 | 164 | static char *persistBranchName(GraphContext *p, const char *zBranch){ |
| @@ -214,11 +214,11 @@ | ||
| 214 | 214 | return pRow->idx; |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | /* |
| 218 | 218 | ** Return the index of a rail currently not in use for any row between |
| 219 | -** top and bottom, inclusive. | |
| 219 | +** top and bottom, inclusive. | |
| 220 | 220 | */ |
| 221 | 221 | static int findFreeRail( |
| 222 | 222 | GraphContext *p, /* The graph context */ |
| 223 | 223 | int top, int btm, /* Span of rows for which the rail is needed */ |
| 224 | 224 | u64 inUseMask, /* Mask or rails already in use */ |
| @@ -380,11 +380,11 @@ | ||
| 380 | 380 | } |
| 381 | 381 | } |
| 382 | 382 | } |
| 383 | 383 | |
| 384 | 384 | |
| 385 | - /* Find the pChild pointer for each node. | |
| 385 | + /* Find the pChild pointer for each node. | |
| 386 | 386 | ** |
| 387 | 387 | ** The pChild points to the node directly above on the same rail. |
| 388 | 388 | ** The pChild must be in the same branch. Leaf nodes have a NULL |
| 389 | 389 | ** pChild. |
| 390 | 390 | ** |
| @@ -533,11 +533,11 @@ | ||
| 533 | 533 | } |
| 534 | 534 | } |
| 535 | 535 | } |
| 536 | 536 | |
| 537 | 537 | /* |
| 538 | - ** Insert merge rails from primaries to duplicates. | |
| 538 | + ** Insert merge rails from primaries to duplicates. | |
| 539 | 539 | */ |
| 540 | 540 | if( hasDup ){ |
| 541 | 541 | int dupRail; |
| 542 | 542 | int mxRail; |
| 543 | 543 | find_max_rail(p); |
| 544 | 544 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -38,11 +38,11 @@ | |
| 38 | char *zBgClr; /* Background Color */ |
| 39 | char zUuid[41]; /* Check-in for file ID */ |
| 40 | |
| 41 | GraphRow *pNext; /* Next row down in the list of all rows */ |
| 42 | GraphRow *pPrev; /* Previous row */ |
| 43 | |
| 44 | int idx; /* Row index. First is 1. 0 used for "none" */ |
| 45 | int idxTop; /* Direct descendent highest up on the graph */ |
| 46 | GraphRow *pChild; /* Child immediately above this node */ |
| 47 | u8 isDup; /* True if this is duplicate of a prior entry */ |
| 48 | u8 isLeaf; /* True if this is a leaf node */ |
| @@ -154,11 +154,11 @@ | |
| 154 | ** Return the canonical pointer for a given branch name. |
| 155 | ** Multiple calls to this routine with equivalent strings |
| 156 | ** will return the same pointer. |
| 157 | ** |
| 158 | ** The returned value is a pointer to a (readonly) string that |
| 159 | ** has the useful property that strings can be checked for |
| 160 | ** equality by comparing pointers. |
| 161 | ** |
| 162 | ** Note: also used for background color names. |
| 163 | */ |
| 164 | static char *persistBranchName(GraphContext *p, const char *zBranch){ |
| @@ -214,11 +214,11 @@ | |
| 214 | return pRow->idx; |
| 215 | } |
| 216 | |
| 217 | /* |
| 218 | ** Return the index of a rail currently not in use for any row between |
| 219 | ** top and bottom, inclusive. |
| 220 | */ |
| 221 | static int findFreeRail( |
| 222 | GraphContext *p, /* The graph context */ |
| 223 | int top, int btm, /* Span of rows for which the rail is needed */ |
| 224 | u64 inUseMask, /* Mask or rails already in use */ |
| @@ -380,11 +380,11 @@ | |
| 380 | } |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | |
| 385 | /* Find the pChild pointer for each node. |
| 386 | ** |
| 387 | ** The pChild points to the node directly above on the same rail. |
| 388 | ** The pChild must be in the same branch. Leaf nodes have a NULL |
| 389 | ** pChild. |
| 390 | ** |
| @@ -533,11 +533,11 @@ | |
| 533 | } |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | /* |
| 538 | ** Insert merge rails from primaries to duplicates. |
| 539 | */ |
| 540 | if( hasDup ){ |
| 541 | int dupRail; |
| 542 | int mxRail; |
| 543 | find_max_rail(p); |
| 544 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -38,11 +38,11 @@ | |
| 38 | char *zBgClr; /* Background Color */ |
| 39 | char zUuid[41]; /* Check-in for file ID */ |
| 40 | |
| 41 | GraphRow *pNext; /* Next row down in the list of all rows */ |
| 42 | GraphRow *pPrev; /* Previous row */ |
| 43 | |
| 44 | int idx; /* Row index. First is 1. 0 used for "none" */ |
| 45 | int idxTop; /* Direct descendent highest up on the graph */ |
| 46 | GraphRow *pChild; /* Child immediately above this node */ |
| 47 | u8 isDup; /* True if this is duplicate of a prior entry */ |
| 48 | u8 isLeaf; /* True if this is a leaf node */ |
| @@ -154,11 +154,11 @@ | |
| 154 | ** Return the canonical pointer for a given branch name. |
| 155 | ** Multiple calls to this routine with equivalent strings |
| 156 | ** will return the same pointer. |
| 157 | ** |
| 158 | ** The returned value is a pointer to a (readonly) string that |
| 159 | ** has the useful property that strings can be checked for |
| 160 | ** equality by comparing pointers. |
| 161 | ** |
| 162 | ** Note: also used for background color names. |
| 163 | */ |
| 164 | static char *persistBranchName(GraphContext *p, const char *zBranch){ |
| @@ -214,11 +214,11 @@ | |
| 214 | return pRow->idx; |
| 215 | } |
| 216 | |
| 217 | /* |
| 218 | ** Return the index of a rail currently not in use for any row between |
| 219 | ** top and bottom, inclusive. |
| 220 | */ |
| 221 | static int findFreeRail( |
| 222 | GraphContext *p, /* The graph context */ |
| 223 | int top, int btm, /* Span of rows for which the rail is needed */ |
| 224 | u64 inUseMask, /* Mask or rails already in use */ |
| @@ -380,11 +380,11 @@ | |
| 380 | } |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | |
| 385 | /* Find the pChild pointer for each node. |
| 386 | ** |
| 387 | ** The pChild points to the node directly above on the same rail. |
| 388 | ** The pChild must be in the same branch. Leaf nodes have a NULL |
| 389 | ** pChild. |
| 390 | ** |
| @@ -533,11 +533,11 @@ | |
| 533 | } |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | /* |
| 538 | ** Insert merge rails from primaries to duplicates. |
| 539 | */ |
| 540 | if( hasDup ){ |
| 541 | int dupRail; |
| 542 | int mxRail; |
| 543 | find_max_rail(p); |
| 544 |
+5
-5
| --- src/leaf.c | ||
| +++ src/leaf.c | ||
| @@ -27,15 +27,15 @@ | ||
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | /* |
| 30 | 30 | ** Return true if the check-in with RID=rid is a leaf. |
| 31 | 31 | ** |
| 32 | -** A leaf has no children in the same branch. | |
| 32 | +** A leaf has no children in the same branch. | |
| 33 | 33 | */ |
| 34 | 34 | int is_a_leaf(int rid){ |
| 35 | 35 | int rc; |
| 36 | - static const char zSql[] = | |
| 36 | + static const char zSql[] = | |
| 37 | 37 | @ SELECT 1 FROM plink |
| 38 | 38 | @ WHERE pid=%d |
| 39 | 39 | @ AND coalesce((SELECT value FROM tagxref |
| 40 | 40 | @ WHERE tagid=%d AND rid=plink.pid), 'trunk') |
| 41 | 41 | @ =coalesce((SELECT value FROM tagxref |
| @@ -56,11 +56,11 @@ | ||
| 56 | 56 | ** A non-branch child is one which is on the same branch as the parent. |
| 57 | 57 | */ |
| 58 | 58 | int count_nonbranch_children(int pid){ |
| 59 | 59 | int nNonBranch = 0; |
| 60 | 60 | static Stmt q; |
| 61 | - static const char zSql[] = | |
| 61 | + static const char zSql[] = | |
| 62 | 62 | @ SELECT count(*) FROM plink |
| 63 | 63 | @ WHERE pid=:pid AND isprim |
| 64 | 64 | @ AND coalesce((SELECT value FROM tagxref |
| 65 | 65 | @ WHERE tagid=%d AND rid=plink.pid), 'trunk') |
| 66 | 66 | @ =coalesce((SELECT value FROM tagxref |
| @@ -75,11 +75,11 @@ | ||
| 75 | 75 | return nNonBranch; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | |
| 79 | 79 | /* |
| 80 | -** Recompute the entire LEAF table. | |
| 80 | +** Recompute the entire LEAF table. | |
| 81 | 81 | ** |
| 82 | 82 | ** This can be expensive (5 seconds or so) for a really large repository. |
| 83 | 83 | ** So it is only done for things like a rebuild. |
| 84 | 84 | */ |
| 85 | 85 | void leaf_rebuild(void){ |
| @@ -159,11 +159,11 @@ | ||
| 159 | 159 | ** Schedule a leaf check for "rid" and its parents. |
| 160 | 160 | */ |
| 161 | 161 | void leaf_eventually_check(int rid){ |
| 162 | 162 | static Stmt parentsOf; |
| 163 | 163 | |
| 164 | - db_static_prepare(&parentsOf, | |
| 164 | + db_static_prepare(&parentsOf, | |
| 165 | 165 | "SELECT pid FROM plink WHERE cid=:rid AND pid>0" |
| 166 | 166 | ); |
| 167 | 167 | db_bind_int(&parentsOf, ":rid", rid); |
| 168 | 168 | bag_insert(&needToCheck, rid); |
| 169 | 169 | while( db_step(&parentsOf)==SQLITE_ROW ){ |
| 170 | 170 |
| --- src/leaf.c | |
| +++ src/leaf.c | |
| @@ -27,15 +27,15 @@ | |
| 27 | |
| 28 | |
| 29 | /* |
| 30 | ** Return true if the check-in with RID=rid is a leaf. |
| 31 | ** |
| 32 | ** A leaf has no children in the same branch. |
| 33 | */ |
| 34 | int is_a_leaf(int rid){ |
| 35 | int rc; |
| 36 | static const char zSql[] = |
| 37 | @ SELECT 1 FROM plink |
| 38 | @ WHERE pid=%d |
| 39 | @ AND coalesce((SELECT value FROM tagxref |
| 40 | @ WHERE tagid=%d AND rid=plink.pid), 'trunk') |
| 41 | @ =coalesce((SELECT value FROM tagxref |
| @@ -56,11 +56,11 @@ | |
| 56 | ** A non-branch child is one which is on the same branch as the parent. |
| 57 | */ |
| 58 | int count_nonbranch_children(int pid){ |
| 59 | int nNonBranch = 0; |
| 60 | static Stmt q; |
| 61 | static const char zSql[] = |
| 62 | @ SELECT count(*) FROM plink |
| 63 | @ WHERE pid=:pid AND isprim |
| 64 | @ AND coalesce((SELECT value FROM tagxref |
| 65 | @ WHERE tagid=%d AND rid=plink.pid), 'trunk') |
| 66 | @ =coalesce((SELECT value FROM tagxref |
| @@ -75,11 +75,11 @@ | |
| 75 | return nNonBranch; |
| 76 | } |
| 77 | |
| 78 | |
| 79 | /* |
| 80 | ** Recompute the entire LEAF table. |
| 81 | ** |
| 82 | ** This can be expensive (5 seconds or so) for a really large repository. |
| 83 | ** So it is only done for things like a rebuild. |
| 84 | */ |
| 85 | void leaf_rebuild(void){ |
| @@ -159,11 +159,11 @@ | |
| 159 | ** Schedule a leaf check for "rid" and its parents. |
| 160 | */ |
| 161 | void leaf_eventually_check(int rid){ |
| 162 | static Stmt parentsOf; |
| 163 | |
| 164 | db_static_prepare(&parentsOf, |
| 165 | "SELECT pid FROM plink WHERE cid=:rid AND pid>0" |
| 166 | ); |
| 167 | db_bind_int(&parentsOf, ":rid", rid); |
| 168 | bag_insert(&needToCheck, rid); |
| 169 | while( db_step(&parentsOf)==SQLITE_ROW ){ |
| 170 |
| --- src/leaf.c | |
| +++ src/leaf.c | |
| @@ -27,15 +27,15 @@ | |
| 27 | |
| 28 | |
| 29 | /* |
| 30 | ** Return true if the check-in with RID=rid is a leaf. |
| 31 | ** |
| 32 | ** A leaf has no children in the same branch. |
| 33 | */ |
| 34 | int is_a_leaf(int rid){ |
| 35 | int rc; |
| 36 | static const char zSql[] = |
| 37 | @ SELECT 1 FROM plink |
| 38 | @ WHERE pid=%d |
| 39 | @ AND coalesce((SELECT value FROM tagxref |
| 40 | @ WHERE tagid=%d AND rid=plink.pid), 'trunk') |
| 41 | @ =coalesce((SELECT value FROM tagxref |
| @@ -56,11 +56,11 @@ | |
| 56 | ** A non-branch child is one which is on the same branch as the parent. |
| 57 | */ |
| 58 | int count_nonbranch_children(int pid){ |
| 59 | int nNonBranch = 0; |
| 60 | static Stmt q; |
| 61 | static const char zSql[] = |
| 62 | @ SELECT count(*) FROM plink |
| 63 | @ WHERE pid=:pid AND isprim |
| 64 | @ AND coalesce((SELECT value FROM tagxref |
| 65 | @ WHERE tagid=%d AND rid=plink.pid), 'trunk') |
| 66 | @ =coalesce((SELECT value FROM tagxref |
| @@ -75,11 +75,11 @@ | |
| 75 | return nNonBranch; |
| 76 | } |
| 77 | |
| 78 | |
| 79 | /* |
| 80 | ** Recompute the entire LEAF table. |
| 81 | ** |
| 82 | ** This can be expensive (5 seconds or so) for a really large repository. |
| 83 | ** So it is only done for things like a rebuild. |
| 84 | */ |
| 85 | void leaf_rebuild(void){ |
| @@ -159,11 +159,11 @@ | |
| 159 | ** Schedule a leaf check for "rid" and its parents. |
| 160 | */ |
| 161 | void leaf_eventually_check(int rid){ |
| 162 | static Stmt parentsOf; |
| 163 | |
| 164 | db_static_prepare(&parentsOf, |
| 165 | "SELECT pid FROM plink WHERE cid=:rid AND pid>0" |
| 166 | ); |
| 167 | db_bind_int(&parentsOf, ":rid", rid); |
| 168 | bag_insert(&needToCheck, rid); |
| 169 | while( db_step(&parentsOf)==SQLITE_ROW ){ |
| 170 |
+1
-1
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -483,11 +483,11 @@ | ||
| 483 | 483 | zQS = ""; |
| 484 | 484 | }else if( zQS[0]!=0 ){ |
| 485 | 485 | zQS = mprintf("?%s", zQS); |
| 486 | 486 | } |
| 487 | 487 | cgi_redirectf("%s%s%s", g.zHttpsURL, P("PATH_INFO"), zQS); |
| 488 | - return; | |
| 488 | + return; | |
| 489 | 489 | } |
| 490 | 490 | sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0, |
| 491 | 491 | constant_time_cmp_function, 0, 0); |
| 492 | 492 | zUsername = P("u"); |
| 493 | 493 | zPasswd = P("p"); |
| 494 | 494 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -483,11 +483,11 @@ | |
| 483 | zQS = ""; |
| 484 | }else if( zQS[0]!=0 ){ |
| 485 | zQS = mprintf("?%s", zQS); |
| 486 | } |
| 487 | cgi_redirectf("%s%s%s", g.zHttpsURL, P("PATH_INFO"), zQS); |
| 488 | return; |
| 489 | } |
| 490 | sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0, |
| 491 | constant_time_cmp_function, 0, 0); |
| 492 | zUsername = P("u"); |
| 493 | zPasswd = P("p"); |
| 494 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -483,11 +483,11 @@ | |
| 483 | zQS = ""; |
| 484 | }else if( zQS[0]!=0 ){ |
| 485 | zQS = mprintf("?%s", zQS); |
| 486 | } |
| 487 | cgi_redirectf("%s%s%s", g.zHttpsURL, P("PATH_INFO"), zQS); |
| 488 | return; |
| 489 | } |
| 490 | sqlite3_create_function(g.db, "constant_time_cmp", 2, SQLITE_UTF8, 0, |
| 491 | constant_time_cmp_function, 0, 0); |
| 492 | zUsername = P("u"); |
| 493 | zPasswd = P("p"); |
| 494 |
+6
-6
| --- src/merge.c | ||
| +++ src/merge.c | ||
| @@ -41,11 +41,11 @@ | ||
| 41 | 41 | if( zTagList && zTagList[0] ){ |
| 42 | 42 | zCom = mprintf("%s (%s)", db_column_text(&q, 2), zTagList); |
| 43 | 43 | }else{ |
| 44 | 44 | zCom = mprintf("%s", db_column_text(&q,2)); |
| 45 | 45 | } |
| 46 | - fossil_print("%-*s [%S] by %s on %s\n%*s", | |
| 46 | + fossil_print("%-*s [%S] by %s on %s\n%*s", | |
| 47 | 47 | indent-1, zLabel, |
| 48 | 48 | db_column_text(&q, 3), |
| 49 | 49 | db_column_text(&q, 1), |
| 50 | 50 | db_column_text(&q, 0), |
| 51 | 51 | indent, ""); |
| @@ -166,11 +166,11 @@ | ||
| 166 | 166 | }else if( g.argc==2 ){ |
| 167 | 167 | /* No version specified on the command-line so pick the most recent |
| 168 | 168 | ** leaf that is (1) not the version currently checked out and (2) |
| 169 | 169 | ** has not already been merged into the current checkout and (3) |
| 170 | 170 | ** the leaf is not closed and (4) the leaf is in the same branch |
| 171 | - ** as the current checkout. | |
| 171 | + ** as the current checkout. | |
| 172 | 172 | */ |
| 173 | 173 | Stmt q; |
| 174 | 174 | if( pickFlag || backoutFlag || integrateFlag){ |
| 175 | 175 | fossil_fatal("cannot use --backout, --cherrypick or --integrate with a fork merge"); |
| 176 | 176 | } |
| @@ -472,13 +472,13 @@ | ||
| 472 | 472 | undo_save(zName); |
| 473 | 473 | vfile_to_disk(0, idm, 0, 0); |
| 474 | 474 | } |
| 475 | 475 | } |
| 476 | 476 | db_finalize(&q); |
| 477 | - | |
| 477 | + | |
| 478 | 478 | /* |
| 479 | - ** Find files that have changed from P->M but not P->V. | |
| 479 | + ** Find files that have changed from P->M but not P->V. | |
| 480 | 480 | ** Copy the M content over into V. |
| 481 | 481 | */ |
| 482 | 482 | db_prepare(&q, |
| 483 | 483 | "SELECT idv, ridm, fn, islinkm FROM fv" |
| 484 | 484 | " WHERE idp>0 AND idv>0 AND idm>0" |
| @@ -524,18 +524,18 @@ | ||
| 524 | 524 | int rc; |
| 525 | 525 | char *zFullPath; |
| 526 | 526 | Blob m, p, r; |
| 527 | 527 | /* Do a 3-way merge of idp->idm into idp->idv. The results go into idv. */ |
| 528 | 528 | if( verboseFlag ){ |
| 529 | - fossil_print("MERGE %s (pivot=%d v1=%d v2=%d)\n", | |
| 529 | + fossil_print("MERGE %s (pivot=%d v1=%d v2=%d)\n", | |
| 530 | 530 | zName, ridp, ridm, ridv); |
| 531 | 531 | }else{ |
| 532 | 532 | fossil_print("MERGE %s\n", zName); |
| 533 | 533 | } |
| 534 | 534 | if( islinkv || islinkm /* || file_wd_islink(zFullPath) */ ){ |
| 535 | 535 | fossil_print("***** Cannot merge symlink %s\n", zName); |
| 536 | - nConflict++; | |
| 536 | + nConflict++; | |
| 537 | 537 | }else{ |
| 538 | 538 | undo_save(zName); |
| 539 | 539 | zFullPath = mprintf("%s/%s", g.zLocalRoot, zName); |
| 540 | 540 | content_get(ridp, &p); |
| 541 | 541 | content_get(ridm, &m); |
| 542 | 542 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -41,11 +41,11 @@ | |
| 41 | if( zTagList && zTagList[0] ){ |
| 42 | zCom = mprintf("%s (%s)", db_column_text(&q, 2), zTagList); |
| 43 | }else{ |
| 44 | zCom = mprintf("%s", db_column_text(&q,2)); |
| 45 | } |
| 46 | fossil_print("%-*s [%S] by %s on %s\n%*s", |
| 47 | indent-1, zLabel, |
| 48 | db_column_text(&q, 3), |
| 49 | db_column_text(&q, 1), |
| 50 | db_column_text(&q, 0), |
| 51 | indent, ""); |
| @@ -166,11 +166,11 @@ | |
| 166 | }else if( g.argc==2 ){ |
| 167 | /* No version specified on the command-line so pick the most recent |
| 168 | ** leaf that is (1) not the version currently checked out and (2) |
| 169 | ** has not already been merged into the current checkout and (3) |
| 170 | ** the leaf is not closed and (4) the leaf is in the same branch |
| 171 | ** as the current checkout. |
| 172 | */ |
| 173 | Stmt q; |
| 174 | if( pickFlag || backoutFlag || integrateFlag){ |
| 175 | fossil_fatal("cannot use --backout, --cherrypick or --integrate with a fork merge"); |
| 176 | } |
| @@ -472,13 +472,13 @@ | |
| 472 | undo_save(zName); |
| 473 | vfile_to_disk(0, idm, 0, 0); |
| 474 | } |
| 475 | } |
| 476 | db_finalize(&q); |
| 477 | |
| 478 | /* |
| 479 | ** Find files that have changed from P->M but not P->V. |
| 480 | ** Copy the M content over into V. |
| 481 | */ |
| 482 | db_prepare(&q, |
| 483 | "SELECT idv, ridm, fn, islinkm FROM fv" |
| 484 | " WHERE idp>0 AND idv>0 AND idm>0" |
| @@ -524,18 +524,18 @@ | |
| 524 | int rc; |
| 525 | char *zFullPath; |
| 526 | Blob m, p, r; |
| 527 | /* Do a 3-way merge of idp->idm into idp->idv. The results go into idv. */ |
| 528 | if( verboseFlag ){ |
| 529 | fossil_print("MERGE %s (pivot=%d v1=%d v2=%d)\n", |
| 530 | zName, ridp, ridm, ridv); |
| 531 | }else{ |
| 532 | fossil_print("MERGE %s\n", zName); |
| 533 | } |
| 534 | if( islinkv || islinkm /* || file_wd_islink(zFullPath) */ ){ |
| 535 | fossil_print("***** Cannot merge symlink %s\n", zName); |
| 536 | nConflict++; |
| 537 | }else{ |
| 538 | undo_save(zName); |
| 539 | zFullPath = mprintf("%s/%s", g.zLocalRoot, zName); |
| 540 | content_get(ridp, &p); |
| 541 | content_get(ridm, &m); |
| 542 |
| --- src/merge.c | |
| +++ src/merge.c | |
| @@ -41,11 +41,11 @@ | |
| 41 | if( zTagList && zTagList[0] ){ |
| 42 | zCom = mprintf("%s (%s)", db_column_text(&q, 2), zTagList); |
| 43 | }else{ |
| 44 | zCom = mprintf("%s", db_column_text(&q,2)); |
| 45 | } |
| 46 | fossil_print("%-*s [%S] by %s on %s\n%*s", |
| 47 | indent-1, zLabel, |
| 48 | db_column_text(&q, 3), |
| 49 | db_column_text(&q, 1), |
| 50 | db_column_text(&q, 0), |
| 51 | indent, ""); |
| @@ -166,11 +166,11 @@ | |
| 166 | }else if( g.argc==2 ){ |
| 167 | /* No version specified on the command-line so pick the most recent |
| 168 | ** leaf that is (1) not the version currently checked out and (2) |
| 169 | ** has not already been merged into the current checkout and (3) |
| 170 | ** the leaf is not closed and (4) the leaf is in the same branch |
| 171 | ** as the current checkout. |
| 172 | */ |
| 173 | Stmt q; |
| 174 | if( pickFlag || backoutFlag || integrateFlag){ |
| 175 | fossil_fatal("cannot use --backout, --cherrypick or --integrate with a fork merge"); |
| 176 | } |
| @@ -472,13 +472,13 @@ | |
| 472 | undo_save(zName); |
| 473 | vfile_to_disk(0, idm, 0, 0); |
| 474 | } |
| 475 | } |
| 476 | db_finalize(&q); |
| 477 | |
| 478 | /* |
| 479 | ** Find files that have changed from P->M but not P->V. |
| 480 | ** Copy the M content over into V. |
| 481 | */ |
| 482 | db_prepare(&q, |
| 483 | "SELECT idv, ridm, fn, islinkm FROM fv" |
| 484 | " WHERE idp>0 AND idv>0 AND idm>0" |
| @@ -524,18 +524,18 @@ | |
| 524 | int rc; |
| 525 | char *zFullPath; |
| 526 | Blob m, p, r; |
| 527 | /* Do a 3-way merge of idp->idm into idp->idv. The results go into idv. */ |
| 528 | if( verboseFlag ){ |
| 529 | fossil_print("MERGE %s (pivot=%d v1=%d v2=%d)\n", |
| 530 | zName, ridp, ridm, ridv); |
| 531 | }else{ |
| 532 | fossil_print("MERGE %s\n", zName); |
| 533 | } |
| 534 | if( islinkv || islinkm /* || file_wd_islink(zFullPath) */ ){ |
| 535 | fossil_print("***** Cannot merge symlink %s\n", zName); |
| 536 | nConflict++; |
| 537 | }else{ |
| 538 | undo_save(zName); |
| 539 | zFullPath = mprintf("%s/%s", g.zLocalRoot, zName); |
| 540 | content_get(ridp, &p); |
| 541 | content_get(ridm, &m); |
| 542 |
+1
-1
| --- src/mkbuiltin.c | ||
| +++ src/mkbuiltin.c | ||
| @@ -82,11 +82,11 @@ | ||
| 82 | 82 | int j, n; |
| 83 | 83 | Resource *aRes; |
| 84 | 84 | int nRes = argc-1; |
| 85 | 85 | unsigned char *pData; |
| 86 | 86 | int nErr = 0; |
| 87 | - | |
| 87 | + | |
| 88 | 88 | aRes = malloc( nRes*sizeof(aRes[0]) ); |
| 89 | 89 | if( aRes==0 ){ |
| 90 | 90 | fprintf(stderr, "malloc failed\n"); |
| 91 | 91 | return 1; |
| 92 | 92 | } |
| 93 | 93 |
| --- src/mkbuiltin.c | |
| +++ src/mkbuiltin.c | |
| @@ -82,11 +82,11 @@ | |
| 82 | int j, n; |
| 83 | Resource *aRes; |
| 84 | int nRes = argc-1; |
| 85 | unsigned char *pData; |
| 86 | int nErr = 0; |
| 87 | |
| 88 | aRes = malloc( nRes*sizeof(aRes[0]) ); |
| 89 | if( aRes==0 ){ |
| 90 | fprintf(stderr, "malloc failed\n"); |
| 91 | return 1; |
| 92 | } |
| 93 |
| --- src/mkbuiltin.c | |
| +++ src/mkbuiltin.c | |
| @@ -82,11 +82,11 @@ | |
| 82 | int j, n; |
| 83 | Resource *aRes; |
| 84 | int nRes = argc-1; |
| 85 | unsigned char *pData; |
| 86 | int nErr = 0; |
| 87 | |
| 88 | aRes = malloc( nRes*sizeof(aRes[0]) ); |
| 89 | if( aRes==0 ){ |
| 90 | fprintf(stderr, "malloc failed\n"); |
| 91 | return 1; |
| 92 | } |
| 93 |
+2
-2
| --- src/search.c | ||
| +++ src/search.c | ||
| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | struct Search { |
| 35 | 35 | int nTerm; /* Number of search terms */ |
| 36 | 36 | struct srchTerm { /* For each search term */ |
| 37 | 37 | char *z; /* Text */ |
| 38 | 38 | int n; /* length */ |
| 39 | - } a[8]; | |
| 39 | + } a[8]; | |
| 40 | 40 | }; |
| 41 | 41 | #endif |
| 42 | 42 | |
| 43 | 43 | /* |
| 44 | 44 | ** Compile a search pattern |
| @@ -139,11 +139,11 @@ | ||
| 139 | 139 | } |
| 140 | 140 | iBonus /= 2; |
| 141 | 141 | while( !isBoundary[zDoc[i]&0xff] ){ i++; } |
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | - | |
| 144 | + | |
| 145 | 145 | /* Every term must be seen or else the score is zero */ |
| 146 | 146 | for(j=0; j<p->nTerm; j++){ |
| 147 | 147 | if( !seen[j] ) return 0; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -34,11 +34,11 @@ | |
| 34 | struct Search { |
| 35 | int nTerm; /* Number of search terms */ |
| 36 | struct srchTerm { /* For each search term */ |
| 37 | char *z; /* Text */ |
| 38 | int n; /* length */ |
| 39 | } a[8]; |
| 40 | }; |
| 41 | #endif |
| 42 | |
| 43 | /* |
| 44 | ** Compile a search pattern |
| @@ -139,11 +139,11 @@ | |
| 139 | } |
| 140 | iBonus /= 2; |
| 141 | while( !isBoundary[zDoc[i]&0xff] ){ i++; } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /* Every term must be seen or else the score is zero */ |
| 146 | for(j=0; j<p->nTerm; j++){ |
| 147 | if( !seen[j] ) return 0; |
| 148 | } |
| 149 | |
| 150 |
| --- src/search.c | |
| +++ src/search.c | |
| @@ -34,11 +34,11 @@ | |
| 34 | struct Search { |
| 35 | int nTerm; /* Number of search terms */ |
| 36 | struct srchTerm { /* For each search term */ |
| 37 | char *z; /* Text */ |
| 38 | int n; /* length */ |
| 39 | } a[8]; |
| 40 | }; |
| 41 | #endif |
| 42 | |
| 43 | /* |
| 44 | ** Compile a search pattern |
| @@ -139,11 +139,11 @@ | |
| 139 | } |
| 140 | iBonus /= 2; |
| 141 | while( !isBoundary[zDoc[i]&0xff] ){ i++; } |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /* Every term must be seen or else the score is zero */ |
| 146 | for(j=0; j<p->nTerm; j++){ |
| 147 | if( !seen[j] ) return 0; |
| 148 | } |
| 149 | |
| 150 |
+1
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -995,11 +995,11 @@ | ||
| 995 | 995 | login_insert_csrf_secret(); |
| 996 | 996 | @ <hr /> |
| 997 | 997 | onoff_attribute("Redirect to HTTPS on the Login page", |
| 998 | 998 | "redirect-to-https", "redirhttps", 0, 0); |
| 999 | 999 | @ <p>When selected, force the use of HTTPS for the Login page. |
| 1000 | - @ <p>Details: When enabled, this option causes the $secureurl TH1 | |
| 1000 | + @ <p>Details: When enabled, this option causes the $secureurl TH1 | |
| 1001 | 1001 | @ variable is set to an "https:" variant of $baseurl. Otherwise, |
| 1002 | 1002 | @ $secureurl is just an alias for $baseurl. Also when enabled, the |
| 1003 | 1003 | @ Login page redirects to https if accessed via http. |
| 1004 | 1004 | @ <hr /> |
| 1005 | 1005 | onoff_attribute("Require password for local access", |
| 1006 | 1006 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -995,11 +995,11 @@ | |
| 995 | login_insert_csrf_secret(); |
| 996 | @ <hr /> |
| 997 | onoff_attribute("Redirect to HTTPS on the Login page", |
| 998 | "redirect-to-https", "redirhttps", 0, 0); |
| 999 | @ <p>When selected, force the use of HTTPS for the Login page. |
| 1000 | @ <p>Details: When enabled, this option causes the $secureurl TH1 |
| 1001 | @ variable is set to an "https:" variant of $baseurl. Otherwise, |
| 1002 | @ $secureurl is just an alias for $baseurl. Also when enabled, the |
| 1003 | @ Login page redirects to https if accessed via http. |
| 1004 | @ <hr /> |
| 1005 | onoff_attribute("Require password for local access", |
| 1006 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -995,11 +995,11 @@ | |
| 995 | login_insert_csrf_secret(); |
| 996 | @ <hr /> |
| 997 | onoff_attribute("Redirect to HTTPS on the Login page", |
| 998 | "redirect-to-https", "redirhttps", 0, 0); |
| 999 | @ <p>When selected, force the use of HTTPS for the Login page. |
| 1000 | @ <p>Details: When enabled, this option causes the $secureurl TH1 |
| 1001 | @ variable is set to an "https:" variant of $baseurl. Otherwise, |
| 1002 | @ $secureurl is just an alias for $baseurl. Also when enabled, the |
| 1003 | @ Login page redirects to https if accessed via http. |
| 1004 | @ <hr /> |
| 1005 | onoff_attribute("Require password for local access", |
| 1006 |
+5
-5
| --- src/sync.c | ||
| +++ src/sync.c | ||
| @@ -48,11 +48,11 @@ | ||
| 48 | 48 | } |
| 49 | 49 | }else{ |
| 50 | 50 | /* Autosync defaults on. To make it default off, "return" here. */ |
| 51 | 51 | } |
| 52 | 52 | url_parse(0, URL_REMEMBER); |
| 53 | - if( g.url.protocol==0 ) return 0; | |
| 53 | + if( g.url.protocol==0 ) return 0; | |
| 54 | 54 | if( g.url.user!=0 && g.url.passwd==0 ){ |
| 55 | 55 | g.url.passwd = unobscure(db_get("last-sync-pw", 0)); |
| 56 | 56 | g.url.flags |= URL_PROMPT_PW; |
| 57 | 57 | url_prompt_for_password(); |
| 58 | 58 | } |
| @@ -61,11 +61,11 @@ | ||
| 61 | 61 | #if 0 /* Disabled for now */ |
| 62 | 62 | if( (flags & AUTOSYNC_PULL)!=0 && db_get_boolean("auto-shun",1) ){ |
| 63 | 63 | /* When doing an automatic pull, also automatically pull shuns from |
| 64 | 64 | ** the server if pull_shuns is enabled. |
| 65 | 65 | ** |
| 66 | - ** TODO: What happens if the shun list gets really big? | |
| 66 | + ** TODO: What happens if the shun list gets really big? | |
| 67 | 67 | ** Maybe the shunning list should only be pulled on every 10th |
| 68 | 68 | ** autosync, or something? |
| 69 | 69 | */ |
| 70 | 70 | configSync = CONFIGSET_SHUN; |
| 71 | 71 | } |
| @@ -186,11 +186,11 @@ | ||
| 186 | 186 | */ |
| 187 | 187 | void pull_cmd(void){ |
| 188 | 188 | unsigned configFlags = 0; |
| 189 | 189 | unsigned syncFlags = SYNC_PULL; |
| 190 | 190 | process_sync_args(&configFlags, &syncFlags); |
| 191 | - | |
| 191 | + | |
| 192 | 192 | /* We should be done with options.. */ |
| 193 | 193 | verify_all_options(); |
| 194 | 194 | |
| 195 | 195 | client_sync(syncFlags, configFlags, 0); |
| 196 | 196 | } |
| @@ -221,11 +221,11 @@ | ||
| 221 | 221 | */ |
| 222 | 222 | void push_cmd(void){ |
| 223 | 223 | unsigned configFlags = 0; |
| 224 | 224 | unsigned syncFlags = SYNC_PUSH; |
| 225 | 225 | process_sync_args(&configFlags, &syncFlags); |
| 226 | - | |
| 226 | + | |
| 227 | 227 | /* We should be done with options.. */ |
| 228 | 228 | verify_all_options(); |
| 229 | 229 | |
| 230 | 230 | if( db_get_boolean("dont-push",0) ){ |
| 231 | 231 | fossil_fatal("pushing is prohibited: the 'dont-push' option is set"); |
| @@ -261,11 +261,11 @@ | ||
| 261 | 261 | */ |
| 262 | 262 | void sync_cmd(void){ |
| 263 | 263 | unsigned configFlags = 0; |
| 264 | 264 | unsigned syncFlags = SYNC_PUSH|SYNC_PULL; |
| 265 | 265 | process_sync_args(&configFlags, &syncFlags); |
| 266 | - | |
| 266 | + | |
| 267 | 267 | /* We should be done with options.. */ |
| 268 | 268 | verify_all_options(); |
| 269 | 269 | |
| 270 | 270 | if( db_get_boolean("dont-push",0) ) syncFlags &= ~SYNC_PUSH; |
| 271 | 271 | client_sync(syncFlags, configFlags, 0); |
| 272 | 272 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -48,11 +48,11 @@ | |
| 48 | } |
| 49 | }else{ |
| 50 | /* Autosync defaults on. To make it default off, "return" here. */ |
| 51 | } |
| 52 | url_parse(0, URL_REMEMBER); |
| 53 | if( g.url.protocol==0 ) return 0; |
| 54 | if( g.url.user!=0 && g.url.passwd==0 ){ |
| 55 | g.url.passwd = unobscure(db_get("last-sync-pw", 0)); |
| 56 | g.url.flags |= URL_PROMPT_PW; |
| 57 | url_prompt_for_password(); |
| 58 | } |
| @@ -61,11 +61,11 @@ | |
| 61 | #if 0 /* Disabled for now */ |
| 62 | if( (flags & AUTOSYNC_PULL)!=0 && db_get_boolean("auto-shun",1) ){ |
| 63 | /* When doing an automatic pull, also automatically pull shuns from |
| 64 | ** the server if pull_shuns is enabled. |
| 65 | ** |
| 66 | ** TODO: What happens if the shun list gets really big? |
| 67 | ** Maybe the shunning list should only be pulled on every 10th |
| 68 | ** autosync, or something? |
| 69 | */ |
| 70 | configSync = CONFIGSET_SHUN; |
| 71 | } |
| @@ -186,11 +186,11 @@ | |
| 186 | */ |
| 187 | void pull_cmd(void){ |
| 188 | unsigned configFlags = 0; |
| 189 | unsigned syncFlags = SYNC_PULL; |
| 190 | process_sync_args(&configFlags, &syncFlags); |
| 191 | |
| 192 | /* We should be done with options.. */ |
| 193 | verify_all_options(); |
| 194 | |
| 195 | client_sync(syncFlags, configFlags, 0); |
| 196 | } |
| @@ -221,11 +221,11 @@ | |
| 221 | */ |
| 222 | void push_cmd(void){ |
| 223 | unsigned configFlags = 0; |
| 224 | unsigned syncFlags = SYNC_PUSH; |
| 225 | process_sync_args(&configFlags, &syncFlags); |
| 226 | |
| 227 | /* We should be done with options.. */ |
| 228 | verify_all_options(); |
| 229 | |
| 230 | if( db_get_boolean("dont-push",0) ){ |
| 231 | fossil_fatal("pushing is prohibited: the 'dont-push' option is set"); |
| @@ -261,11 +261,11 @@ | |
| 261 | */ |
| 262 | void sync_cmd(void){ |
| 263 | unsigned configFlags = 0; |
| 264 | unsigned syncFlags = SYNC_PUSH|SYNC_PULL; |
| 265 | process_sync_args(&configFlags, &syncFlags); |
| 266 | |
| 267 | /* We should be done with options.. */ |
| 268 | verify_all_options(); |
| 269 | |
| 270 | if( db_get_boolean("dont-push",0) ) syncFlags &= ~SYNC_PUSH; |
| 271 | client_sync(syncFlags, configFlags, 0); |
| 272 |
| --- src/sync.c | |
| +++ src/sync.c | |
| @@ -48,11 +48,11 @@ | |
| 48 | } |
| 49 | }else{ |
| 50 | /* Autosync defaults on. To make it default off, "return" here. */ |
| 51 | } |
| 52 | url_parse(0, URL_REMEMBER); |
| 53 | if( g.url.protocol==0 ) return 0; |
| 54 | if( g.url.user!=0 && g.url.passwd==0 ){ |
| 55 | g.url.passwd = unobscure(db_get("last-sync-pw", 0)); |
| 56 | g.url.flags |= URL_PROMPT_PW; |
| 57 | url_prompt_for_password(); |
| 58 | } |
| @@ -61,11 +61,11 @@ | |
| 61 | #if 0 /* Disabled for now */ |
| 62 | if( (flags & AUTOSYNC_PULL)!=0 && db_get_boolean("auto-shun",1) ){ |
| 63 | /* When doing an automatic pull, also automatically pull shuns from |
| 64 | ** the server if pull_shuns is enabled. |
| 65 | ** |
| 66 | ** TODO: What happens if the shun list gets really big? |
| 67 | ** Maybe the shunning list should only be pulled on every 10th |
| 68 | ** autosync, or something? |
| 69 | */ |
| 70 | configSync = CONFIGSET_SHUN; |
| 71 | } |
| @@ -186,11 +186,11 @@ | |
| 186 | */ |
| 187 | void pull_cmd(void){ |
| 188 | unsigned configFlags = 0; |
| 189 | unsigned syncFlags = SYNC_PULL; |
| 190 | process_sync_args(&configFlags, &syncFlags); |
| 191 | |
| 192 | /* We should be done with options.. */ |
| 193 | verify_all_options(); |
| 194 | |
| 195 | client_sync(syncFlags, configFlags, 0); |
| 196 | } |
| @@ -221,11 +221,11 @@ | |
| 221 | */ |
| 222 | void push_cmd(void){ |
| 223 | unsigned configFlags = 0; |
| 224 | unsigned syncFlags = SYNC_PUSH; |
| 225 | process_sync_args(&configFlags, &syncFlags); |
| 226 | |
| 227 | /* We should be done with options.. */ |
| 228 | verify_all_options(); |
| 229 | |
| 230 | if( db_get_boolean("dont-push",0) ){ |
| 231 | fossil_fatal("pushing is prohibited: the 'dont-push' option is set"); |
| @@ -261,11 +261,11 @@ | |
| 261 | */ |
| 262 | void sync_cmd(void){ |
| 263 | unsigned configFlags = 0; |
| 264 | unsigned syncFlags = SYNC_PUSH|SYNC_PULL; |
| 265 | process_sync_args(&configFlags, &syncFlags); |
| 266 | |
| 267 | /* We should be done with options.. */ |
| 268 | verify_all_options(); |
| 269 | |
| 270 | if( db_get_boolean("dont-push",0) ) syncFlags &= ~SYNC_PUSH; |
| 271 | client_sync(syncFlags, configFlags, 0); |
| 272 |
+17
-17
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -34,11 +34,11 @@ | ||
| 34 | 34 | */ |
| 35 | 35 | static int internalUpdate = 0; |
| 36 | 36 | static int internalConflictCnt = 0; |
| 37 | 37 | |
| 38 | 38 | /* |
| 39 | -** Do an update to version vid. | |
| 39 | +** Do an update to version vid. | |
| 40 | 40 | ** |
| 41 | 41 | ** Start an undo session but do not terminate it. Do not autosync. |
| 42 | 42 | */ |
| 43 | 43 | int update_to(int vid){ |
| 44 | 44 | int savedArgc; |
| @@ -157,11 +157,11 @@ | ||
| 157 | 157 | if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag, |
| 158 | 158 | db_get_int("autosync-tries", 1)) ){ |
| 159 | 159 | fossil_fatal("Cannot proceed with update"); |
| 160 | 160 | } |
| 161 | 161 | } |
| 162 | - | |
| 162 | + | |
| 163 | 163 | /* Create any empty directories now, as well as after the update, |
| 164 | 164 | ** so changes in settings are reflected now */ |
| 165 | 165 | if( !dryRunFlag ) ensure_empty_dirs_created(); |
| 166 | 166 | |
| 167 | 167 | if( internalUpdate ){ |
| @@ -182,11 +182,11 @@ | ||
| 182 | 182 | }else if( !is_a_version(tid) ){ |
| 183 | 183 | fossil_fatal("no such version: %s", g.argv[2]); |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | } |
| 187 | - | |
| 187 | + | |
| 188 | 188 | /* If no VERSION is specified on the command-line, then look for a |
| 189 | 189 | ** descendent of the current version. If there are multiple descendants, |
| 190 | 190 | ** look for one from the same branch as the current version. If there |
| 191 | 191 | ** are still multiple descendants, show them all and refuse to update |
| 192 | 192 | ** until the user selects one. |
| @@ -207,11 +207,11 @@ | ||
| 207 | 207 | " WHERE tagid=%d AND rid=%d))", |
| 208 | 208 | TAG_BRANCH, TAG_BRANCH, vid |
| 209 | 209 | ); |
| 210 | 210 | if( db_int(0, "SELECT count(*) FROM leaves")>1 ){ |
| 211 | 211 | compute_leaves(vid, closeCode); |
| 212 | - db_prepare(&q, | |
| 212 | + db_prepare(&q, | |
| 213 | 213 | "%s " |
| 214 | 214 | " AND event.objid IN leaves" |
| 215 | 215 | " ORDER BY event.mtime DESC", |
| 216 | 216 | timeline_query_for_tty() |
| 217 | 217 | ); |
| @@ -220,11 +220,11 @@ | ||
| 220 | 220 | fossil_fatal("Multiple descendants"); |
| 221 | 221 | } |
| 222 | 222 | } |
| 223 | 223 | tid = db_int(0, "SELECT rid FROM leaves, event" |
| 224 | 224 | " WHERE event.objid=leaves.rid" |
| 225 | - " ORDER BY event.mtime DESC"); | |
| 225 | + " ORDER BY event.mtime DESC"); | |
| 226 | 226 | if( tid==0 ) tid = vid; |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | if( tid==0 ){ |
| 230 | 230 | return; |
| @@ -357,11 +357,11 @@ | ||
| 357 | 357 | zSep = ""; |
| 358 | 358 | for(i=3; i<g.argc; i++){ |
| 359 | 359 | file_tree_name(g.argv[i], &treename, 1); |
| 360 | 360 | if( file_wd_isdir(g.argv[i])==1 ){ |
| 361 | 361 | if( blob_size(&treename) != 1 || blob_str(&treename)[0] != '.' ){ |
| 362 | - blob_append_sql(&sql, "%sfn NOT GLOB '%q/*' ", | |
| 362 | + blob_append_sql(&sql, "%sfn NOT GLOB '%q/*' ", | |
| 363 | 363 | zSep /*safe-for-%s*/, blob_str(&treename)); |
| 364 | 364 | }else{ |
| 365 | 365 | blob_reset(&sql); |
| 366 | 366 | break; |
| 367 | 367 | } |
| @@ -378,11 +378,11 @@ | ||
| 378 | 378 | |
| 379 | 379 | /* |
| 380 | 380 | ** Alter the content of the checkout so that it conforms with the |
| 381 | 381 | ** target |
| 382 | 382 | */ |
| 383 | - db_prepare(&q, | |
| 383 | + db_prepare(&q, | |
| 384 | 384 | "SELECT fn, idv, ridv, idt, ridt, chnged, fnt," |
| 385 | 385 | " isexe, islinkv, islinkt, deleted FROM fv ORDER BY 1" |
| 386 | 386 | ); |
| 387 | 387 | db_prepare(&mtimeXfer, |
| 388 | 388 | "UPDATE vfile SET mtime=(SELECT mtime FROM vfile WHERE id=:idv)" |
| @@ -470,11 +470,11 @@ | ||
| 470 | 470 | }else{ |
| 471 | 471 | fossil_print("MERGE %s\n", zName); |
| 472 | 472 | } |
| 473 | 473 | if( islinkv || islinkt /* || file_wd_islink(zFullPath) */ ){ |
| 474 | 474 | fossil_print("***** Cannot merge symlink %s\n", zNewName); |
| 475 | - nConflict++; | |
| 475 | + nConflict++; | |
| 476 | 476 | }else{ |
| 477 | 477 | unsigned mergeFlags = dryRunFlag ? MERGE_DRYRUN : 0; |
| 478 | 478 | undo_save(zName); |
| 479 | 479 | content_get(ridt, &t); |
| 480 | 480 | content_get(ridv, &v); |
| @@ -544,11 +544,11 @@ | ||
| 544 | 544 | fossil_warning("uncommitted %s against %S.", |
| 545 | 545 | zLabel, db_column_text(&q, 0)); |
| 546 | 546 | nMerge++; |
| 547 | 547 | } |
| 548 | 548 | db_finalize(&q); |
| 549 | - | |
| 549 | + | |
| 550 | 550 | if( nConflict ){ |
| 551 | 551 | if( internalUpdate ){ |
| 552 | 552 | internalConflictCnt = nConflict; |
| 553 | 553 | nConflict = 0; |
| 554 | 554 | }else{ |
| @@ -561,11 +561,11 @@ | ||
| 561 | 561 | } |
| 562 | 562 | if( nMerge ){ |
| 563 | 563 | fossil_warning("WARNING: %d uncommitted prior merges", nMerge); |
| 564 | 564 | } |
| 565 | 565 | } |
| 566 | - | |
| 566 | + | |
| 567 | 567 | /* |
| 568 | 568 | ** Clean up the mid and pid VFILE entries. Then commit the changes. |
| 569 | 569 | */ |
| 570 | 570 | if( dryRunFlag ){ |
| 571 | 571 | db_end_transaction(1); /* With --dry-run, rollback changes */ |
| @@ -615,27 +615,27 @@ | ||
| 615 | 615 | Blob path; |
| 616 | 616 | const char *zPath; |
| 617 | 617 | |
| 618 | 618 | blob_zero(&path); |
| 619 | 619 | blob_appendf(&path, "%s/%s", g.zLocalRoot, zDir); |
| 620 | - zPath = blob_str(&path); | |
| 620 | + zPath = blob_str(&path); | |
| 621 | 621 | /* Handle various cases of existence of the directory */ |
| 622 | 622 | switch( file_wd_isdir(zPath) ){ |
| 623 | 623 | case 0: { /* doesn't exist */ |
| 624 | 624 | if( file_mkdir(zPath, 0)!=0 ) { |
| 625 | 625 | fossil_warning("couldn't create directory %s as " |
| 626 | 626 | "required by empty-dirs setting", zDir); |
| 627 | - } | |
| 627 | + } | |
| 628 | 628 | break; |
| 629 | 629 | } |
| 630 | 630 | case 1: { /* exists, and is a directory */ |
| 631 | 631 | /* do nothing - required directory exists already */ |
| 632 | 632 | break; |
| 633 | 633 | } |
| 634 | 634 | case 2: { /* exists, but isn't a directory */ |
| 635 | 635 | fossil_warning("file %s found, but a directory is required " |
| 636 | - "by empty-dirs setting", zDir); | |
| 636 | + "by empty-dirs setting", zDir); | |
| 637 | 637 | } |
| 638 | 638 | } |
| 639 | 639 | blob_reset(&path); |
| 640 | 640 | } |
| 641 | 641 | } |
| @@ -656,11 +656,11 @@ | ||
| 656 | 656 | int errCode /* Error code if file not found. Panic if 0. */ |
| 657 | 657 | ){ |
| 658 | 658 | Manifest *pManifest; |
| 659 | 659 | ManifestFile *pFile; |
| 660 | 660 | int rid=0; |
| 661 | - | |
| 661 | + | |
| 662 | 662 | if( revision ){ |
| 663 | 663 | rid = name_to_typed_rid(revision,"ci"); |
| 664 | 664 | }else if( !g.localOpen ){ |
| 665 | 665 | rid = name_to_typed_rid(db_get("main-branch","trunk"),"ci"); |
| 666 | 666 | }else{ |
| @@ -669,11 +669,11 @@ | ||
| 669 | 669 | if( !is_a_version(rid) ){ |
| 670 | 670 | if( errCode>0 ) return errCode; |
| 671 | 671 | fossil_fatal("no such checkin: %s", revision); |
| 672 | 672 | } |
| 673 | 673 | pManifest = manifest_get(rid, CFTYPE_MANIFEST, 0); |
| 674 | - | |
| 674 | + | |
| 675 | 675 | if( pManifest ){ |
| 676 | 676 | pFile = manifest_file_find(pManifest, file); |
| 677 | 677 | if( pFile ){ |
| 678 | 678 | int rc; |
| 679 | 679 | rid = uuid_to_rid(pFile->zUuid, 0); |
| @@ -728,14 +728,14 @@ | ||
| 728 | 728 | Blob record; |
| 729 | 729 | int i; |
| 730 | 730 | int errCode; |
| 731 | 731 | Stmt q; |
| 732 | 732 | |
| 733 | - undo_capture_command_line(); | |
| 733 | + undo_capture_command_line(); | |
| 734 | 734 | zRevision = find_option("revision", "r", 1); |
| 735 | 735 | verify_all_options(); |
| 736 | - | |
| 736 | + | |
| 737 | 737 | if( g.argc<2 ){ |
| 738 | 738 | usage("?OPTIONS? [FILE] ..."); |
| 739 | 739 | } |
| 740 | 740 | if( zRevision && g.argc<3 ){ |
| 741 | 741 | fossil_fatal("the --revision option does not work for the entire tree"); |
| 742 | 742 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -34,11 +34,11 @@ | |
| 34 | */ |
| 35 | static int internalUpdate = 0; |
| 36 | static int internalConflictCnt = 0; |
| 37 | |
| 38 | /* |
| 39 | ** Do an update to version vid. |
| 40 | ** |
| 41 | ** Start an undo session but do not terminate it. Do not autosync. |
| 42 | */ |
| 43 | int update_to(int vid){ |
| 44 | int savedArgc; |
| @@ -157,11 +157,11 @@ | |
| 157 | if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag, |
| 158 | db_get_int("autosync-tries", 1)) ){ |
| 159 | fossil_fatal("Cannot proceed with update"); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /* Create any empty directories now, as well as after the update, |
| 164 | ** so changes in settings are reflected now */ |
| 165 | if( !dryRunFlag ) ensure_empty_dirs_created(); |
| 166 | |
| 167 | if( internalUpdate ){ |
| @@ -182,11 +182,11 @@ | |
| 182 | }else if( !is_a_version(tid) ){ |
| 183 | fossil_fatal("no such version: %s", g.argv[2]); |
| 184 | } |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | /* If no VERSION is specified on the command-line, then look for a |
| 189 | ** descendent of the current version. If there are multiple descendants, |
| 190 | ** look for one from the same branch as the current version. If there |
| 191 | ** are still multiple descendants, show them all and refuse to update |
| 192 | ** until the user selects one. |
| @@ -207,11 +207,11 @@ | |
| 207 | " WHERE tagid=%d AND rid=%d))", |
| 208 | TAG_BRANCH, TAG_BRANCH, vid |
| 209 | ); |
| 210 | if( db_int(0, "SELECT count(*) FROM leaves")>1 ){ |
| 211 | compute_leaves(vid, closeCode); |
| 212 | db_prepare(&q, |
| 213 | "%s " |
| 214 | " AND event.objid IN leaves" |
| 215 | " ORDER BY event.mtime DESC", |
| 216 | timeline_query_for_tty() |
| 217 | ); |
| @@ -220,11 +220,11 @@ | |
| 220 | fossil_fatal("Multiple descendants"); |
| 221 | } |
| 222 | } |
| 223 | tid = db_int(0, "SELECT rid FROM leaves, event" |
| 224 | " WHERE event.objid=leaves.rid" |
| 225 | " ORDER BY event.mtime DESC"); |
| 226 | if( tid==0 ) tid = vid; |
| 227 | } |
| 228 | |
| 229 | if( tid==0 ){ |
| 230 | return; |
| @@ -357,11 +357,11 @@ | |
| 357 | zSep = ""; |
| 358 | for(i=3; i<g.argc; i++){ |
| 359 | file_tree_name(g.argv[i], &treename, 1); |
| 360 | if( file_wd_isdir(g.argv[i])==1 ){ |
| 361 | if( blob_size(&treename) != 1 || blob_str(&treename)[0] != '.' ){ |
| 362 | blob_append_sql(&sql, "%sfn NOT GLOB '%q/*' ", |
| 363 | zSep /*safe-for-%s*/, blob_str(&treename)); |
| 364 | }else{ |
| 365 | blob_reset(&sql); |
| 366 | break; |
| 367 | } |
| @@ -378,11 +378,11 @@ | |
| 378 | |
| 379 | /* |
| 380 | ** Alter the content of the checkout so that it conforms with the |
| 381 | ** target |
| 382 | */ |
| 383 | db_prepare(&q, |
| 384 | "SELECT fn, idv, ridv, idt, ridt, chnged, fnt," |
| 385 | " isexe, islinkv, islinkt, deleted FROM fv ORDER BY 1" |
| 386 | ); |
| 387 | db_prepare(&mtimeXfer, |
| 388 | "UPDATE vfile SET mtime=(SELECT mtime FROM vfile WHERE id=:idv)" |
| @@ -470,11 +470,11 @@ | |
| 470 | }else{ |
| 471 | fossil_print("MERGE %s\n", zName); |
| 472 | } |
| 473 | if( islinkv || islinkt /* || file_wd_islink(zFullPath) */ ){ |
| 474 | fossil_print("***** Cannot merge symlink %s\n", zNewName); |
| 475 | nConflict++; |
| 476 | }else{ |
| 477 | unsigned mergeFlags = dryRunFlag ? MERGE_DRYRUN : 0; |
| 478 | undo_save(zName); |
| 479 | content_get(ridt, &t); |
| 480 | content_get(ridv, &v); |
| @@ -544,11 +544,11 @@ | |
| 544 | fossil_warning("uncommitted %s against %S.", |
| 545 | zLabel, db_column_text(&q, 0)); |
| 546 | nMerge++; |
| 547 | } |
| 548 | db_finalize(&q); |
| 549 | |
| 550 | if( nConflict ){ |
| 551 | if( internalUpdate ){ |
| 552 | internalConflictCnt = nConflict; |
| 553 | nConflict = 0; |
| 554 | }else{ |
| @@ -561,11 +561,11 @@ | |
| 561 | } |
| 562 | if( nMerge ){ |
| 563 | fossil_warning("WARNING: %d uncommitted prior merges", nMerge); |
| 564 | } |
| 565 | } |
| 566 | |
| 567 | /* |
| 568 | ** Clean up the mid and pid VFILE entries. Then commit the changes. |
| 569 | */ |
| 570 | if( dryRunFlag ){ |
| 571 | db_end_transaction(1); /* With --dry-run, rollback changes */ |
| @@ -615,27 +615,27 @@ | |
| 615 | Blob path; |
| 616 | const char *zPath; |
| 617 | |
| 618 | blob_zero(&path); |
| 619 | blob_appendf(&path, "%s/%s", g.zLocalRoot, zDir); |
| 620 | zPath = blob_str(&path); |
| 621 | /* Handle various cases of existence of the directory */ |
| 622 | switch( file_wd_isdir(zPath) ){ |
| 623 | case 0: { /* doesn't exist */ |
| 624 | if( file_mkdir(zPath, 0)!=0 ) { |
| 625 | fossil_warning("couldn't create directory %s as " |
| 626 | "required by empty-dirs setting", zDir); |
| 627 | } |
| 628 | break; |
| 629 | } |
| 630 | case 1: { /* exists, and is a directory */ |
| 631 | /* do nothing - required directory exists already */ |
| 632 | break; |
| 633 | } |
| 634 | case 2: { /* exists, but isn't a directory */ |
| 635 | fossil_warning("file %s found, but a directory is required " |
| 636 | "by empty-dirs setting", zDir); |
| 637 | } |
| 638 | } |
| 639 | blob_reset(&path); |
| 640 | } |
| 641 | } |
| @@ -656,11 +656,11 @@ | |
| 656 | int errCode /* Error code if file not found. Panic if 0. */ |
| 657 | ){ |
| 658 | Manifest *pManifest; |
| 659 | ManifestFile *pFile; |
| 660 | int rid=0; |
| 661 | |
| 662 | if( revision ){ |
| 663 | rid = name_to_typed_rid(revision,"ci"); |
| 664 | }else if( !g.localOpen ){ |
| 665 | rid = name_to_typed_rid(db_get("main-branch","trunk"),"ci"); |
| 666 | }else{ |
| @@ -669,11 +669,11 @@ | |
| 669 | if( !is_a_version(rid) ){ |
| 670 | if( errCode>0 ) return errCode; |
| 671 | fossil_fatal("no such checkin: %s", revision); |
| 672 | } |
| 673 | pManifest = manifest_get(rid, CFTYPE_MANIFEST, 0); |
| 674 | |
| 675 | if( pManifest ){ |
| 676 | pFile = manifest_file_find(pManifest, file); |
| 677 | if( pFile ){ |
| 678 | int rc; |
| 679 | rid = uuid_to_rid(pFile->zUuid, 0); |
| @@ -728,14 +728,14 @@ | |
| 728 | Blob record; |
| 729 | int i; |
| 730 | int errCode; |
| 731 | Stmt q; |
| 732 | |
| 733 | undo_capture_command_line(); |
| 734 | zRevision = find_option("revision", "r", 1); |
| 735 | verify_all_options(); |
| 736 | |
| 737 | if( g.argc<2 ){ |
| 738 | usage("?OPTIONS? [FILE] ..."); |
| 739 | } |
| 740 | if( zRevision && g.argc<3 ){ |
| 741 | fossil_fatal("the --revision option does not work for the entire tree"); |
| 742 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -34,11 +34,11 @@ | |
| 34 | */ |
| 35 | static int internalUpdate = 0; |
| 36 | static int internalConflictCnt = 0; |
| 37 | |
| 38 | /* |
| 39 | ** Do an update to version vid. |
| 40 | ** |
| 41 | ** Start an undo session but do not terminate it. Do not autosync. |
| 42 | */ |
| 43 | int update_to(int vid){ |
| 44 | int savedArgc; |
| @@ -157,11 +157,11 @@ | |
| 157 | if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag, |
| 158 | db_get_int("autosync-tries", 1)) ){ |
| 159 | fossil_fatal("Cannot proceed with update"); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /* Create any empty directories now, as well as after the update, |
| 164 | ** so changes in settings are reflected now */ |
| 165 | if( !dryRunFlag ) ensure_empty_dirs_created(); |
| 166 | |
| 167 | if( internalUpdate ){ |
| @@ -182,11 +182,11 @@ | |
| 182 | }else if( !is_a_version(tid) ){ |
| 183 | fossil_fatal("no such version: %s", g.argv[2]); |
| 184 | } |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | /* If no VERSION is specified on the command-line, then look for a |
| 189 | ** descendent of the current version. If there are multiple descendants, |
| 190 | ** look for one from the same branch as the current version. If there |
| 191 | ** are still multiple descendants, show them all and refuse to update |
| 192 | ** until the user selects one. |
| @@ -207,11 +207,11 @@ | |
| 207 | " WHERE tagid=%d AND rid=%d))", |
| 208 | TAG_BRANCH, TAG_BRANCH, vid |
| 209 | ); |
| 210 | if( db_int(0, "SELECT count(*) FROM leaves")>1 ){ |
| 211 | compute_leaves(vid, closeCode); |
| 212 | db_prepare(&q, |
| 213 | "%s " |
| 214 | " AND event.objid IN leaves" |
| 215 | " ORDER BY event.mtime DESC", |
| 216 | timeline_query_for_tty() |
| 217 | ); |
| @@ -220,11 +220,11 @@ | |
| 220 | fossil_fatal("Multiple descendants"); |
| 221 | } |
| 222 | } |
| 223 | tid = db_int(0, "SELECT rid FROM leaves, event" |
| 224 | " WHERE event.objid=leaves.rid" |
| 225 | " ORDER BY event.mtime DESC"); |
| 226 | if( tid==0 ) tid = vid; |
| 227 | } |
| 228 | |
| 229 | if( tid==0 ){ |
| 230 | return; |
| @@ -357,11 +357,11 @@ | |
| 357 | zSep = ""; |
| 358 | for(i=3; i<g.argc; i++){ |
| 359 | file_tree_name(g.argv[i], &treename, 1); |
| 360 | if( file_wd_isdir(g.argv[i])==1 ){ |
| 361 | if( blob_size(&treename) != 1 || blob_str(&treename)[0] != '.' ){ |
| 362 | blob_append_sql(&sql, "%sfn NOT GLOB '%q/*' ", |
| 363 | zSep /*safe-for-%s*/, blob_str(&treename)); |
| 364 | }else{ |
| 365 | blob_reset(&sql); |
| 366 | break; |
| 367 | } |
| @@ -378,11 +378,11 @@ | |
| 378 | |
| 379 | /* |
| 380 | ** Alter the content of the checkout so that it conforms with the |
| 381 | ** target |
| 382 | */ |
| 383 | db_prepare(&q, |
| 384 | "SELECT fn, idv, ridv, idt, ridt, chnged, fnt," |
| 385 | " isexe, islinkv, islinkt, deleted FROM fv ORDER BY 1" |
| 386 | ); |
| 387 | db_prepare(&mtimeXfer, |
| 388 | "UPDATE vfile SET mtime=(SELECT mtime FROM vfile WHERE id=:idv)" |
| @@ -470,11 +470,11 @@ | |
| 470 | }else{ |
| 471 | fossil_print("MERGE %s\n", zName); |
| 472 | } |
| 473 | if( islinkv || islinkt /* || file_wd_islink(zFullPath) */ ){ |
| 474 | fossil_print("***** Cannot merge symlink %s\n", zNewName); |
| 475 | nConflict++; |
| 476 | }else{ |
| 477 | unsigned mergeFlags = dryRunFlag ? MERGE_DRYRUN : 0; |
| 478 | undo_save(zName); |
| 479 | content_get(ridt, &t); |
| 480 | content_get(ridv, &v); |
| @@ -544,11 +544,11 @@ | |
| 544 | fossil_warning("uncommitted %s against %S.", |
| 545 | zLabel, db_column_text(&q, 0)); |
| 546 | nMerge++; |
| 547 | } |
| 548 | db_finalize(&q); |
| 549 | |
| 550 | if( nConflict ){ |
| 551 | if( internalUpdate ){ |
| 552 | internalConflictCnt = nConflict; |
| 553 | nConflict = 0; |
| 554 | }else{ |
| @@ -561,11 +561,11 @@ | |
| 561 | } |
| 562 | if( nMerge ){ |
| 563 | fossil_warning("WARNING: %d uncommitted prior merges", nMerge); |
| 564 | } |
| 565 | } |
| 566 | |
| 567 | /* |
| 568 | ** Clean up the mid and pid VFILE entries. Then commit the changes. |
| 569 | */ |
| 570 | if( dryRunFlag ){ |
| 571 | db_end_transaction(1); /* With --dry-run, rollback changes */ |
| @@ -615,27 +615,27 @@ | |
| 615 | Blob path; |
| 616 | const char *zPath; |
| 617 | |
| 618 | blob_zero(&path); |
| 619 | blob_appendf(&path, "%s/%s", g.zLocalRoot, zDir); |
| 620 | zPath = blob_str(&path); |
| 621 | /* Handle various cases of existence of the directory */ |
| 622 | switch( file_wd_isdir(zPath) ){ |
| 623 | case 0: { /* doesn't exist */ |
| 624 | if( file_mkdir(zPath, 0)!=0 ) { |
| 625 | fossil_warning("couldn't create directory %s as " |
| 626 | "required by empty-dirs setting", zDir); |
| 627 | } |
| 628 | break; |
| 629 | } |
| 630 | case 1: { /* exists, and is a directory */ |
| 631 | /* do nothing - required directory exists already */ |
| 632 | break; |
| 633 | } |
| 634 | case 2: { /* exists, but isn't a directory */ |
| 635 | fossil_warning("file %s found, but a directory is required " |
| 636 | "by empty-dirs setting", zDir); |
| 637 | } |
| 638 | } |
| 639 | blob_reset(&path); |
| 640 | } |
| 641 | } |
| @@ -656,11 +656,11 @@ | |
| 656 | int errCode /* Error code if file not found. Panic if 0. */ |
| 657 | ){ |
| 658 | Manifest *pManifest; |
| 659 | ManifestFile *pFile; |
| 660 | int rid=0; |
| 661 | |
| 662 | if( revision ){ |
| 663 | rid = name_to_typed_rid(revision,"ci"); |
| 664 | }else if( !g.localOpen ){ |
| 665 | rid = name_to_typed_rid(db_get("main-branch","trunk"),"ci"); |
| 666 | }else{ |
| @@ -669,11 +669,11 @@ | |
| 669 | if( !is_a_version(rid) ){ |
| 670 | if( errCode>0 ) return errCode; |
| 671 | fossil_fatal("no such checkin: %s", revision); |
| 672 | } |
| 673 | pManifest = manifest_get(rid, CFTYPE_MANIFEST, 0); |
| 674 | |
| 675 | if( pManifest ){ |
| 676 | pFile = manifest_file_find(pManifest, file); |
| 677 | if( pFile ){ |
| 678 | int rc; |
| 679 | rid = uuid_to_rid(pFile->zUuid, 0); |
| @@ -728,14 +728,14 @@ | |
| 728 | Blob record; |
| 729 | int i; |
| 730 | int errCode; |
| 731 | Stmt q; |
| 732 | |
| 733 | undo_capture_command_line(); |
| 734 | zRevision = find_option("revision", "r", 1); |
| 735 | verify_all_options(); |
| 736 | |
| 737 | if( g.argc<2 ){ |
| 738 | usage("?OPTIONS? [FILE] ..."); |
| 739 | } |
| 740 | if( zRevision && g.argc<3 ){ |
| 741 | fossil_fatal("the --revision option does not work for the entire tree"); |
| 742 |
+2
-2
| --- src/verify.c | ||
| +++ src/verify.c | ||
| @@ -63,11 +63,11 @@ | ||
| 63 | 63 | */ |
| 64 | 64 | static Bag toVerify; |
| 65 | 65 | static int inFinalVerify = 0; |
| 66 | 66 | |
| 67 | 67 | /* |
| 68 | -** This routine is called just prior to each commit operation. | |
| 68 | +** This routine is called just prior to each commit operation. | |
| 69 | 69 | ** |
| 70 | 70 | ** Invoke verify_rid() on every record that has been added or modified |
| 71 | 71 | ** in the repository, in order to make sure that the repository is sane. |
| 72 | 72 | */ |
| 73 | 73 | static int verify_at_commit(void){ |
| @@ -84,11 +84,11 @@ | ||
| 84 | 84 | return 0; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /* |
| 88 | 88 | ** Arrange to verify a particular record prior to committing. |
| 89 | -** | |
| 89 | +** | |
| 90 | 90 | ** If the record rid is less than 1, then just initialize the |
| 91 | 91 | ** verification system but do not record anything as needing |
| 92 | 92 | ** verification. |
| 93 | 93 | */ |
| 94 | 94 | void verify_before_commit(int rid){ |
| 95 | 95 |
| --- src/verify.c | |
| +++ src/verify.c | |
| @@ -63,11 +63,11 @@ | |
| 63 | */ |
| 64 | static Bag toVerify; |
| 65 | static int inFinalVerify = 0; |
| 66 | |
| 67 | /* |
| 68 | ** This routine is called just prior to each commit operation. |
| 69 | ** |
| 70 | ** Invoke verify_rid() on every record that has been added or modified |
| 71 | ** in the repository, in order to make sure that the repository is sane. |
| 72 | */ |
| 73 | static int verify_at_commit(void){ |
| @@ -84,11 +84,11 @@ | |
| 84 | return 0; |
| 85 | } |
| 86 | |
| 87 | /* |
| 88 | ** Arrange to verify a particular record prior to committing. |
| 89 | ** |
| 90 | ** If the record rid is less than 1, then just initialize the |
| 91 | ** verification system but do not record anything as needing |
| 92 | ** verification. |
| 93 | */ |
| 94 | void verify_before_commit(int rid){ |
| 95 |
| --- src/verify.c | |
| +++ src/verify.c | |
| @@ -63,11 +63,11 @@ | |
| 63 | */ |
| 64 | static Bag toVerify; |
| 65 | static int inFinalVerify = 0; |
| 66 | |
| 67 | /* |
| 68 | ** This routine is called just prior to each commit operation. |
| 69 | ** |
| 70 | ** Invoke verify_rid() on every record that has been added or modified |
| 71 | ** in the repository, in order to make sure that the repository is sane. |
| 72 | */ |
| 73 | static int verify_at_commit(void){ |
| @@ -84,11 +84,11 @@ | |
| 84 | return 0; |
| 85 | } |
| 86 | |
| 87 | /* |
| 88 | ** Arrange to verify a particular record prior to committing. |
| 89 | ** |
| 90 | ** If the record rid is less than 1, then just initialize the |
| 91 | ** verification system but do not record anything as needing |
| 92 | ** verification. |
| 93 | */ |
| 94 | void verify_before_commit(int rid){ |
| 95 |