Fossil SCM
Correct handling of mtime updates for UV push.
Commit
669cd4041b8933358242849adca6bb4226e57443c20ff9d37e6696a898dd78b2
Parent
ac15e6d14a34b0a…
1 file changed
+1
-1
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -362,11 +362,11 @@ | ||
| 362 | 362 | " SET rcvid=:rcvid, mtime=:mtime, hash=NULL," |
| 363 | 363 | " sz=0, encoding=0, content=NULL" |
| 364 | 364 | " WHERE name=:name" |
| 365 | 365 | ); |
| 366 | 366 | db_bind_int(&q, ":rcvid", g.rcvid); |
| 367 | - }else if( iStatus==4 ){ | |
| 367 | + }else if( iStatus==2 ){ | |
| 368 | 368 | db_prepare(&q, "UPDATE unversioned SET mtime=:mtime WHERE name=:name"); |
| 369 | 369 | }else{ |
| 370 | 370 | db_prepare(&q, |
| 371 | 371 | "REPLACE INTO unversioned(name,rcvid,mtime,hash,sz,encoding,content)" |
| 372 | 372 | " VALUES(:name,:rcvid,:mtime,:hash,:sz,:encoding,:content)" |
| 373 | 373 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -362,11 +362,11 @@ | |
| 362 | " SET rcvid=:rcvid, mtime=:mtime, hash=NULL," |
| 363 | " sz=0, encoding=0, content=NULL" |
| 364 | " WHERE name=:name" |
| 365 | ); |
| 366 | db_bind_int(&q, ":rcvid", g.rcvid); |
| 367 | }else if( iStatus==4 ){ |
| 368 | db_prepare(&q, "UPDATE unversioned SET mtime=:mtime WHERE name=:name"); |
| 369 | }else{ |
| 370 | db_prepare(&q, |
| 371 | "REPLACE INTO unversioned(name,rcvid,mtime,hash,sz,encoding,content)" |
| 372 | " VALUES(:name,:rcvid,:mtime,:hash,:sz,:encoding,:content)" |
| 373 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -362,11 +362,11 @@ | |
| 362 | " SET rcvid=:rcvid, mtime=:mtime, hash=NULL," |
| 363 | " sz=0, encoding=0, content=NULL" |
| 364 | " WHERE name=:name" |
| 365 | ); |
| 366 | db_bind_int(&q, ":rcvid", g.rcvid); |
| 367 | }else if( iStatus==2 ){ |
| 368 | db_prepare(&q, "UPDATE unversioned SET mtime=:mtime WHERE name=:name"); |
| 369 | }else{ |
| 370 | db_prepare(&q, |
| 371 | "REPLACE INTO unversioned(name,rcvid,mtime,hash,sz,encoding,content)" |
| 372 | " VALUES(:name,:rcvid,:mtime,:hash,:sz,:encoding,:content)" |
| 373 |