[issue1234] hg qrefresh -D doesn't set date

tomba mercurial-bugs at selenic.com
Mon Jul 21 13:29:27 CDT 2008


New submission from tomba <1ipsfgq02 at sneakemail.com>:

Command "hg qrefresh -D" (same -d) doesn't set date on a patch.
I.e., option -D doesn't have any effect.
As far as I can see, this happens when a non-empty patch already exists.
Lack of date in the patch causes time stamps (and revision hash) to change with
every qpop followed by qpush, even when no changes were made.

Reproduction:
$ hg init
$ hg qinit
$ hg qnew p1
$ echo test > file
$ hg add file
$ hg qrefresh
$ hg qrefresh -D
$ cat .hg/patches/p1
diff --git a/file b/file
new file mode 100644
--- /dev/null
+++ b/file
@@ -0,0 +1,1 @@
+test

Date line are not present in the patch file.

This is with hg 1.0.
Possibly relevant .hgrc lines:

[extensions]
hgext.mq =

[hooks]
# Prevent "hg pull" if MQ patches are applied.
prechangegroup.mq-no-pull = ! hg qtop > /dev/null 2>&1
# Prevent "hg push" if MQ patches are applied.
preoutgoing.mq-no-push = ! hg qtop > /dev/null 2>&1

[diff]
# For mq patches under revision control (created after qinit -c)
nodates=1
# qit-style patches track copies and renames
git=1

[defaults]
qimport = --git
qrefresh = --git

----------
messages: 6548
nosy: mason, tomba
priority: bug
status: unread
title: hg qrefresh -D doesn't set date
topic: mq

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1234>
____________________________________________________



More information about the Mercurial-devel mailing list