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:04 trunk
Commit 1d3256cbcacc6f018b13247c19822d5860637321
1 file changed +1 -1
+1 -1
--- src/update.c
+++ src/update.c
@@ -531,11 +531,11 @@
531531
/* A subset of files have been checked out. Keep the current
532532
** checkout unchanged. */
533533
db_multi_exec("DELETE FROM vfile WHERE vid!=%d", vid);
534534
}
535535
if( !internalUpdate ) undo_finish();
536
- if( setmtimeFlag ) vfile_check_signature(vid, CKSIG_SETMTIME);
536
+ if( setmtimeFlag ) vfile_check_signature(tid, CKSIG_SETMTIME);
537537
db_end_transaction(0);
538538
}
539539
}
540540
541541
/*
542542
--- 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

Keyboard Shortcuts

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