Fossil

Check-in [34fcaf82]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Documented the --setmtime flag to the update command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 34fcaf829a908db9f27e9beca0376fc596853c81c053d64a2a4a7dfa49e949d1
User & Date: stephan 2019-06-13 06:15:56
Context
2019-06-13
08:58
Add the --setmtime option to the "checkout" and "open" commands. Add a new "touch" command that does nothing but run --setmtime on all named files. check-in: a7e86f5b user: drh tags: trunk
08:04
Added new 'touch' command to set the mtime of files to their SCM-side values. check-in: 4d9ec3e3 user: stephan tags: touch-command
07:49
Update the copyTextToClipboard() Javascript function to suppress scrolling, and remove the temporary textarea in case of an error (i.e. blocked clipboard access), as suggested here: https://fossil-scm.org/forum/forumpost/40189d7d2f. Closed-Leaf check-in: ba3e6fe7 user: florian tags: copybtn.js-tweaks
06:18
Added a -setmtime flag to the checkout and open commands which works identically to that flag for the update command. The open command should arguably do this by default. Closed-Leaf check-in: e59d8d99 user: stephan tags: setmtime-checkout-open
06:15
Documented the --setmtime flag to the update command. check-in: 34fcaf82 user: stephan tags: trunk
2019-06-12
12:11
Avoid attaching a database file that already exists. check-in: 052c5f24 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/update.c.

97
98
99
100
101
102
103



104
105
106
107
108
109
110
**   --debug          print debug information on stdout
**   --latest         acceptable in place of VERSION, update to latest version
**   --force-missing  force update if missing content after sync
**   -n|--dry-run     If given, display instead of run actions
**   -v|--verbose     print status information about all files
**   -W|--width <num> Width of lines (default is to auto-detect). Must be >20
**                    or 0 (= no limit, resulting in a single line per entry).



**
** See also: revert
*/
void update_cmd(void){
  int vid;              /* Current version */
  int tid=0;            /* Target version - version we are changing to */
  Stmt q;







>
>
>







97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
**   --debug          print debug information on stdout
**   --latest         acceptable in place of VERSION, update to latest version
**   --force-missing  force update if missing content after sync
**   -n|--dry-run     If given, display instead of run actions
**   -v|--verbose     print status information about all files
**   -W|--width <num> Width of lines (default is to auto-detect). Must be >20
**                    or 0 (= no limit, resulting in a single line per entry).
**   --setmtime       Set timestamps of all files to match their SCM-side
**                    times (the timestamp of the last checkin which modified
**                    them).
**
** See also: revert
*/
void update_cmd(void){
  int vid;              /* Current version */
  int tid=0;            /* Target version - version we are changing to */
  Stmt q;