Fossil SCM
Cherrypick [b4dffdac5e]: Avoid unnecessary no-op write transactions on the server during a pull. Adapt changes.wiki will all candidate cherry-picks so far.
Commit
ebac09bcf72fbed9b389c07766a931264df9e304
Parent
f325b2343e6a18f…
3 files changed
+7
-5
+14
-1
+14
-1
+7
-5
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -1540,15 +1540,17 @@ | ||
| 1540 | 1540 | db_step(&u); |
| 1541 | 1541 | db_reset(&u); |
| 1542 | 1542 | } |
| 1543 | 1543 | db_finalize(&q); |
| 1544 | 1544 | db_finalize(&u); |
| 1545 | - db_multi_exec( | |
| 1546 | - "UPDATE event SET mtime=(SELECT m1 FROM time_fudge WHERE mid=objid)" | |
| 1547 | - " WHERE objid IN (SELECT mid FROM time_fudge);" | |
| 1548 | - "DROP TABLE time_fudge;" | |
| 1549 | - ); | |
| 1545 | + if( db_exists("SELECT 1 FROM time_fudge") ){ | |
| 1546 | + db_multi_exec( | |
| 1547 | + "UPDATE event SET mtime=(SELECT m1 FROM time_fudge WHERE mid=objid)" | |
| 1548 | + " WHERE objid IN (SELECT mid FROM time_fudge);" | |
| 1549 | + ); | |
| 1550 | + } | |
| 1551 | + db_multi_exec("DROP TABLE time_fudge;"); | |
| 1550 | 1552 | |
| 1551 | 1553 | db_end_transaction(0); |
| 1552 | 1554 | manifest_crosslink_busy = 0; |
| 1553 | 1555 | return ( rc!=TH_ERROR ); |
| 1554 | 1556 | } |
| 1555 | 1557 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1540,15 +1540,17 @@ | |
| 1540 | db_step(&u); |
| 1541 | db_reset(&u); |
| 1542 | } |
| 1543 | db_finalize(&q); |
| 1544 | db_finalize(&u); |
| 1545 | db_multi_exec( |
| 1546 | "UPDATE event SET mtime=(SELECT m1 FROM time_fudge WHERE mid=objid)" |
| 1547 | " WHERE objid IN (SELECT mid FROM time_fudge);" |
| 1548 | "DROP TABLE time_fudge;" |
| 1549 | ); |
| 1550 | |
| 1551 | db_end_transaction(0); |
| 1552 | manifest_crosslink_busy = 0; |
| 1553 | return ( rc!=TH_ERROR ); |
| 1554 | } |
| 1555 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1540,15 +1540,17 @@ | |
| 1540 | db_step(&u); |
| 1541 | db_reset(&u); |
| 1542 | } |
| 1543 | db_finalize(&q); |
| 1544 | db_finalize(&u); |
| 1545 | if( db_exists("SELECT 1 FROM time_fudge") ){ |
| 1546 | db_multi_exec( |
| 1547 | "UPDATE event SET mtime=(SELECT m1 FROM time_fudge WHERE mid=objid)" |
| 1548 | " WHERE objid IN (SELECT mid FROM time_fudge);" |
| 1549 | ); |
| 1550 | } |
| 1551 | db_multi_exec("DROP TABLE time_fudge;"); |
| 1552 | |
| 1553 | db_end_transaction(0); |
| 1554 | manifest_crosslink_busy = 0; |
| 1555 | return ( rc!=TH_ERROR ); |
| 1556 | } |
| 1557 |
+14
-1
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -1,8 +1,21 @@ | ||
| 1 | 1 | <title>Change Log</title> |
| 2 | 2 | |
| 3 | -<h2>Changes For Version 1.28 (as yet unreleased)</h2> | |
| 3 | +<h2>Changes For Version 1.28.1 (most likely never being released, those | |
| 4 | +are candidate cherry-picks just in case)</h2> | |
| 5 | + * Upgraded internal SQLite to version 3.8.3.1, which adds support | |
| 6 | + for CTE and the WITH clause, and fixes various SQLite bugs. | |
| 7 | + * Relax minimum SQLite version check to 3.7.17, as Fossil 1.28 | |
| 8 | + actually works fine with "configure --disable-internal-sqlite" | |
| 9 | + See: [https://www.mail-archive.com/[email protected]/msg14520.html] | |
| 10 | + * Make "fossil diff --tk" work out-of-the-box on Windows when | |
| 11 | + Activestate Tcl is installed. | |
| 12 | + * Bug-fix [d8a588ba765ae5be] | |
| 13 | + * [b4dffdac5e]: Avoid unnecessary no-op write transactions on the | |
| 14 | + server during a pull. | |
| 15 | + | |
| 16 | +<h2>Changes For Version 1.28 (2014-01-27)</h2> | |
| 4 | 17 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | 18 | * When cloning a repository, the user name passed via the URL (if any) |
| 6 | 19 | is now used as the default local admin user's name. |
| 7 | 20 | * Enhance the SSH transport mechanism so that it runs a single instance of |
| 8 | 21 | the "fossil" executable on the remote side, obviating the need for a shell |
| 9 | 22 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -1,8 +1,21 @@ | |
| 1 | <title>Change Log</title> |
| 2 | |
| 3 | <h2>Changes For Version 1.28 (as yet unreleased)</h2> |
| 4 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | * When cloning a repository, the user name passed via the URL (if any) |
| 6 | is now used as the default local admin user's name. |
| 7 | * Enhance the SSH transport mechanism so that it runs a single instance of |
| 8 | the "fossil" executable on the remote side, obviating the need for a shell |
| 9 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -1,8 +1,21 @@ | |
| 1 | <title>Change Log</title> |
| 2 | |
| 3 | <h2>Changes For Version 1.28.1 (most likely never being released, those |
| 4 | are candidate cherry-picks just in case)</h2> |
| 5 | * Upgraded internal SQLite to version 3.8.3.1, which adds support |
| 6 | for CTE and the WITH clause, and fixes various SQLite bugs. |
| 7 | * Relax minimum SQLite version check to 3.7.17, as Fossil 1.28 |
| 8 | actually works fine with "configure --disable-internal-sqlite" |
| 9 | See: [https://www.mail-archive.com/[email protected]/msg14520.html] |
| 10 | * Make "fossil diff --tk" work out-of-the-box on Windows when |
| 11 | Activestate Tcl is installed. |
| 12 | * Bug-fix [d8a588ba765ae5be] |
| 13 | * [b4dffdac5e]: Avoid unnecessary no-op write transactions on the |
| 14 | server during a pull. |
| 15 | |
| 16 | <h2>Changes For Version 1.28 (2014-01-27)</h2> |
| 17 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 18 | * When cloning a repository, the user name passed via the URL (if any) |
| 19 | is now used as the default local admin user's name. |
| 20 | * Enhance the SSH transport mechanism so that it runs a single instance of |
| 21 | the "fossil" executable on the remote side, obviating the need for a shell |
| 22 |
+14
-1
| --- www/changes.wiki | ||
| +++ www/changes.wiki | ||
| @@ -1,8 +1,21 @@ | ||
| 1 | 1 | <title>Change Log</title> |
| 2 | 2 | |
| 3 | -<h2>Changes For Version 1.28 (as yet unreleased)</h2> | |
| 3 | +<h2>Changes For Version 1.28.1 (most likely never being released, those | |
| 4 | +are candidate cherry-picks just in case)</h2> | |
| 5 | + * Upgraded internal SQLite to version 3.8.3.1, which adds support | |
| 6 | + for CTE and the WITH clause, and fixes various SQLite bugs. | |
| 7 | + * Relax minimum SQLite version check to 3.7.17, as Fossil 1.28 | |
| 8 | + actually works fine with "configure --disable-internal-sqlite" | |
| 9 | + See: [https://www.mail-archive.com/[email protected]/msg14520.html] | |
| 10 | + * Make "fossil diff --tk" work out-of-the-box on Windows when | |
| 11 | + Activestate Tcl is installed. | |
| 12 | + * Bug-fix [d8a588ba765ae5be] | |
| 13 | + * [b4dffdac5e]: Avoid unnecessary no-op write transactions on the | |
| 14 | + server during a pull. | |
| 15 | + | |
| 16 | +<h2>Changes For Version 1.28 (2014-01-27)</h2> | |
| 4 | 17 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | 18 | * When cloning a repository, the user name passed via the URL (if any) |
| 6 | 19 | is now used as the default local admin user's name. |
| 7 | 20 | * Enhance the SSH transport mechanism so that it runs a single instance of |
| 8 | 21 | the "fossil" executable on the remote side, obviating the need for a shell |
| 9 | 22 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -1,8 +1,21 @@ | |
| 1 | <title>Change Log</title> |
| 2 | |
| 3 | <h2>Changes For Version 1.28 (as yet unreleased)</h2> |
| 4 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 5 | * When cloning a repository, the user name passed via the URL (if any) |
| 6 | is now used as the default local admin user's name. |
| 7 | * Enhance the SSH transport mechanism so that it runs a single instance of |
| 8 | the "fossil" executable on the remote side, obviating the need for a shell |
| 9 |
| --- www/changes.wiki | |
| +++ www/changes.wiki | |
| @@ -1,8 +1,21 @@ | |
| 1 | <title>Change Log</title> |
| 2 | |
| 3 | <h2>Changes For Version 1.28.1 (most likely never being released, those |
| 4 | are candidate cherry-picks just in case)</h2> |
| 5 | * Upgraded internal SQLite to version 3.8.3.1, which adds support |
| 6 | for CTE and the WITH clause, and fixes various SQLite bugs. |
| 7 | * Relax minimum SQLite version check to 3.7.17, as Fossil 1.28 |
| 8 | actually works fine with "configure --disable-internal-sqlite" |
| 9 | See: [https://www.mail-archive.com/[email protected]/msg14520.html] |
| 10 | * Make "fossil diff --tk" work out-of-the-box on Windows when |
| 11 | Activestate Tcl is installed. |
| 12 | * Bug-fix [d8a588ba765ae5be] |
| 13 | * [b4dffdac5e]: Avoid unnecessary no-op write transactions on the |
| 14 | server during a pull. |
| 15 | |
| 16 | <h2>Changes For Version 1.28 (2014-01-27)</h2> |
| 17 | * Enhance [/help?cmd=/reports | /reports] to support event type filtering. |
| 18 | * When cloning a repository, the user name passed via the URL (if any) |
| 19 | is now used as the default local admin user's name. |
| 20 | * Enhance the SSH transport mechanism so that it runs a single instance of |
| 21 | the "fossil" executable on the remote side, obviating the need for a shell |
| 22 |