Skip to content

Fix a portability issue with git-cvsimport

Ben Walton git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Move Git::SVN::get_tz to Git::get_tz_offsetperl/Git.pm perl/Git/SVN.pm perl/Git/SVN/Log.pm+31 -120 replies
2/3Fix get_tz_offset to properly handle DST boundary casesperl/Git.pm+3 -31 reply
3/3Avoid non-portable strftime format specifiers in git-cvsimportgit-cvsimport.perl+4 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix a portability issue with git-cvsimport

This is my (long overdue) re-roll of the series that fixes a portability issue with git-cvsimport's use of strftime. It also fixes a but in the original implementation of get_tz (now get_tz_offset).

I ended up taking taking only part of the implementation suggested by Junio.

The only usage of get_tz_offset is by git-cvsimport and Git::SVN::Log currently. There are tests that validate it works currently so I didn't add anything additional. If the git-cvsimport tests are removed, there are no tests remaining that exercise the code full as the SVN tests use UTC times.

Ben Walton (3):
Move Git::SVN::get_tz to Git::get_tz_offset
Fix get_tz_offset to properly handle DST boundary cases Avoid non-portable strftime format specifiers in git-cvsimport

 git-cvsimport.perl  |    5 ++++-
 perl/Git.pm         |   23 +++++++++++++++++++++++
 perl/Git/SVN.pm     |   12 ++----------
 perl/Git/SVN/Log.pm |    8 ++++++--
 4 files changed, 35 insertions(+), 13 deletions(-)
Signature · 1 line
1.7.10.4