Fossil SCM

Correct handling of mtime updates for UV push.

drh 2017-09-08 00:10 trunk
Commit 669cd4041b8933358242849adca6bb4226e57443c20ff9d37e6696a898dd78b2
1 file changed +1 -1
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -362,11 +362,11 @@
362362
" SET rcvid=:rcvid, mtime=:mtime, hash=NULL,"
363363
" sz=0, encoding=0, content=NULL"
364364
" WHERE name=:name"
365365
);
366366
db_bind_int(&q, ":rcvid", g.rcvid);
367
- }else if( iStatus==4 ){
367
+ }else if( iStatus==2 ){
368368
db_prepare(&q, "UPDATE unversioned SET mtime=:mtime WHERE name=:name");
369369
}else{
370370
db_prepare(&q,
371371
"REPLACE INTO unversioned(name,rcvid,mtime,hash,sz,encoding,content)"
372372
" VALUES(:name,:rcvid,:mtime,:hash,:sz,:encoding,:content)"
373373
--- 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

Keyboard Shortcuts

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