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
1d3256cbcacc6f018b13247c19822d5860637321
Parent
ad9cf1cad60a338…
1 file changed
+1
-1
+1
-1
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -531,11 +531,11 @@ | ||
| 531 | 531 | /* A subset of files have been checked out. Keep the current |
| 532 | 532 | ** checkout unchanged. */ |
| 533 | 533 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 534 | 534 | } |
| 535 | 535 | if( !internalUpdate ) undo_finish(); |
| 536 | - if( setmtimeFlag ) vfile_check_signature(vid, CKSIG_SETMTIME); | |
| 536 | + if( setmtimeFlag ) vfile_check_signature(tid, CKSIG_SETMTIME); | |
| 537 | 537 | db_end_transaction(0); |
| 538 | 538 | } |
| 539 | 539 | } |
| 540 | 540 | |
| 541 | 541 | /* |
| 542 | 542 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -531,11 +531,11 @@ | |
| 531 | /* A subset of files have been checked out. Keep the current |
| 532 | ** checkout unchanged. */ |
| 533 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 534 | } |
| 535 | if( !internalUpdate ) undo_finish(); |
| 536 | if( setmtimeFlag ) vfile_check_signature(vid, CKSIG_SETMTIME); |
| 537 | db_end_transaction(0); |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | /* |
| 542 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -531,11 +531,11 @@ | |
| 531 | /* A subset of files have been checked out. Keep the current |
| 532 | ** checkout unchanged. */ |
| 533 | db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid); |
| 534 | } |
| 535 | if( !internalUpdate ) undo_finish(); |
| 536 | if( setmtimeFlag ) vfile_check_signature(tid, CKSIG_SETMTIME); |
| 537 | db_end_transaction(0); |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | /* |
| 542 |