Fossil SCM
Fix the --setmtime flag on fossil-commit so that it works when changing version, and not just when updating the current version.
Commit
d4bdac3c5133f0751f58324c98521225a36b388f
Parent
d3e7557a54ae7bf…
1 file changed
+1
-1
+1
-1
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -458,11 +458,11 @@ | ||
| 458 | 458 | /* A subset of files have been checked out. Keep the current |
| 459 | 459 | ** checkout unchanged. */ |
| 460 | 460 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 461 | 461 | } |
| 462 | 462 | if( !internalUpdate ) undo_finish(); |
| 463 | - if( setmtimeFlag ) vfile_check_signature(vid, CKSIG_SETMTIME); | |
| 463 | + if( setmtimeFlag ) vfile_check_signature(tid, CKSIG_SETMTIME); | |
| 464 | 464 | db_end_transaction(0); |
| 465 | 465 | } |
| 466 | 466 | } |
| 467 | 467 | |
| 468 | 468 | /* |
| 469 | 469 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -458,11 +458,11 @@ | |
| 458 | /* A subset of files have been checked out. Keep the current |
| 459 | ** checkout unchanged. */ |
| 460 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 461 | } |
| 462 | if( !internalUpdate ) undo_finish(); |
| 463 | if( setmtimeFlag ) vfile_check_signature(vid, CKSIG_SETMTIME); |
| 464 | db_end_transaction(0); |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | /* |
| 469 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -458,11 +458,11 @@ | |
| 458 | /* A subset of files have been checked out. Keep the current |
| 459 | ** checkout unchanged. */ |
| 460 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 461 | } |
| 462 | if( !internalUpdate ) undo_finish(); |
| 463 | if( setmtimeFlag ) vfile_check_signature(tid, CKSIG_SETMTIME); |
| 464 | db_end_transaction(0); |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | /* |
| 469 |