Fossil SCM
Provide a little more output in stash command so when someone successfully finishes the stash command they don't think content has been lost.
Commit
d08d7b872d33e0c43a6b5765d1b8f346a7c1e411a21a76032aade4ec53ccf048
Parent
74250821b1f4b08…
1 file changed
+1
+1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -597,10 +597,11 @@ | ||
| 597 | 597 | /* Make sure the stash has committed before running the revert, so that |
| 598 | 598 | ** we have a copy of the changes before deleting them. */ |
| 599 | 599 | db_commit_transaction(); |
| 600 | 600 | g.argv[1] = "revert"; |
| 601 | 601 | revert_cmd(); |
| 602 | + fossil_print("stash %d saved\n", stashid); | |
| 602 | 603 | return; |
| 603 | 604 | }else |
| 604 | 605 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 605 | 606 | stash_create(); |
| 606 | 607 | }else |
| 607 | 608 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -597,10 +597,11 @@ | |
| 597 | /* Make sure the stash has committed before running the revert, so that |
| 598 | ** we have a copy of the changes before deleting them. */ |
| 599 | db_commit_transaction(); |
| 600 | g.argv[1] = "revert"; |
| 601 | revert_cmd(); |
| 602 | return; |
| 603 | }else |
| 604 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 605 | stash_create(); |
| 606 | }else |
| 607 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -597,10 +597,11 @@ | |
| 597 | /* Make sure the stash has committed before running the revert, so that |
| 598 | ** we have a copy of the changes before deleting them. */ |
| 599 | db_commit_transaction(); |
| 600 | g.argv[1] = "revert"; |
| 601 | revert_cmd(); |
| 602 | fossil_print("stash %d saved\n", stashid); |
| 603 | return; |
| 604 | }else |
| 605 | if( memcmp(zCmd, "snapshot", nCmd)==0 ){ |
| 606 | stash_create(); |
| 607 | }else |
| 608 |