Add --setheader, --setuser, --setdate, --user, --date options to qnew and qrefresh

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Fri Dec 7 00:36:31 CST 2007


On Dec 6, 2007 7:45 PM, Martin Geisler <mgeisler at mgeisler.net> wrote:
> Peter Arrenbrecht <peter.arrenbrecht at gmail.com> writes:
>
> > Add --setheader, --setuser, --setdate, --user, --date options to qnew
> > and qrefresh. These options make qnew and qrefresh add/update the "#
> > HG changeset patch" header info, as exported by "hg export". This
> > patch, for instance, starts with
> >
> > +==== qpop -a / qpush -a
> > +Patch queue now empty
> > +applying 1.patch
> > +applying 2.patch
> > +applying 3.patch
> > +applying 4.patch
> > +Now at: 4.patch
> > +3: imported patch 4.patch - mowgli 8.00
> > +2: imported patch 3.patch - tarzan 7.00
> > +1: imported patch 2.patch - jane 6.00
> > +0: imported patch 1.patch - john 5.00
>
> I am really glad to see that 'qpop -a' followed by 'qpush -a' does not
> change the date recorded in the patch. With the current MQ is annoys me
> that I reset the timestamps to the current time if I go back and update
> an an earlier patch.
>
> Will this patch format be the default if your patch is included?

No. But you can specify defaults -H for qnew and -D for qrefresh in
.hgrc. And so this means we won't drop -D.
-peter


More information about the Mercurial-devel mailing list