Opened 17 years ago
Closed 16 years ago
#6862 closed enhancement (wontfix)
Nice if trac-admin export set time of file created.
Reported by: | Owned by: | Christopher Lenz | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | admin/console | Version: | devel |
Severity: | minor | Keywords: | |
Cc: | mark.m.mcmahon@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Currently (0.11dev-r6425)when you do
trac-admin ENV wiki export WikiStart somefile.txt
the file is created with the current date and time. I was expecting that it would have the date of the last modification of the wiki page.
The attached diff would set the modification (and access times) to the modification time in the wiki.
Attachments (1)
Change History (4)
by , 17 years ago
Attachment: | add_export_time.diff added |
---|
follow-up: 2 comment:1 by , 17 years ago
I was expecting that it would have the date of the last modification of the wiki page.
That's a rather unusual expectation. Do you have some examples of other programs doing such things? Certainly not the SCM systems.
Even though a Wiki page is not a source code, I can imagine a wiki export
step being part of a build of something, like a printed documentation. Messing with the modification time will likely confuse make
or similar tools.
comment:2 by , 17 years ago
Even though a Wiki page is not a source code, I can imagine a
wiki export
step being part of a build of something, like a printed documentation. Messing with the modification time will likely confusemake
or similar tools.
Fair enough :)
I realized that there might be some reason NOT to do this request. I even thought about make or other dependency checkers - but if they work from the timestamp - wouldn't the last modification timestamp be more useful? I also thought that the other functionality (all set to the current time) is much easier to replicate (without requiring access to the trac db). So even if someone wanted them all the current time - they could do that easily.
I also considered suggesting an option - but that would make the interface more complicated.
Please decline/close as you feel necessary.
comment:3 by , 16 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
I agree with comment:1. A more elaborate export script including the feature described here would not be difficult to write.
Patch to add modification time to exported files