Project

General

Profile

Actions

Defect #6656

closed

Mercurial adapter loses seconds of commit times

Added by Toshi MARUYAMA about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
Start date:
2010-10-13
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

This issue is reported at note-85 of #4455 .
As I described at note-86 of #4455 , template keyword at source:tags/1.0.2/lib/redmine/scm/adapters/mercurial/hg-template-1.0.tmpl#L4 is isodate .
isodatesec is supported since Mercurial revision 8999d1249171 , which means Mercurial 1.0 has it.

Following is hg log output of source:/tags/1.0.2/test/fixtures/repositories/mercurial_repository.tar.gz .

$ hg log -r 76bce72867b1 --template='{date|isodate}\n'
2007-12-14 16:15 +0100

$ hg log -r 76bce72867b1 --template='{date|isodatesec}\n'
2007-12-14 16:15:51 +0100

There are my patches at following links.

I pushed it to my github repository.

English locale does not show seconds, but Italian locale shows seconds.

I post Italian locale images.

Before patch applied

After patch applied


Files

isodatesec-it-before.png (61.3 KB) isodatesec-it-before.png Toshi MARUYAMA, 2010-10-13 11:22
isodatesec-it-after.png (62.3 KB) isodatesec-it-after.png Toshi MARUYAMA, 2010-10-13 11:22
hg-isodatesec.patch (2.09 KB) hg-isodatesec.patch Toshi MARUYAMA, 2010-11-27 13:09
hg-isodatesec-20101128.patch (2.2 KB) hg-isodatesec-20101128.patch Toshi MARUYAMA, 2010-11-28 02:25
Actions #2

Updated by Toshi MARUYAMA about 14 years ago

As I described at note-164 of #4455, bug fix for this issue is no behavior change (very minor behavior change).

I attach hg-isodatesec.patch again.
This patch is same with http://www.redmine.org/attachments/4219/hg-isodatesec.patch at note-144 of #4455,

Please set this issue target 1.0.4.

Actions #3

Updated by Toshi MARUYAMA about 14 years ago

I have updated unit test to switch Mercurial version higher than 1.0 or not.
Because template keyword 'isodatesec' is supported supported in Mercurial 1.0 and higher.

I attache hg-isodatesec-20101128.patch .

Please set this issue target 1.0.4.

Actions #4

Updated by Toshi MARUYAMA about 14 years ago

Is next release version 1.1.0?
Could someone set this issue target to next release version?

Actions #5

Updated by Jean-Philippe Lang about 14 years ago

  • Target version set to 1.0.5
Actions #6

Updated by Jean-Philippe Lang about 14 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Committed in r4561.

Actions

Also available in: Atom PDF