]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/ikiwiki__39__s_notion_of_time.mdwn
Added a comment
[ikiwiki.git] / doc / forum / ikiwiki__39__s_notion_of_time.mdwn
1 I'm having some difficulties with ikiwiki's notion of time.
2
3 For (regular) pages, the *last edited* date is the one where the file
4 was indeed last modified according to the file system information.
5 The *created* date (commented out in the HTML) is, at least for
6 `--getctime` operation, the date, where the file was last registered
7 as changed with the VCS.
8
9 Now, at least with git, the thing is that when you're checking out files,
10 they'll get the checkout-time's current time stamp.
11
12 What I strive for is the following: *created* be the date when the file
13 (under its current name) was *first* registered with the VCS (which is
14 more logical in my opinion), and *last edited* be the date the file was
15 last registered as changed with the VCS, which is the current
16 `--getctime` *created* date.
17
18 This means that I can build the HTML files from different checkouts of the
19 VCS and they won't differ in the time stamps they contain in the HTML.
20
21 What is the rationale for ikiwiki's current behavior with respect to these
22 time stamps?
23
24 --[[tschwinge]]
25
26 > Presumably it's the authors of the git and mercurial backends
27 > not understanding the documentation for `rcs_getctime`,
28 > which states:
29
30 >>This is used to get the page creation time for a file from the RCS, by
31 >>looking it up in the history.
32
33 > I've fixed both broken implementations to correctly look
34 > up the first, not the last, commit. Other VCS do not seem
35 > to have the problem. --[[Joey]]