Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

#6862 closed enhancement (wontfix)

Nice if trac-admin export set time of file created.

Reported by: mark.m.mcmahon@… 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)

add_export_time.diff (881 bytes ) - added by mark.m.mcmahon@… 17 years ago.
Patch to add modification time to exported files

Download all attachments as: .zip

Change History (4)

by mark.m.mcmahon@…, 17 years ago

Attachment: add_export_time.diff added

Patch to add modification time to exported files

comment:1 by Christian Boos, 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.

in reply to:  1 comment:2 by anonymous, 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 confuse make 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 Remy Blank, 16 years ago

Resolution: wontfix
Status: newclosed

I agree with comment:1. A more elaborate export script including the feature described here would not be difficult to write.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.