Mercurial > hg > hg-git
changeset 228:e720950443d8
fix invalid timezone handling
author | Abderrahim Kitouni <a.kitouni@gmail.com> |
---|---|
date | Tue, 28 Jul 2009 23:10:04 +0100 |
parents | c4f6e6f24bf1 |
children | f2c2061aacd1 |
files | git_handler.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/git_handler.py +++ b/git_handler.py @@ -2,7 +2,7 @@ import toposort from dulwich.index import commit_tree -from dulwich.objects import Blob, Commit, Tag, Tree +from dulwich.objects import Blob, Commit, Tag, Tree, format_timezone from dulwich.pack import create_delta, apply_delta from dulwich.repo import Repo @@ -247,6 +247,8 @@ commit.committer = name commit.commit_time = timestamp commit.commit_timezone = -int(timezone) + # work around a timezone format change + format_timezone(-int(timezone)) except ValueError: #pragma: no cover self.ui.warn(_("Ignoring committer in extra, invalid timezone in r%d: '%s'.\n") % (ctx, timezone)) commit.committer = commit.author