Fossil SCM
A "fossil checkout" when the current check-out is the empty checkout (vid=0) should delete the vfile table.
Commit
0c9b1fb41288d0dcfcd00762679fb8cb1626614b
Parent
f7d9413ccf47072…
1 file changed
+3
-2
+3
-2
| --- src/checkout.c | ||
| +++ src/checkout.c | ||
| @@ -41,12 +41,13 @@ | ||
| 41 | 41 | /* |
| 42 | 42 | ** Undo the current check-out. Unlink all files from the disk. |
| 43 | 43 | ** Clear the VFILE table. |
| 44 | 44 | */ |
| 45 | 45 | void uncheckout(int vid){ |
| 46 | - if( vid==0 ) return; | |
| 47 | - vfile_unlink(vid); | |
| 46 | + if( vid>0 ){ | |
| 47 | + vfile_unlink(vid); | |
| 48 | + } | |
| 48 | 49 | db_multi_exec("DELETE FROM vfile WHERE vid=%d", vid); |
| 49 | 50 | } |
| 50 | 51 | |
| 51 | 52 | |
| 52 | 53 | /* |
| 53 | 54 |
| --- src/checkout.c | |
| +++ src/checkout.c | |
| @@ -41,12 +41,13 @@ | |
| 41 | /* |
| 42 | ** Undo the current check-out. Unlink all files from the disk. |
| 43 | ** Clear the VFILE table. |
| 44 | */ |
| 45 | void uncheckout(int vid){ |
| 46 | if( vid==0 ) return; |
| 47 | vfile_unlink(vid); |
| 48 | db_multi_exec("DELETE FROM vfile WHERE vid=%d", vid); |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /* |
| 53 |
| --- src/checkout.c | |
| +++ src/checkout.c | |
| @@ -41,12 +41,13 @@ | |
| 41 | /* |
| 42 | ** Undo the current check-out. Unlink all files from the disk. |
| 43 | ** Clear the VFILE table. |
| 44 | */ |
| 45 | void uncheckout(int vid){ |
| 46 | if( vid>0 ){ |
| 47 | vfile_unlink(vid); |
| 48 | } |
| 49 | db_multi_exec("DELETE FROM vfile WHERE vid=%d", vid); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | /* |
| 54 |