qref -d no longer sets patch dates

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Jan 8 15:52:05 CST 2009


On Thu, 08 Jan 2009 22:14:30 +0100, Patrick Mézard <pmezard at gmail.com> wrote:
> Giorgos Keramidas a écrit :
>> The qrefresh -d option used to unconditionally set the date of a patch.
>> It no longer does this in crew:
>>
>>   $ hg tip --template '{node|short} {date|isodate}\n'
>>   b34ef60e69eb 2009-01-04 19:54 +0200
>>
>>   $ hg qref -d '2008-12-27 23:38:06 +0000'
>>
>>   $ hg tip --template '{node|short} {date|isodate}\n'
>>   041a94ba3e77 2009-01-04 19:55 +0200
>>
>> I haven't used the option in a while, but I seem to recall that qrefresh
>> could set the patch date, even if the patch didn't have one already.
>>
>> Has this changed recently?  If what qrefresh does now is the correct
>> behavior, how should I set the patch date now?
>
> I was a bit surprised to but it's actually the original behaviour. See
> the changelog for more details:
>
> 	http://hg.intevation.org/mercurial/crew/rev/4107e823dc2c

qnew -d 'DATESPEC' works fine.  I was just surprised that qrefresh
doesn't add a date header.

It seems that manually editing the patch and adding:

    # Date 0 0

allows pushing the patch and then using qrefresh -d 'DATESPEC'.

I think I know "get" how this works :)

Thanks,
Giorgos




More information about the Mercurial-devel mailing list