Fossil SCM

Fix the --setmtime flag on fossil-commit so that it works when changing version, and not just when updating the current version.

drh 2012-10-24 19:08 branch-1.19
Commit d4bdac3c5133f0751f58324c98521225a36b388f
1 file changed +1 -1
+1 -1
--- src/update.c
+++ src/update.c
@@ -458,11 +458,11 @@
458458
/* A subset of files have been checked out. Keep the current
459459
** checkout unchanged. */
460460
db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid);
461461
}
462462
if( !internalUpdate ) undo_finish();
463
- if( setmtimeFlag ) vfile_check_signature(vid, CKSIG_SETMTIME);
463
+ if( setmtimeFlag ) vfile_check_signature(tid, CKSIG_SETMTIME);
464464
db_end_transaction(0);
465465
}
466466
}
467467
468468
/*
469469
--- 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

Keyboard Shortcuts

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