プロジェクト

全般

プロフィール

Vote #68383

完了

Mercurial adapter loses seconds of commit times

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
SCM_3
対象バージョン:
開始日:
2010/10/13
期日:
進捗率:

100%

予定工数:
category_id:
3
version_id:
28
issue_org_id:
6656
author_id:
11192
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
24
ステータス-->[Closed]

説明

This issue is reported at "note-85":http://www.redmine.org/issues/4455#note-85 of #4455 .
As I described at "note-86":http://www.redmine.org/issues/4455#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":http://mercurial.selenic.com/hg/hg-stable/rev/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.

  • source:/tags/1.0.2/config/locales/en.yml#L22
  • source:/tags/1.0.2/config/locales/it.yml#L20

I post Italian locale images.

h3. Before patch applied

!isodatesec-it-before.png!

h3. After patch applied

!isodatesec-it-after.png!


journals

--------------------------------------------------------------------------------
As I described at "note-164":http://www.redmine.org/issues/4455#note-164 of #4455, bug fix for this issue is no behavior change (very minor behavior change).

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

Please set this issue target 1.0.4.

--------------------------------------------------------------------------------
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 attachment:hg-isodatesec-20101128.patch .

Please set this issue target 1.0.4.

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

--------------------------------------------------------------------------------
Committed in r4561.
--------------------------------------------------------------------------------

Admin Redmine さんがほぼ2年前に更新

  • カテゴリSCM_3 にセット
  • 対象バージョン1.0.5_28 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0