Fossil SCM

A "fossil checkout" when the current check-out is the empty checkout (vid=0) should delete the vfile table.

jan.nijtmans 2014-05-09 08:44 trunk
Commit 0c9b1fb41288d0dcfcd00762679fb8cb1626614b
1 file changed +3 -2
+3 -2
--- src/checkout.c
+++ src/checkout.c
@@ -41,12 +41,13 @@
4141
/*
4242
** Undo the current check-out. Unlink all files from the disk.
4343
** Clear the VFILE table.
4444
*/
4545
void uncheckout(int vid){
46
- if( vid==0 ) return;
47
- vfile_unlink(vid);
46
+ if( vid>0 ){
47
+ vfile_unlink(vid);
48
+ }
4849
db_multi_exec("DELETE FROM vfile WHERE vid=%d", vid);
4950
}
5051
5152
5253
/*
5354
--- 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

Keyboard Shortcuts

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