darcs

Patch 434 convert.sh should not be reserved to subjects of Her M...

Title convert.sh should not be reserved to subjects of Her M...
Superseder Nosy List galbolle
Related Issues
Status accepted Assigned To
Milestone

Created on 2010-10-21.15:49:38 by galbolle, last changed 2011-05-10.20:06:21 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
convert_sh-should-not-be-reserved-to-subjects-of-her-majesty.dpatch galbolle, 2010-10-21.15:49:38 text/x-darcs-patch
unnamed galbolle, 2010-10-21.15:49:38
See mailing list archives for discussion on individual patches.
Messages
msg12793 (view) Author: galbolle Date: 2010-10-21.15:49:38
1 patch for repository http://darcs.net/screened:

Thu Oct 21 17:45:10 CEST 2010  Florent Becker <florent.becker@ens-lyon.org>
  * convert.sh should not be reserved to subjects of Her Majesty
Attachments
msg12794 (view) Author: darcswatch Date: 2010-10-21.16:07:58
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/screened.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_screened.html#bundle-dc8047705cde9bc8a43ba672867bc4e662975341
msg12795 (view) Author: ganesh Date: 2010-10-21.19:19:36
On Thu, 21 Oct 2010, Florent Becker wrote:

>
> New submission from Florent Becker <florent.becker@ens-lyon.org>:
>
> 1 patch for repository http://darcs.net/screened:
>
> Thu Oct 21 17:45:10 CEST 2010  Florent Becker <florent.becker@ens-lyon.org>
>  * convert.sh should not be reserved to subjects of Her Majesty

What does darcs produce for you? I'd have expected it to use the metadata 
from the patches - or does convert mess that up somehow?

Ganesh
msg12798 (view) Author: galbolle Date: 2010-10-22.08:20:12
Le 21/10/2010 21:16, Ganesh Sittampalam a écrit :
> 
> On Thu, 21 Oct 2010, Florent Becker wrote:
> 
>>
>> New submission from Florent Becker <florent.becker@ens-lyon.org>:
>>
>> 1 patch for repository http://darcs.net/screened:
>>
>> Thu Oct 21 17:45:10 CEST 2010  Florent Becker
>> <florent.becker@ens-lyon.org>
>>  * convert.sh should not be reserved to subjects of Her Majesty
> 
> What does darcs produce for you? I'd have expected it to use the
> metadata from the patches - or does convert mess that up somehow?
> 
> Ganesh
> 
The metadata for the recorded (as opposed to .dpatch-applied) patch are
in whatever timezone the user is in. So diff complains that
12:34:56 BST and
13:34:56 EST
are different. One side effect of convert is that all dates in patches
get their dates rewritten in the time-zone of the converter. I think
it's largely ok, so i've changed the test to ignore that. The cleanest
way would be to make all times UTC, but I haven't found an easy way to
do that.

Florent
msg12800 (view) Author: ganesh Date: 2010-10-22.08:47:49
Florent Becker wrote:
> Le 21/10/2010 21:16, Ganesh Sittampalam a écrit :
>> 
>> On Thu, 21 Oct 2010, Florent Becker wrote:
>> 
>>> 
>>> New submission from Florent Becker <florent.becker@ens-lyon.org>:
>>> 
>>> 1 patch for repository http://darcs.net/screened:
>>> 
>>> Thu Oct 21 17:45:10 CEST 2010  Florent Becker
>>> <florent.becker@ens-lyon.org>
>>>  * convert.sh should not be reserved to subjects of Her Majesty
>> 
>> What does darcs produce for you? I'd have expected it to use the
>> metadata from the patches - or does convert mess that up somehow?
>> 
>> Ganesh
>> 
> The metadata for the recorded (as opposed to .dpatch-applied) patch
> are in whatever timezone the user is in. So diff complains that
> 12:34:56 BST and 13:34:56 EST
> are different. One side effect of convert is that all dates in
> patches get their dates rewritten in the time-zone of the converter.
> I think it's largely ok, so i've changed the test to ignore that. The
> cleanest way would be to make all times UTC, but I haven't found an
> easy way to do that.

Actually, I would call this a bug in convert; it's destroying information without good cause. For now your fix to the test makes sense, though. Luckily we won't need it on the all tests that compare darcs send output.

Ganesh

=============================================================================== 
Please access the attached hyperlink for an important electronic communications disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
===============================================================================
msg12801 (view) Author: galbolle Date: 2010-10-22.09:20:23
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ganesh
>>>
>> The metadata for the recorded (as opposed to .dpatch-applied) patch
                        ^----s/recorded/converted/
>> are in whatever timezone the user is in. So diff complains that
>> 12:34:56 BST and 13:34:56 EST
>> are different. One side effect of convert is that all dates in
>> patches get their dates rewritten in the time-zone of the converter.
>> I think it's largely ok, so i've changed the test to ignore that. The
>> cleanest way would be to make all times UTC, but I haven't found an
>> easy way to do that.
> 
> Actually, I would call this a bug in convert; it's destroying information
> without good cause. For now your fix to the test makes sense, though.
> Luckily we won't need it on the all tests that compare darcs send output.
> 
Maybe I got the timezone conversion wrong, but it's not actually
destroying information, just presenting it differently (the date of the
patch is not changed, just the way it is stored). I don't see where the
"timezone where the patch was recorded" bit is actually used, so I don't
see any information we're actually destroying. Note that apply -> send
is also not a round-trip if you care about that point, but let's not
bikeshed about that.

Florent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzBVq8ACgkQTCPcDztjGo61NwCfe9MQK+Fezc8c3QTEdiYC8wRz
GWUAoJaj5DPEhpH5YnVhyqiMcGhC2TYB
=frab
-----END PGP SIGNATURE-----
msg12802 (view) Author: ganesh Date: 2010-10-22.09:34:04
Florent Becker wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi Ganesh
>>>> 
>>> The metadata for the recorded (as opposed to .dpatch-applied) patch
>                         ^----s/recorded/converted/
>>> are in whatever timezone the user is in. So diff complains that
>>> 12:34:56 BST and 13:34:56 EST are different. One side effect of
>>> convert is that all dates in patches get their dates rewritten in
>>> the time-zone of the converter. I think it's largely ok, so i've
>>> changed the test to ignore that. The cleanest way would be to make
>>> all times UTC, but I haven't found an easy way to do that.
>> 
>> Actually, I would call this a bug in convert; it's destroying
>> information without good cause. For now your fix to the test makes
>> sense, though. Luckily we won't need it on the all tests that
>> compare darcs send output. 
>> 
> Maybe I got the timezone conversion wrong, but it's not actually
> destroying information, just presenting it differently (the date of
> the patch is not changed, just the way it is stored). I don't see
> where the "timezone where the patch was recorded" bit is actually
> used, so I don't see any information we're actually destroying. Note
> that apply -> send is also not a round-trip if you care about that
> point, but let's not bikeshed about that.      

Oh, I see. I misunderstood completely; the patches are always stored in
a repo with the same time and convert preserves that, but send formats
it according to the local time when providing the human-readable text at
the top. That's fine, but it does also mean that the other tests I
recently added are broken too, I'll fix them later.

Ganesh
msg12812 (view) Author: ganesh Date: 2010-10-23.21:06:11
This is fine, once patch420 is accepted.
msg12857 (view) Author: darcswatch Date: 2010-10-31.18:09:07
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-dc8047705cde9bc8a43ba672867bc4e662975341
msg14247 (view) Author: darcswatch Date: 2011-05-10.20:06:21
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-dc8047705cde9bc8a43ba672867bc4e662975341
History
Date User Action Args
2010-10-21 15:49:38galbollecreate
2010-10-21 15:50:28darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-dc8047705cde9bc8a43ba672867bc4e662975341
2010-10-21 16:07:58darcswatchsetstatus: needs-screening -> needs-review
messages: + msg12794
2010-10-21 19:19:36ganeshsetmessages: + msg12795
2010-10-22 08:20:13galbollesetmessages: + msg12798
2010-10-22 08:47:50ganeshsetmessages: + msg12800
2010-10-22 09:20:23galbollesetmessages: + msg12801
2010-10-22 09:34:04ganeshsetmessages: + msg12802
2010-10-23 21:06:12ganeshsetstatus: needs-review -> accepted-pending-tests
messages: + msg12812
2010-10-31 18:09:07darcswatchsetstatus: accepted-pending-tests -> accepted
messages: + msg12857
2011-05-10 20:06:21darcswatchsetmessages: + msg14247