Fossil

Check-in [d3e7557a54]
Login

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

Overview
Comment:Fix the windows build for the 1.19 branch.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | branch-1.19
Files: files | file ages | folders
SHA1: d3e7557a54ae7bf412fb5c22b50273a60199ff1e
User & Date: drh 2012-10-15 15:01:30.131
Context
2012-10-24
19:08
Fix the --setmtime flag on fossil-commit so that it works when changing version, and not just when updating the current version. check-in: d4bdac3c51 user: drh tags: branch-1.19
2012-10-15
15:01
Fix the windows build for the 1.19 branch. check-in: d3e7557a54 user: drh tags: branch-1.19
2012-10-11
19:45
Cherrypick changes [0c37874941c8972], [9ba8a393fcc569b], and [ae092ec605eed11] in order to backport the --setmtime option of "fossil update" and the --age and -t options of "fossil ls" to version 1.19. check-in: 773c6c5f2c user: drh tags: branch-1.19
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/file.c.
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
  struct timeval tv[2];
  memset(tv, 0, sizeof(tv[0])*2);
  tv[0].tv_sec = newMTime;
  tv[1].tv_sec = newMTime;
  utimes(zFilename, tv);
#else
  struct utimbuf tb;
  wchar_t *zMbcs = fossil_utf8_to_unicode(zFilename);
  tb.actime = newMTime;
  tb.modtime = newMTime;
  _wutime(zMbcs, &tb);
  fossil_mbcs_free(zMbcs);
#endif
}

/*
** COMMAND: test-set-mtime
**







|


|







232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
  struct timeval tv[2];
  memset(tv, 0, sizeof(tv[0])*2);
  tv[0].tv_sec = newMTime;
  tv[1].tv_sec = newMTime;
  utimes(zFilename, tv);
#else
  struct utimbuf tb;
  char *zMbcs = fossil_utf8_to_mbcs(zFilename);
  tb.actime = newMTime;
  tb.modtime = newMTime;
  _utime(zMbcs, &tb);
  fossil_mbcs_free(zMbcs);
#endif
}

/*
** COMMAND: test-set-mtime
**