incorrect timezones in darcs-fast-export
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The attached patch (from git-format-patch) "works for me". It probably needs more testing. I also caution that conversions with it may not match earlier conversions; but the old conversions seem buggy to me.
The commit message follows.
Previously, the export was mangling timezones. There were conversion errors when the darcs TZ
did not match the conversion TZ. Also, the conversion timezone was always reported (this is
bad since two conversions may now differ).
This patch fixes both problems on my system, but it has not been extensively tested.
Can 'local_date' be used reliably? What about my TZ manipulations?
I am no expert in darcs or python. Developed with darcs 2.3.1 and Python 2.6.4.
To check for errors, I compared a darcs repo against a "git darcs fetch" into a new repo.
The following two commands were helpful.
# darcs changes | grep for dates
# git log --pretty=format:%ad REF | cat
Example -- EDT=UTC-4 and EST=UTC-5; I am processing in EDT.
darcs date:
"Fri Mar 31 10:48:00 EST 2006"
Before patch, git reported:
"Fri Mar 31 12:48:00 2006 -0400" (should be 11:48 -0400 or 10:48 -0500)
After patch, git reported:
"Fri Mar 31 10:48:00 2006 -0500"
Related branches
- Jelmer Vernooij (community): Approve (code)
- John A Meinel: Pending requested
-
Diff: 65 lines (+15/-6)2 files modifiedexporters/darcs/darcs-fast-import (+12/-3)
exporters/darcs/t/lib.sh (+3/-3)
- Ian Clatworthy: Approve
-
Diff: 797 lines4 files modifiedexporters/darcs/darcs-fast-export (+359/-305)
exporters/darcs/darcs-fast-export.txt (+4/-0)
exporters/darcs/t/lib-httpd.sh (+67/-0)
exporters/darcs/t/test2-git-http.sh (+22/-0)
- Miklos Vajna: Pending (code) requested
- Ian Clatworthy: Pending requested
-
Diff: 284 lines (+46/-55)2 files modifiedexporters/darcs/darcs-fast-export (+10/-19)
exporters/darcs/git-darcs (+36/-36)
Changed in bzr-fastimport: | |
status: | New → Fix Committed |
Changed in bzr-fastimport: | |
importance: | Undecided → Medium |
Changed in bzr-fastimport: | |
status: | Fix Committed → Fix Released |
milestone: | none → 0.10.0 |
On Mon, Mar 15, 2010 at 05:52:41AM -0000, Daniel Herring <email address hidden> wrote:
> The attached patch (from git-format-patch) "works for me". It probably
> needs more testing. I also caution that conversions with it may not
> match earlier conversions; but the old conversions seem buggy to me.
Thanks, looks good. I want to give it a bit more testing, then I will
push it to my public integration branch and propose a merge request.