Fossil SCM
Remove some more duplicates in comments. No functional changes.
Commit
d83638e40e3d335e9d260f7738c288b4c19a85e504546c192a3bd89d71df5588
Parent
c91fd40bea4af9d…
17 files changed
+1
-1
+1
-1
+1
-1
+2
-2
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
~
src/cgi.c
~
src/fileedit.c
~
src/fossil.confirmer.js
~
src/fossil.diff.js
~
src/fossil.dom.js
~
src/fossil.fetch.js
~
src/fossil.page.chat.js
~
src/fossil.page.fileedit.js
~
src/fossil.page.wikiedit.js
~
src/fossil.pikchr.js
~
src/fossil.wikiedit-wysiwyg.js
~
src/graph.c
~
src/piechart.c
~
src/printf.c
~
src/schema.c
~
src/stat.c
~
src/th_main.c
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -1682,11 +1682,11 @@ | ||
| 1682 | 1682 | ** be extended in the future. |
| 1683 | 1683 | ** |
| 1684 | 1684 | ** Checks are omitted for any logged-in user. |
| 1685 | 1685 | ** |
| 1686 | 1686 | ** This is the primary defense against attack. Fossil should easily be |
| 1687 | -** proof against SQL injection and XSS attacks even without without this | |
| 1687 | +** proof against SQL injection and XSS attacks even without this | |
| 1688 | 1688 | ** routine. Rather, this is an attempt to avoid denial-of-service caused |
| 1689 | 1689 | ** by persistent spiders that hammer the server with dozens or hundreds of |
| 1690 | 1690 | ** probes per seconds as they look for vulnerabilities. In other |
| 1691 | 1691 | ** words, this is an effort to reduce the CPU load imposed by malicious |
| 1692 | 1692 | ** spiders. Though those routine might help make attacks harder, it is |
| 1693 | 1693 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -1682,11 +1682,11 @@ | |
| 1682 | ** be extended in the future. |
| 1683 | ** |
| 1684 | ** Checks are omitted for any logged-in user. |
| 1685 | ** |
| 1686 | ** This is the primary defense against attack. Fossil should easily be |
| 1687 | ** proof against SQL injection and XSS attacks even without without this |
| 1688 | ** routine. Rather, this is an attempt to avoid denial-of-service caused |
| 1689 | ** by persistent spiders that hammer the server with dozens or hundreds of |
| 1690 | ** probes per seconds as they look for vulnerabilities. In other |
| 1691 | ** words, this is an effort to reduce the CPU load imposed by malicious |
| 1692 | ** spiders. Though those routine might help make attacks harder, it is |
| 1693 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -1682,11 +1682,11 @@ | |
| 1682 | ** be extended in the future. |
| 1683 | ** |
| 1684 | ** Checks are omitted for any logged-in user. |
| 1685 | ** |
| 1686 | ** This is the primary defense against attack. Fossil should easily be |
| 1687 | ** proof against SQL injection and XSS attacks even without this |
| 1688 | ** routine. Rather, this is an attempt to avoid denial-of-service caused |
| 1689 | ** by persistent spiders that hammer the server with dozens or hundreds of |
| 1690 | ** probes per seconds as they look for vulnerabilities. In other |
| 1691 | ** words, this is an effort to reduce the CPU load imposed by malicious |
| 1692 | ** spiders. Though those routine might help make attacks harder, it is |
| 1693 |
+1
-1
| --- src/fileedit.c | ||
| +++ src/fileedit.c | ||
| @@ -400,11 +400,11 @@ | ||
| 400 | 400 | ** This routine uses the state from the given fully-populated pCI |
| 401 | 401 | ** argument to add pCI->fileContent to the database, and create and |
| 402 | 402 | ** save a manifest for that change. Ownership of pCI and its contents |
| 403 | 403 | ** are unchanged. |
| 404 | 404 | ** |
| 405 | -** This function may may modify pCI as follows: | |
| 405 | +** This function may modify pCI as follows: | |
| 406 | 406 | ** |
| 407 | 407 | ** - If one of Manifest pCI->pParent or pCI->zParentUuid are NULL, |
| 408 | 408 | ** then the other will be assigned based on its counterpart. Both |
| 409 | 409 | ** may not be NULL. |
| 410 | 410 | ** |
| 411 | 411 |
| --- src/fileedit.c | |
| +++ src/fileedit.c | |
| @@ -400,11 +400,11 @@ | |
| 400 | ** This routine uses the state from the given fully-populated pCI |
| 401 | ** argument to add pCI->fileContent to the database, and create and |
| 402 | ** save a manifest for that change. Ownership of pCI and its contents |
| 403 | ** are unchanged. |
| 404 | ** |
| 405 | ** This function may may modify pCI as follows: |
| 406 | ** |
| 407 | ** - If one of Manifest pCI->pParent or pCI->zParentUuid are NULL, |
| 408 | ** then the other will be assigned based on its counterpart. Both |
| 409 | ** may not be NULL. |
| 410 | ** |
| 411 |
| --- src/fileedit.c | |
| +++ src/fileedit.c | |
| @@ -400,11 +400,11 @@ | |
| 400 | ** This routine uses the state from the given fully-populated pCI |
| 401 | ** argument to add pCI->fileContent to the database, and create and |
| 402 | ** save a manifest for that change. Ownership of pCI and its contents |
| 403 | ** are unchanged. |
| 404 | ** |
| 405 | ** This function may modify pCI as follows: |
| 406 | ** |
| 407 | ** - If one of Manifest pCI->pParent or pCI->zParentUuid are NULL, |
| 408 | ** then the other will be assigned based on its counterpart. Both |
| 409 | ** may not be NULL. |
| 410 | ** |
| 411 |
+1
-1
| --- src/fossil.confirmer.js | ||
| +++ src/fossil.confirmer.js | ||
| @@ -168,11 +168,11 @@ | ||
| 168 | 168 | childs.forEach((e)=>target.appendChild(e)); |
| 169 | 169 | } |
| 170 | 170 | } |
| 171 | 171 | const formatCountdown = (txt, number) => txt + " ["+number+"]"; |
| 172 | 172 | if(opt.pinSize && opt.confirmText){ |
| 173 | - /* Try to pin the element's width the the greater of its | |
| 173 | + /* Try to pin the element's width to the greater of its | |
| 174 | 174 | current width or its waiting-on-confirmation width |
| 175 | 175 | to avoid layout reflow when it's activated. */ |
| 176 | 176 | const digits = (''+(opt.timeout/1000 || opt.ticks)).length; |
| 177 | 177 | const lblLong = formatCountdown(opt.confirmText, "00000000".substr(0,digits+1)); |
| 178 | 178 | const w1 = parseInt(target.getBoundingClientRect().width); |
| 179 | 179 |
| --- src/fossil.confirmer.js | |
| +++ src/fossil.confirmer.js | |
| @@ -168,11 +168,11 @@ | |
| 168 | childs.forEach((e)=>target.appendChild(e)); |
| 169 | } |
| 170 | } |
| 171 | const formatCountdown = (txt, number) => txt + " ["+number+"]"; |
| 172 | if(opt.pinSize && opt.confirmText){ |
| 173 | /* Try to pin the element's width the the greater of its |
| 174 | current width or its waiting-on-confirmation width |
| 175 | to avoid layout reflow when it's activated. */ |
| 176 | const digits = (''+(opt.timeout/1000 || opt.ticks)).length; |
| 177 | const lblLong = formatCountdown(opt.confirmText, "00000000".substr(0,digits+1)); |
| 178 | const w1 = parseInt(target.getBoundingClientRect().width); |
| 179 |
| --- src/fossil.confirmer.js | |
| +++ src/fossil.confirmer.js | |
| @@ -168,11 +168,11 @@ | |
| 168 | childs.forEach((e)=>target.appendChild(e)); |
| 169 | } |
| 170 | } |
| 171 | const formatCountdown = (txt, number) => txt + " ["+number+"]"; |
| 172 | if(opt.pinSize && opt.confirmText){ |
| 173 | /* Try to pin the element's width to the greater of its |
| 174 | current width or its waiting-on-confirmation width |
| 175 | to avoid layout reflow when it's activated. */ |
| 176 | const digits = (''+(opt.timeout/1000 || opt.ticks)).length; |
| 177 | const lblLong = formatCountdown(opt.confirmText, "00000000".substr(0,digits+1)); |
| 178 | const w1 = parseInt(target.getBoundingClientRect().width); |
| 179 |
+2
-2
| --- src/fossil.diff.js | ||
| +++ src/fossil.diff.js | ||
| @@ -35,11 +35,11 @@ | ||
| 35 | 35 | } |
| 36 | 36 | const D = window.fossil.dom; |
| 37 | 37 | const allToggles = [/*collection of all diff-toggle checkboxes*/]; |
| 38 | 38 | let checkedCount = |
| 39 | 39 | 0 /* When showing more than one diff, keep track of how many |
| 40 | - "show/hide" checkboxes are are checked so we can update the | |
| 40 | + "show/hide" checkboxes are checked so we can update the | |
| 41 | 41 | "show/hide all" label dynamically. */; |
| 42 | 42 | let btnAll /* UI control to show/hide all diffs */; |
| 43 | 43 | /* Install a diff-toggle button for the given diff table element. */ |
| 44 | 44 | const addToggle = function(diffElem){ |
| 45 | 45 | const sib = diffElem.previousElementSibling, |
| @@ -718,11 +718,11 @@ | ||
| 718 | 718 | : undefined; |
| 719 | 719 | const keySbsScroll = 'sync-diff-scroll' /* F.storage key for persistent user preference */; |
| 720 | 720 | if( eToggleParent ){ |
| 721 | 721 | /* Add a checkbox to toggle sbs scroll sync. Remember that in |
| 722 | 722 | order to be UI-consistent in the /vdiff page we have to ensure |
| 723 | - that the checkbox is to the LEFT of of its label. We store the | |
| 723 | + that the checkbox is to the LEFT of its label. We store the | |
| 724 | 724 | sync-scroll preference in F.storage (not a cookie) so that it |
| 725 | 725 | persists across page loads and different apps. */ |
| 726 | 726 | cbSync = D.checkbox(keySbsScroll, F.storage.getBool(keySbsScroll,true)); |
| 727 | 727 | D.append(eToggleParent, D.append( |
| 728 | 728 | D.addClass(D.create('span'), 'input-with-label'), |
| 729 | 729 |
| --- src/fossil.diff.js | |
| +++ src/fossil.diff.js | |
| @@ -35,11 +35,11 @@ | |
| 35 | } |
| 36 | const D = window.fossil.dom; |
| 37 | const allToggles = [/*collection of all diff-toggle checkboxes*/]; |
| 38 | let checkedCount = |
| 39 | 0 /* When showing more than one diff, keep track of how many |
| 40 | "show/hide" checkboxes are are checked so we can update the |
| 41 | "show/hide all" label dynamically. */; |
| 42 | let btnAll /* UI control to show/hide all diffs */; |
| 43 | /* Install a diff-toggle button for the given diff table element. */ |
| 44 | const addToggle = function(diffElem){ |
| 45 | const sib = diffElem.previousElementSibling, |
| @@ -718,11 +718,11 @@ | |
| 718 | : undefined; |
| 719 | const keySbsScroll = 'sync-diff-scroll' /* F.storage key for persistent user preference */; |
| 720 | if( eToggleParent ){ |
| 721 | /* Add a checkbox to toggle sbs scroll sync. Remember that in |
| 722 | order to be UI-consistent in the /vdiff page we have to ensure |
| 723 | that the checkbox is to the LEFT of of its label. We store the |
| 724 | sync-scroll preference in F.storage (not a cookie) so that it |
| 725 | persists across page loads and different apps. */ |
| 726 | cbSync = D.checkbox(keySbsScroll, F.storage.getBool(keySbsScroll,true)); |
| 727 | D.append(eToggleParent, D.append( |
| 728 | D.addClass(D.create('span'), 'input-with-label'), |
| 729 |
| --- src/fossil.diff.js | |
| +++ src/fossil.diff.js | |
| @@ -35,11 +35,11 @@ | |
| 35 | } |
| 36 | const D = window.fossil.dom; |
| 37 | const allToggles = [/*collection of all diff-toggle checkboxes*/]; |
| 38 | let checkedCount = |
| 39 | 0 /* When showing more than one diff, keep track of how many |
| 40 | "show/hide" checkboxes are checked so we can update the |
| 41 | "show/hide all" label dynamically. */; |
| 42 | let btnAll /* UI control to show/hide all diffs */; |
| 43 | /* Install a diff-toggle button for the given diff table element. */ |
| 44 | const addToggle = function(diffElem){ |
| 45 | const sib = diffElem.previousElementSibling, |
| @@ -718,11 +718,11 @@ | |
| 718 | : undefined; |
| 719 | const keySbsScroll = 'sync-diff-scroll' /* F.storage key for persistent user preference */; |
| 720 | if( eToggleParent ){ |
| 721 | /* Add a checkbox to toggle sbs scroll sync. Remember that in |
| 722 | order to be UI-consistent in the /vdiff page we have to ensure |
| 723 | that the checkbox is to the LEFT of its label. We store the |
| 724 | sync-scroll preference in F.storage (not a cookie) so that it |
| 725 | persists across page loads and different apps. */ |
| 726 | cbSync = D.checkbox(keySbsScroll, F.storage.getBool(keySbsScroll,true)); |
| 727 | D.append(eToggleParent, D.append( |
| 728 | D.addClass(D.create('span'), 'input-with-label'), |
| 729 |
+1
-1
| --- src/fossil.dom.js | ||
| +++ src/fossil.dom.js | ||
| @@ -259,11 +259,11 @@ | ||
| 259 | 259 | dom.td = dom.createElemFactoryWithOptionalParent('td'); |
| 260 | 260 | dom.th = dom.createElemFactoryWithOptionalParent('th'); |
| 261 | 261 | |
| 262 | 262 | /** |
| 263 | 263 | Creates and returns a FIELDSET element, optionaly with a LEGEND |
| 264 | - element added to it. If legendText is an HTMLElement then is is | |
| 264 | + element added to it. If legendText is an HTMLElement then it is | |
| 265 | 265 | assumed to be a LEGEND and is appended as-is, else it is assumed |
| 266 | 266 | (if truthy) to be a value suitable for passing to |
| 267 | 267 | dom.append(aLegendElement,...). |
| 268 | 268 | */ |
| 269 | 269 | dom.fieldset = function(legendText){ |
| 270 | 270 |
| --- src/fossil.dom.js | |
| +++ src/fossil.dom.js | |
| @@ -259,11 +259,11 @@ | |
| 259 | dom.td = dom.createElemFactoryWithOptionalParent('td'); |
| 260 | dom.th = dom.createElemFactoryWithOptionalParent('th'); |
| 261 | |
| 262 | /** |
| 263 | Creates and returns a FIELDSET element, optionaly with a LEGEND |
| 264 | element added to it. If legendText is an HTMLElement then is is |
| 265 | assumed to be a LEGEND and is appended as-is, else it is assumed |
| 266 | (if truthy) to be a value suitable for passing to |
| 267 | dom.append(aLegendElement,...). |
| 268 | */ |
| 269 | dom.fieldset = function(legendText){ |
| 270 |
| --- src/fossil.dom.js | |
| +++ src/fossil.dom.js | |
| @@ -259,11 +259,11 @@ | |
| 259 | dom.td = dom.createElemFactoryWithOptionalParent('td'); |
| 260 | dom.th = dom.createElemFactoryWithOptionalParent('th'); |
| 261 | |
| 262 | /** |
| 263 | Creates and returns a FIELDSET element, optionaly with a LEGEND |
| 264 | element added to it. If legendText is an HTMLElement then it is |
| 265 | assumed to be a LEGEND and is appended as-is, else it is assumed |
| 266 | (if truthy) to be a value suitable for passing to |
| 267 | dom.append(aLegendElement,...). |
| 268 | */ |
| 269 | dom.fieldset = function(legendText){ |
| 270 |
+1
-1
| --- src/fossil.fetch.js | ||
| +++ src/fossil.fetch.js | ||
| @@ -61,11 +61,11 @@ | ||
| 61 | 61 | reported here, else they are reported through onerror(). |
| 62 | 62 | Unfortunately, XHR fires two events for a timeout: an |
| 63 | 63 | onreadystatechange() and an ontimeout(), in that order. From the |
| 64 | 64 | former, however, we cannot unambiguously identify the error as |
| 65 | 65 | having been caused by a timeout, so clients which set ontimeout() |
| 66 | - will get _two_ callback calls: one with with an HTTP error response | |
| 66 | + will get _two_ callback calls: one with an HTTP error response | |
| 67 | 67 | followed immediately by an ontimeout() response. Error objects |
| 68 | 68 | passed to this will have (.name='timeout', .status=xhr.HttpStatus). |
| 69 | 69 | In the context of the callback, the options object is "this", Like |
| 70 | 70 | onerror(), any exceptions thrown by the ontimeout() handler are |
| 71 | 71 | suppressed, but may generate a console error message. The onerror() |
| 72 | 72 |
| --- src/fossil.fetch.js | |
| +++ src/fossil.fetch.js | |
| @@ -61,11 +61,11 @@ | |
| 61 | reported here, else they are reported through onerror(). |
| 62 | Unfortunately, XHR fires two events for a timeout: an |
| 63 | onreadystatechange() and an ontimeout(), in that order. From the |
| 64 | former, however, we cannot unambiguously identify the error as |
| 65 | having been caused by a timeout, so clients which set ontimeout() |
| 66 | will get _two_ callback calls: one with with an HTTP error response |
| 67 | followed immediately by an ontimeout() response. Error objects |
| 68 | passed to this will have (.name='timeout', .status=xhr.HttpStatus). |
| 69 | In the context of the callback, the options object is "this", Like |
| 70 | onerror(), any exceptions thrown by the ontimeout() handler are |
| 71 | suppressed, but may generate a console error message. The onerror() |
| 72 |
| --- src/fossil.fetch.js | |
| +++ src/fossil.fetch.js | |
| @@ -61,11 +61,11 @@ | |
| 61 | reported here, else they are reported through onerror(). |
| 62 | Unfortunately, XHR fires two events for a timeout: an |
| 63 | onreadystatechange() and an ontimeout(), in that order. From the |
| 64 | former, however, we cannot unambiguously identify the error as |
| 65 | having been caused by a timeout, so clients which set ontimeout() |
| 66 | will get _two_ callback calls: one with an HTTP error response |
| 67 | followed immediately by an ontimeout() response. Error objects |
| 68 | passed to this will have (.name='timeout', .status=xhr.HttpStatus). |
| 69 | In the context of the callback, the options object is "this", Like |
| 70 | onerror(), any exceptions thrown by the ontimeout() handler are |
| 71 | suppressed, but may generate a console error message. The onerror() |
| 72 |
+1
-1
| --- src/fossil.page.chat.js | ||
| +++ src/fossil.page.chat.js | ||
| @@ -357,11 +357,11 @@ | ||
| 357 | 357 | /** Either scrolls .message-widget element eMsg into view |
| 358 | 358 | immediately or, if it represents an inlined image, delays |
| 359 | 359 | the scroll until the image is loaded, at which point it will |
| 360 | 360 | scroll to either the newest message, if one is set or to |
| 361 | 361 | eMsg (the liklihood is good, at least on initial page load, |
| 362 | - that the the image won't be loaded until other messages have | |
| 362 | + that the image won't be loaded until other messages have | |
| 363 | 363 | been injected). */ |
| 364 | 364 | scheduleScrollOfMsg: function(eMsg){ |
| 365 | 365 | if(1===+eMsg.dataset.hasImage){ |
| 366 | 366 | eMsg.querySelector('img').addEventListener( |
| 367 | 367 | 'load', ()=>(this.e.newestMessage || eMsg).scrollIntoView(false) |
| 368 | 368 |
| --- src/fossil.page.chat.js | |
| +++ src/fossil.page.chat.js | |
| @@ -357,11 +357,11 @@ | |
| 357 | /** Either scrolls .message-widget element eMsg into view |
| 358 | immediately or, if it represents an inlined image, delays |
| 359 | the scroll until the image is loaded, at which point it will |
| 360 | scroll to either the newest message, if one is set or to |
| 361 | eMsg (the liklihood is good, at least on initial page load, |
| 362 | that the the image won't be loaded until other messages have |
| 363 | been injected). */ |
| 364 | scheduleScrollOfMsg: function(eMsg){ |
| 365 | if(1===+eMsg.dataset.hasImage){ |
| 366 | eMsg.querySelector('img').addEventListener( |
| 367 | 'load', ()=>(this.e.newestMessage || eMsg).scrollIntoView(false) |
| 368 |
| --- src/fossil.page.chat.js | |
| +++ src/fossil.page.chat.js | |
| @@ -357,11 +357,11 @@ | |
| 357 | /** Either scrolls .message-widget element eMsg into view |
| 358 | immediately or, if it represents an inlined image, delays |
| 359 | the scroll until the image is loaded, at which point it will |
| 360 | scroll to either the newest message, if one is set or to |
| 361 | eMsg (the liklihood is good, at least on initial page load, |
| 362 | that the image won't be loaded until other messages have |
| 363 | been injected). */ |
| 364 | scheduleScrollOfMsg: function(eMsg){ |
| 365 | if(1===+eMsg.dataset.hasImage){ |
| 366 | eMsg.querySelector('img').addEventListener( |
| 367 | 'load', ()=>(this.e.newestMessage || eMsg).scrollIntoView(false) |
| 368 |
+1
-1
| --- src/fossil.page.fileedit.js | ||
| +++ src/fossil.page.fileedit.js | ||
| @@ -1149,11 +1149,11 @@ | ||
| 1149 | 1149 | return this; |
| 1150 | 1150 | }; |
| 1151 | 1151 | |
| 1152 | 1152 | /** |
| 1153 | 1153 | Fetches the page preview based on the contents and settings of |
| 1154 | - this page's input fields, and updates the UI with with the | |
| 1154 | + this page's input fields, and updates the UI with the | |
| 1155 | 1155 | preview. |
| 1156 | 1156 | |
| 1157 | 1157 | Returns this object, noting that the operation is async. |
| 1158 | 1158 | */ |
| 1159 | 1159 | P.preview = function f(switchToTab){ |
| 1160 | 1160 |
| --- src/fossil.page.fileedit.js | |
| +++ src/fossil.page.fileedit.js | |
| @@ -1149,11 +1149,11 @@ | |
| 1149 | return this; |
| 1150 | }; |
| 1151 | |
| 1152 | /** |
| 1153 | Fetches the page preview based on the contents and settings of |
| 1154 | this page's input fields, and updates the UI with with the |
| 1155 | preview. |
| 1156 | |
| 1157 | Returns this object, noting that the operation is async. |
| 1158 | */ |
| 1159 | P.preview = function f(switchToTab){ |
| 1160 |
| --- src/fossil.page.fileedit.js | |
| +++ src/fossil.page.fileedit.js | |
| @@ -1149,11 +1149,11 @@ | |
| 1149 | return this; |
| 1150 | }; |
| 1151 | |
| 1152 | /** |
| 1153 | Fetches the page preview based on the contents and settings of |
| 1154 | this page's input fields, and updates the UI with the |
| 1155 | preview. |
| 1156 | |
| 1157 | Returns this object, noting that the operation is async. |
| 1158 | */ |
| 1159 | P.preview = function f(switchToTab){ |
| 1160 |
+1
-1
| --- src/fossil.page.wikiedit.js | ||
| +++ src/fossil.page.wikiedit.js | ||
| @@ -1457,11 +1457,11 @@ | ||
| 1457 | 1457 | return this; |
| 1458 | 1458 | }; |
| 1459 | 1459 | |
| 1460 | 1460 | /** |
| 1461 | 1461 | Fetches the page preview based on the contents and settings of |
| 1462 | - this page's input fields, and updates the UI with with the | |
| 1462 | + this page's input fields, and updates the UI with the | |
| 1463 | 1463 | preview. |
| 1464 | 1464 | |
| 1465 | 1465 | Returns this object, noting that the operation is async. |
| 1466 | 1466 | */ |
| 1467 | 1467 | P.preview = function f(switchToTab){ |
| 1468 | 1468 |
| --- src/fossil.page.wikiedit.js | |
| +++ src/fossil.page.wikiedit.js | |
| @@ -1457,11 +1457,11 @@ | |
| 1457 | return this; |
| 1458 | }; |
| 1459 | |
| 1460 | /** |
| 1461 | Fetches the page preview based on the contents and settings of |
| 1462 | this page's input fields, and updates the UI with with the |
| 1463 | preview. |
| 1464 | |
| 1465 | Returns this object, noting that the operation is async. |
| 1466 | */ |
| 1467 | P.preview = function f(switchToTab){ |
| 1468 |
| --- src/fossil.page.wikiedit.js | |
| +++ src/fossil.page.wikiedit.js | |
| @@ -1457,11 +1457,11 @@ | |
| 1457 | return this; |
| 1458 | }; |
| 1459 | |
| 1460 | /** |
| 1461 | Fetches the page preview based on the contents and settings of |
| 1462 | this page's input fields, and updates the UI with the |
| 1463 | preview. |
| 1464 | |
| 1465 | Returns this object, noting that the operation is async. |
| 1466 | */ |
| 1467 | P.preview = function f(switchToTab){ |
| 1468 |
+1
-1
| --- src/fossil.pikchr.js | ||
| +++ src/fossil.pikchr.js | ||
| @@ -54,11 +54,11 @@ | ||
| 54 | 54 | meta) is handled differently everywhere. Shift is used |
| 55 | 55 | by the browser, Ctrl doesn't work on an iMac, and Alt is |
| 56 | 56 | intercepted by most Linux window managers to control |
| 57 | 57 | window movement! So... we just listen for *any* of them |
| 58 | 58 | (except Shift) and the user will need to find one which |
| 59 | - works on on their environment. */ | |
| 59 | + works on their environment. */ | |
| 60 | 60 | || this.classList.contains('toggle')){ |
| 61 | 61 | this.classList.toggle('source'); |
| 62 | 62 | ev.stopPropagation(); |
| 63 | 63 | ev.preventDefault(); |
| 64 | 64 | } |
| 65 | 65 |
| --- src/fossil.pikchr.js | |
| +++ src/fossil.pikchr.js | |
| @@ -54,11 +54,11 @@ | |
| 54 | meta) is handled differently everywhere. Shift is used |
| 55 | by the browser, Ctrl doesn't work on an iMac, and Alt is |
| 56 | intercepted by most Linux window managers to control |
| 57 | window movement! So... we just listen for *any* of them |
| 58 | (except Shift) and the user will need to find one which |
| 59 | works on on their environment. */ |
| 60 | || this.classList.contains('toggle')){ |
| 61 | this.classList.toggle('source'); |
| 62 | ev.stopPropagation(); |
| 63 | ev.preventDefault(); |
| 64 | } |
| 65 |
| --- src/fossil.pikchr.js | |
| +++ src/fossil.pikchr.js | |
| @@ -54,11 +54,11 @@ | |
| 54 | meta) is handled differently everywhere. Shift is used |
| 55 | by the browser, Ctrl doesn't work on an iMac, and Alt is |
| 56 | intercepted by most Linux window managers to control |
| 57 | window movement! So... we just listen for *any* of them |
| 58 | (except Shift) and the user will need to find one which |
| 59 | works on their environment. */ |
| 60 | || this.classList.contains('toggle')){ |
| 61 | this.classList.toggle('source'); |
| 62 | ev.stopPropagation(); |
| 63 | ev.preventDefault(); |
| 64 | } |
| 65 |
+1
-1
| --- src/fossil.wikiedit-wysiwyg.js | ||
| +++ src/fossil.wikiedit-wysiwyg.js | ||
| @@ -459,11 +459,11 @@ | ||
| 459 | 459 | editor. |
| 460 | 460 | |
| 461 | 461 | Must either be called via an onPageLoad handler via the site |
| 462 | 462 | skin's footer or else it can be called manually from the dev |
| 463 | 463 | tools console. Calling it too early (e.g. in the page footer |
| 464 | - outside of an an onPageLoad handler) will crash because wikiedit | |
| 464 | + outside of an onPageLoad handler) will crash because wikiedit | |
| 465 | 465 | has not been initialized. |
| 466 | 466 | */ |
| 467 | 467 | init: function(){ |
| 468 | 468 | initDoc(); |
| 469 | 469 | const content = F.page.wikiContent() || ''; |
| 470 | 470 |
| --- src/fossil.wikiedit-wysiwyg.js | |
| +++ src/fossil.wikiedit-wysiwyg.js | |
| @@ -459,11 +459,11 @@ | |
| 459 | editor. |
| 460 | |
| 461 | Must either be called via an onPageLoad handler via the site |
| 462 | skin's footer or else it can be called manually from the dev |
| 463 | tools console. Calling it too early (e.g. in the page footer |
| 464 | outside of an an onPageLoad handler) will crash because wikiedit |
| 465 | has not been initialized. |
| 466 | */ |
| 467 | init: function(){ |
| 468 | initDoc(); |
| 469 | const content = F.page.wikiContent() || ''; |
| 470 |
| --- src/fossil.wikiedit-wysiwyg.js | |
| +++ src/fossil.wikiedit-wysiwyg.js | |
| @@ -459,11 +459,11 @@ | |
| 459 | editor. |
| 460 | |
| 461 | Must either be called via an onPageLoad handler via the site |
| 462 | skin's footer or else it can be called manually from the dev |
| 463 | tools console. Calling it too early (e.g. in the page footer |
| 464 | outside of an onPageLoad handler) will crash because wikiedit |
| 465 | has not been initialized. |
| 466 | */ |
| 467 | init: function(){ |
| 468 | initDoc(); |
| 469 | const content = F.page.wikiContent() || ''; |
| 470 |
+1
-1
| --- src/graph.c | ||
| +++ src/graph.c | ||
| @@ -51,11 +51,11 @@ | ||
| 51 | 51 | |
| 52 | 52 | /* |
| 53 | 53 | ** The type of integer identifiers for rows of the graph. |
| 54 | 54 | ** |
| 55 | 55 | ** For a normal /timeline graph, the identifiers are never that big |
| 56 | -** an an ordinary 32-bit int will work fine. But for the /finfo page, | |
| 56 | +** an ordinary 32-bit int will work fine. But for the /finfo page, | |
| 57 | 57 | ** the identifier is a combination of the BLOB.RID and the FILENAME.FNID |
| 58 | 58 | ** values, and so it can become quite large for repos that have both many |
| 59 | 59 | ** check-ins and many files. For this reason, we make the identifier |
| 60 | 60 | ** a 64-bit integer, to dramatically reduce the risk of an overflow. |
| 61 | 61 | */ |
| 62 | 62 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -51,11 +51,11 @@ | |
| 51 | |
| 52 | /* |
| 53 | ** The type of integer identifiers for rows of the graph. |
| 54 | ** |
| 55 | ** For a normal /timeline graph, the identifiers are never that big |
| 56 | ** an an ordinary 32-bit int will work fine. But for the /finfo page, |
| 57 | ** the identifier is a combination of the BLOB.RID and the FILENAME.FNID |
| 58 | ** values, and so it can become quite large for repos that have both many |
| 59 | ** check-ins and many files. For this reason, we make the identifier |
| 60 | ** a 64-bit integer, to dramatically reduce the risk of an overflow. |
| 61 | */ |
| 62 |
| --- src/graph.c | |
| +++ src/graph.c | |
| @@ -51,11 +51,11 @@ | |
| 51 | |
| 52 | /* |
| 53 | ** The type of integer identifiers for rows of the graph. |
| 54 | ** |
| 55 | ** For a normal /timeline graph, the identifiers are never that big |
| 56 | ** an ordinary 32-bit int will work fine. But for the /finfo page, |
| 57 | ** the identifier is a combination of the BLOB.RID and the FILENAME.FNID |
| 58 | ** values, and so it can become quite large for repos that have both many |
| 59 | ** check-ins and many files. For this reason, we make the identifier |
| 60 | ** a 64-bit integer, to dramatically reduce the risk of an overflow. |
| 61 | */ |
| 62 |
+1
-1
| --- src/piechart.c | ||
| +++ src/piechart.c | ||
| @@ -26,11 +26,11 @@ | ||
| 26 | 26 | # define M_PI 3.1415926535897932385 |
| 27 | 27 | #endif |
| 28 | 28 | |
| 29 | 29 | /* |
| 30 | 30 | ** Return an RGB color name given HSV values. The HSV values |
| 31 | -** must each be between between 0 and 255. The string | |
| 31 | +** must each be between 0 and 255. The string | |
| 32 | 32 | ** returned is held in a static buffer and is overwritten |
| 33 | 33 | ** on each call. |
| 34 | 34 | */ |
| 35 | 35 | const char *rgbName(unsigned char h, unsigned char s, unsigned char v){ |
| 36 | 36 | static char zColor[8]; |
| 37 | 37 |
| --- src/piechart.c | |
| +++ src/piechart.c | |
| @@ -26,11 +26,11 @@ | |
| 26 | # define M_PI 3.1415926535897932385 |
| 27 | #endif |
| 28 | |
| 29 | /* |
| 30 | ** Return an RGB color name given HSV values. The HSV values |
| 31 | ** must each be between between 0 and 255. The string |
| 32 | ** returned is held in a static buffer and is overwritten |
| 33 | ** on each call. |
| 34 | */ |
| 35 | const char *rgbName(unsigned char h, unsigned char s, unsigned char v){ |
| 36 | static char zColor[8]; |
| 37 |
| --- src/piechart.c | |
| +++ src/piechart.c | |
| @@ -26,11 +26,11 @@ | |
| 26 | # define M_PI 3.1415926535897932385 |
| 27 | #endif |
| 28 | |
| 29 | /* |
| 30 | ** Return an RGB color name given HSV values. The HSV values |
| 31 | ** must each be between 0 and 255. The string |
| 32 | ** returned is held in a static buffer and is overwritten |
| 33 | ** on each call. |
| 34 | */ |
| 35 | const char *rgbName(unsigned char h, unsigned char s, unsigned char v){ |
| 36 | static char zColor[8]; |
| 37 |
+1
-1
| --- src/printf.c | ||
| +++ src/printf.c | ||
| @@ -456,11 +456,11 @@ | ||
| 456 | 456 | ** flag_leftjustify TRUE if a '-' is present or if the |
| 457 | 457 | ** field width was negative. |
| 458 | 458 | ** flag_zeropad TRUE if the width began with 0. |
| 459 | 459 | ** flag_long TRUE if the letter 'l' (ell) prefixed |
| 460 | 460 | ** the conversion character. |
| 461 | - ** flag_longlong TRUE if the letter 'll' (ell ell) prefixed | |
| 461 | + ** flag_longlong TRUE if the letters 'll' (ell ell) prefixed | |
| 462 | 462 | ** the conversion character. |
| 463 | 463 | ** flag_blanksign TRUE if a ' ' is present. |
| 464 | 464 | ** width The specified field width. This is |
| 465 | 465 | ** always non-negative. Zero is the default. |
| 466 | 466 | ** precision The specified precision. The default |
| 467 | 467 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -456,11 +456,11 @@ | |
| 456 | ** flag_leftjustify TRUE if a '-' is present or if the |
| 457 | ** field width was negative. |
| 458 | ** flag_zeropad TRUE if the width began with 0. |
| 459 | ** flag_long TRUE if the letter 'l' (ell) prefixed |
| 460 | ** the conversion character. |
| 461 | ** flag_longlong TRUE if the letter 'll' (ell ell) prefixed |
| 462 | ** the conversion character. |
| 463 | ** flag_blanksign TRUE if a ' ' is present. |
| 464 | ** width The specified field width. This is |
| 465 | ** always non-negative. Zero is the default. |
| 466 | ** precision The specified precision. The default |
| 467 |
| --- src/printf.c | |
| +++ src/printf.c | |
| @@ -456,11 +456,11 @@ | |
| 456 | ** flag_leftjustify TRUE if a '-' is present or if the |
| 457 | ** field width was negative. |
| 458 | ** flag_zeropad TRUE if the width began with 0. |
| 459 | ** flag_long TRUE if the letter 'l' (ell) prefixed |
| 460 | ** the conversion character. |
| 461 | ** flag_longlong TRUE if the letters 'll' (ell ell) prefixed |
| 462 | ** the conversion character. |
| 463 | ** flag_blanksign TRUE if a ' ' is present. |
| 464 | ** width The specified field width. This is |
| 465 | ** always non-negative. Zero is the default. |
| 466 | ** precision The specified precision. The default |
| 467 |
+1
-1
| --- src/schema.c | ||
| +++ src/schema.c | ||
| @@ -259,11 +259,11 @@ | ||
| 259 | 259 | @ -- pfnid = Parent File Name ID. |
| 260 | 260 | @ -- isaux = pmid IS AUXiliary parent, not primary parent |
| 261 | 261 | @ -- |
| 262 | 262 | @ -- pid==0 if the file is added by check-in mid. |
| 263 | 263 | @ -- pid==(-1) if the file exists in a merge parents but not in the primary |
| 264 | -@ -- parent. In other words, if the file file was added by merge. | |
| 264 | +@ -- parent. In other words, if the file was added by merge. | |
| 265 | 265 | @ -- fid==0 if the file is removed by check-in mid. |
| 266 | 266 | @ -- |
| 267 | 267 | @ CREATE TABLE mlink( |
| 268 | 268 | @ mid INTEGER, -- Check-in that contains fid |
| 269 | 269 | @ fid INTEGER, -- New file content. 0 if deleted |
| 270 | 270 |
| --- src/schema.c | |
| +++ src/schema.c | |
| @@ -259,11 +259,11 @@ | |
| 259 | @ -- pfnid = Parent File Name ID. |
| 260 | @ -- isaux = pmid IS AUXiliary parent, not primary parent |
| 261 | @ -- |
| 262 | @ -- pid==0 if the file is added by check-in mid. |
| 263 | @ -- pid==(-1) if the file exists in a merge parents but not in the primary |
| 264 | @ -- parent. In other words, if the file file was added by merge. |
| 265 | @ -- fid==0 if the file is removed by check-in mid. |
| 266 | @ -- |
| 267 | @ CREATE TABLE mlink( |
| 268 | @ mid INTEGER, -- Check-in that contains fid |
| 269 | @ fid INTEGER, -- New file content. 0 if deleted |
| 270 |
| --- src/schema.c | |
| +++ src/schema.c | |
| @@ -259,11 +259,11 @@ | |
| 259 | @ -- pfnid = Parent File Name ID. |
| 260 | @ -- isaux = pmid IS AUXiliary parent, not primary parent |
| 261 | @ -- |
| 262 | @ -- pid==0 if the file is added by check-in mid. |
| 263 | @ -- pid==(-1) if the file exists in a merge parents but not in the primary |
| 264 | @ -- parent. In other words, if the file was added by merge. |
| 265 | @ -- fid==0 if the file is removed by check-in mid. |
| 266 | @ -- |
| 267 | @ CREATE TABLE mlink( |
| 268 | @ mid INTEGER, -- Check-in that contains fid |
| 269 | @ fid INTEGER, -- New file content. 0 if deleted |
| 270 |
+1
-1
| --- src/stat.c | ||
| +++ src/stat.c | ||
| @@ -503,11 +503,11 @@ | ||
| 503 | 503 | ** access URL. |
| 504 | 504 | ** |
| 505 | 505 | ** Algorithm: |
| 506 | 506 | ** |
| 507 | 507 | ** The public URL is given by the email-url property. But it is only |
| 508 | -** returned if there have been one more more accesses (as recorded by | |
| 508 | +** returned if there have been one or more accesses (as recorded by | |
| 509 | 509 | ** "baseurl:URL" entries in the CONFIG table). |
| 510 | 510 | */ |
| 511 | 511 | const char *public_url(void){ |
| 512 | 512 | const char *zUrl = db_get("email-url", 0); |
| 513 | 513 | if( zUrl==0 ) return 0; |
| 514 | 514 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -503,11 +503,11 @@ | |
| 503 | ** access URL. |
| 504 | ** |
| 505 | ** Algorithm: |
| 506 | ** |
| 507 | ** The public URL is given by the email-url property. But it is only |
| 508 | ** returned if there have been one more more accesses (as recorded by |
| 509 | ** "baseurl:URL" entries in the CONFIG table). |
| 510 | */ |
| 511 | const char *public_url(void){ |
| 512 | const char *zUrl = db_get("email-url", 0); |
| 513 | if( zUrl==0 ) return 0; |
| 514 |
| --- src/stat.c | |
| +++ src/stat.c | |
| @@ -503,11 +503,11 @@ | |
| 503 | ** access URL. |
| 504 | ** |
| 505 | ** Algorithm: |
| 506 | ** |
| 507 | ** The public URL is given by the email-url property. But it is only |
| 508 | ** returned if there have been one or more accesses (as recorded by |
| 509 | ** "baseurl:URL" entries in the CONFIG table). |
| 510 | */ |
| 511 | const char *public_url(void){ |
| 512 | const char *zUrl = db_get("email-url", 0); |
| 513 | if( zUrl==0 ) return 0; |
| 514 |
+1
-1
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -1065,11 +1065,11 @@ | ||
| 1065 | 1065 | |
| 1066 | 1066 | |
| 1067 | 1067 | /* |
| 1068 | 1068 | ** TH1 command: anycap STRING |
| 1069 | 1069 | ** |
| 1070 | -** Return true if the current user user | |
| 1070 | +** Return true if the current user | |
| 1071 | 1071 | ** has any one of the capabilities listed in STRING. |
| 1072 | 1072 | */ |
| 1073 | 1073 | static int anycapCmd( |
| 1074 | 1074 | Th_Interp *interp, |
| 1075 | 1075 | void *p, |
| 1076 | 1076 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -1065,11 +1065,11 @@ | |
| 1065 | |
| 1066 | |
| 1067 | /* |
| 1068 | ** TH1 command: anycap STRING |
| 1069 | ** |
| 1070 | ** Return true if the current user user |
| 1071 | ** has any one of the capabilities listed in STRING. |
| 1072 | */ |
| 1073 | static int anycapCmd( |
| 1074 | Th_Interp *interp, |
| 1075 | void *p, |
| 1076 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -1065,11 +1065,11 @@ | |
| 1065 | |
| 1066 | |
| 1067 | /* |
| 1068 | ** TH1 command: anycap STRING |
| 1069 | ** |
| 1070 | ** Return true if the current user |
| 1071 | ** has any one of the capabilities listed in STRING. |
| 1072 | */ |
| 1073 | static int anycapCmd( |
| 1074 | Th_Interp *interp, |
| 1075 | void *p, |
| 1076 |