Fossil SCM

Fix the "fossil sync" command so that it works with options -u and --all at the same time.

drh 2022-01-17 18:10 trunk
Commit 95014ae9968180a704597a199927fad7310de8b4b4c4cb330c0be88a67b2cc88
1 file changed +2 -2
+2 -2
--- src/xfer.c
+++ src/xfer.c
@@ -2064,15 +2064,15 @@
20642064
** do not really need to be sent.
20652065
*/
20662066
if( (syncFlags & (SYNC_UNVERSIONED|SYNC_CLONE))!=0 ){
20672067
unversioned_schema();
20682068
db_multi_exec(
2069
- "CREATE TEMP TABLE uv_tosend("
2069
+ "CREATE TEMP TABLE IF NOT EXISTS uv_tosend("
20702070
" name TEXT PRIMARY KEY," /* Name of file to send client->server */
20712071
" mtimeOnly BOOLEAN" /* True to only send mtime, not content */
20722072
") WITHOUT ROWID;"
2073
- "INSERT INTO uv_toSend(name,mtimeOnly)"
2073
+ "REPLACE INTO uv_toSend(name,mtimeOnly)"
20742074
" SELECT name, 0 FROM unversioned WHERE hash IS NOT NULL;"
20752075
);
20762076
}
20772077
20782078
/*
20792079
--- src/xfer.c
+++ src/xfer.c
@@ -2064,15 +2064,15 @@
2064 ** do not really need to be sent.
2065 */
2066 if( (syncFlags & (SYNC_UNVERSIONED|SYNC_CLONE))!=0 ){
2067 unversioned_schema();
2068 db_multi_exec(
2069 "CREATE TEMP TABLE uv_tosend("
2070 " name TEXT PRIMARY KEY," /* Name of file to send client->server */
2071 " mtimeOnly BOOLEAN" /* True to only send mtime, not content */
2072 ") WITHOUT ROWID;"
2073 "INSERT INTO uv_toSend(name,mtimeOnly)"
2074 " SELECT name, 0 FROM unversioned WHERE hash IS NOT NULL;"
2075 );
2076 }
2077
2078 /*
2079
--- src/xfer.c
+++ src/xfer.c
@@ -2064,15 +2064,15 @@
2064 ** do not really need to be sent.
2065 */
2066 if( (syncFlags & (SYNC_UNVERSIONED|SYNC_CLONE))!=0 ){
2067 unversioned_schema();
2068 db_multi_exec(
2069 "CREATE TEMP TABLE IF NOT EXISTS uv_tosend("
2070 " name TEXT PRIMARY KEY," /* Name of file to send client->server */
2071 " mtimeOnly BOOLEAN" /* True to only send mtime, not content */
2072 ") WITHOUT ROWID;"
2073 "REPLACE INTO uv_toSend(name,mtimeOnly)"
2074 " SELECT name, 0 FROM unversioned WHERE hash IS NOT NULL;"
2075 );
2076 }
2077
2078 /*
2079

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button