Fossil SCM
Call vfile_check_signature before creating a stash, to make sure that all changed files have been stashed. Ticket [bfef8e4f89cd4b161a584]
Commit
a435ae67a97b5369f8096d91834ccb7ce8f5ea22
Parent
0b8aed945e5caf5…
1 file changed
+1
+1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -145,10 +145,11 @@ | ||
| 145 | 145 | zComment = find_option("comment", "m", 1); |
| 146 | 146 | verify_all_options(); |
| 147 | 147 | stashid = db_lget_int("stash-next", 1); |
| 148 | 148 | db_lset_int("stash-next", stashid+1); |
| 149 | 149 | vid = db_lget_int("checkout", 0); |
| 150 | + vfile_check_signature(vid, 0, 0); | |
| 150 | 151 | db_multi_exec( |
| 151 | 152 | "INSERT INTO stash(stashid,vid,comment,ctime)" |
| 152 | 153 | "VALUES(%d,%d,%Q,julianday('now'))", |
| 153 | 154 | stashid, vid, zComment |
| 154 | 155 | ); |
| 155 | 156 |
| --- 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 |