#2451 closed enhancement (fixed)
Add "Commited x units ago" to changeset viewer
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | high | Milestone: | 0.10 |
Component: | version control/changeset view | Version: | 0.9 |
Severity: | minor | Keywords: | review |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Many other places (roadmap for one) in trac show time like "3 months ago". It would be nice if the changeset viewer also did this. So the timestamp for [1] would show:
Timestamp: 11/22/05 16:57:13 (3 months ago)
Attachments (1)
Change History (8)
comment:1 by , 19 years ago
Milestone: | → 1.0 |
---|---|
Owner: | changed from | to
Severity: | normal → trivial |
Status: | new → assigned |
comment:2 by , 19 years ago
You'd also have to completely remove the caching support (req.check_modified()
).
comment:3 by , 19 years ago
Severity: | trivial → minor |
---|
Ah yes, didn't think about that. But maybe the cacheing can be improved by sending a hash key that has been computed from all the elements that are susceptible to change:
- youngest rev or not
- "pretty" time (as per this ticket)
- commit log message (as per #781)
by , 19 years ago
Attachment: | T2451-for-r2625.patch added |
---|
Implements the feature, while being cache friendly
comment:4 by , 19 years ago
Priority: | low → normal |
---|
The attachment:T2451-for-r2625.patch does what I suggested above.
In addition, the (… ago) message will be (less than one hour ago) for recent changes, which is more cache friendly.
Now that I think about it, I should have added repos.name
to
the mix, as this would additionally trigger a reload in the case
of a switch to another repository, even if the change only affects
the scope of the repository.
comment:6 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Reviewed patch applied in r2636.
comment:7 by , 19 years ago
Milestone: | 1.0 → 0.10 |
---|
Here you are:
templates/changeset.cs
</dd>trac/versioncontrol/web_ui/changeset.py