[PATCH 0 of 2] [mq:qrefresh] Better handle setting/updating the date in the patch

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Tue Aug 4 14:54:58 CDT 2009

This patch series makes qref treat --date/--current-date the same way
--user/--current-user is handled.

First patch make -u/-U insert the User field in the Mercurial extended
format if the field is missing in the patch comments.

Second patch makes --date/--current-date behaves the same. If the Date
field is missing, it is added. It also updates the corresponding help.

It's not intended to be complete, as the following cases are not handled:
 - adding a Date field when a legacy From: field exists, but no Date:
   field does
 - adding a User field when a legacy Date: field exists, but no From:
   field does.

That is, a patch in an email-like format, when one of the From: or Date:
field is missing, and the other is present.

Is the above possible? If so, then I'll rework the patchset to take this
possibility into account.

More information about the Mercurial-devel mailing list