[Bug 5994] New: hg metaedit changes timestamp by default
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Fri Sep 28 14:46:33 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5994
Bug ID: 5994
Summary: hg metaedit changes timestamp by default
Product: Mercurial
Version: default branch
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: evolution
Assignee: bugzilla at mercurial-scm.org
Reporter: zash at zash.se
CC: mercurial-devel at mercurial-scm.org,
pierre-yves.david at ens-lyon.org
`hg metaedit` appears to change the timestamp by default, something one would
not expect since there exists a flag (-D / --current-date) for doing this.
This was done in a relatively clean environment:
~$ echo hello > hello
~$ hg --config extensions.evolve= add hello
~$ hg --config extensions.evolve= ci -m 'hello' -u test
~$ hg --config extensions.evolve= metaed -m 'hello' --config ui.username=me
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
~$ hg exp
obsolete feature not enabled but 1 markers found!
# HG changeset patch
# User test
# Date 1538144129 -7200
# Fri Sep 28 16:15:29 2018 +0200
# Node ID 2afbcecc3e47f2dae2c3f4e1a3627d27ee677f7f
# Parent 0000000000000000000000000000000000000000
hello
diff -r 000000000000 -r 2afbcecc3e47 hello
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hello Fri Sep 28 16:15:29 2018 +0200
@@ -0,0 +1,1 @@
+hello
~$ hg obslog
hg: unknown command 'obslog'
(did you mean log?)
~$ hg --config extensions.evolve= obslog
@ 2afbcecc3e47 (1) hello
|
x e223779fd241 (0) hello
rewritten(date) as 2afbcecc3e47 using metaedit by me (Fri Sep 28 16:15:29
2018 +0200)
~$ hg exp --hidden e223779fd241
obsolete feature not enabled but 1 markers found!
# HG changeset patch
# User test
# Date 1538144097 -7200
# Fri Sep 28 16:14:57 2018 +0200
# Node ID e223779fd24168832fa6d81afbb85c19db74ca4f
# Parent 0000000000000000000000000000000000000000
hello
diff -r 000000000000 -r e223779fd241 hello
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hello Fri Sep 28 16:14:57 2018 +0200
@@ -0,0 +1,1 @@
+hello
Observe change in timestamp.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list