Merge lp:~lifeless/loggerhead/bug-594591 into lp:loggerhead
Proposed by
Robert Collins
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | 466 |
Merged at revision: | 466 |
Proposed branch: | lp:~lifeless/loggerhead/bug-594591 |
Merge into: | lp:loggerhead |
Diff against target: |
163 lines (+18/-27) 7 files modified
NEWS (+5/-2) loggerhead/controllers/directory_ui.py (+1/-1) loggerhead/templates/changelog.pt (+2/-2) loggerhead/templates/inventory.pt (+3/-3) loggerhead/templates/revisioninfo.pt (+1/-1) loggerhead/templates/view.pt (+1/-1) loggerhead/util.py (+5/-17) |
To merge this branch: | bzr merge lp:~lifeless/loggerhead/bug-594591 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel | Approve | ||
Review via email: mp+91212@code.launchpad.net |
Description of the change
Its a bit fugly as history.py doesn't utilise timezones (but perhaps all bzr timestamps are natively in utc? I don't know?. Anyhow, this looks correct, and if its wrong, only two places (history.py and the directory last_changed calculation will need fixing (and its no -more- wrong than what we have today).
Also deleted some unused code.
No tests (because none broke :(). Thats an existing tech-debt we need to fix, but I don't think it makes this change less valuable.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2/2/2012 8:51 AM, Robert Collins wrote:
> The proposal to merge lp:~lifeless/loggerhead/bug-594591 into
> lp:loggerhead has been updated.
>
> Description changed to:
>
> Its a bit fugly as history.py doesn't utilise timezones (but
> perhaps all bzr timestamps are natively in utc? I don't know?.
> Anyhow, this looks correct, and if its wrong, only two places
> (history.py and the directory last_changed calculation will need
> fixing (and its no -more- wrong than what we have today).
>
Internally bzr timestamps are time-since-epoch, which AIUI means they
are effectively UTC, and we store a timezone to be able to translate
the timestamp into the local time of the committer for things like
'bzr log'.
> Also deleted some unused code. /code.launchpad .net/~lifeless/ loggerhead/ bug-594591/ +merge/ 91212
>
> No tests (because none broke :(). Thats an existing tech-debt we
> need to fix, but I don't think it makes this change less valuable.
>
> For more details, see:
> https:/
As
>
for whether it is wrong... It depends on whether you want to
display the UTC time for every committer, or whether you want to
display their local time.
- From the bug report, it appears that Loggerhead was reporting the
times as server-local time, which is probably the worst of all
options. So +1 for being UTC, +2 probably if we changed it to be the
local-time of the committer. (But really, then we'd probably need an
option, etc.)
merge: approve
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk8 qQpcACgkQJdeBCY SNAANdawCgojGZQ pTk2qmcFmM6Ssgu fTx9 WHC0DzG/ zTU3ayszo
RhMAn0Vnm0G6W72
=zcCS
-----END PGP SIGNATURE-----