Fossil SCM

Call vfile_check_signature before creating a stash, to make sure that all changed files have been stashed. Ticket [bfef8e4f89cd4b161a584]

drh 2011-01-18 18:36 trunk
Commit a435ae67a97b5369f8096d91834ccb7ce8f5ea22
1 file changed +1
--- src/stash.c
+++ src/stash.c
@@ -145,10 +145,11 @@
145145
zComment = find_option("comment", "m", 1);
146146
verify_all_options();
147147
stashid = db_lget_int("stash-next", 1);
148148
db_lset_int("stash-next", stashid+1);
149149
vid = db_lget_int("checkout", 0);
150
+ vfile_check_signature(vid, 0, 0);
150151
db_multi_exec(
151152
"INSERT INTO stash(stashid,vid,comment,ctime)"
152153
"VALUES(%d,%d,%Q,julianday('now'))",
153154
stashid, vid, zComment
154155
);
155156
--- src/stash.c
+++ src/stash.c
@@ -145,10 +145,11 @@
145 zComment = find_option("comment", "m", 1);
146 verify_all_options();
147 stashid = db_lget_int("stash-next", 1);
148 db_lset_int("stash-next", stashid+1);
149 vid = db_lget_int("checkout", 0);
 
150 db_multi_exec(
151 "INSERT INTO stash(stashid,vid,comment,ctime)"
152 "VALUES(%d,%d,%Q,julianday('now'))",
153 stashid, vid, zComment
154 );
155
--- src/stash.c
+++ src/stash.c
@@ -145,10 +145,11 @@
145 zComment = find_option("comment", "m", 1);
146 verify_all_options();
147 stashid = db_lget_int("stash-next", 1);
148 db_lset_int("stash-next", stashid+1);
149 vid = db_lget_int("checkout", 0);
150 vfile_check_signature(vid, 0, 0);
151 db_multi_exec(
152 "INSERT INTO stash(stashid,vid,comment,ctime)"
153 "VALUES(%d,%d,%Q,julianday('now'))",
154 stashid, vid, zComment
155 );
156

Keyboard Shortcuts

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