comparison tests/test-metaedit.t @ 4898:9936aecc9ea3 stable

metaedit: don't change commit date by default (issue5994) We deliberately unset devel.default-date to allow hg commands to see the real system date, that demonstrates that metaedit doesn't fall back to system date for any of these commands.
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 09 Oct 2019 21:22:03 +0700
parents 20380ae44d0f
children 08112f100d70
comparison
equal deleted inserted replaced
4897:20380ae44d0f 4898:9936aecc9ea3
169 | 169 |
170 o 3:3260958f1169@default(draft) C 170 o 3:3260958f1169@default(draft) C
171 | 171 |
172 ~ 172 ~
173 173
174 TODO: don't create a new commit in this case, we should take the date of the 174 metaedit should preserve the original date of the edited commit (issue5994)
175 old commit (we add a default date with a value to show that metaedit is taking 175
176 the current date to generate the hash, this way we still have a stable hash 176 $ hg metaedit --config devel.default-date=
177 but highlight the bug) 177 nothing changed
178 $ hg metaedit --config devel.default-date="42 0" 178
179 metaedit doesn't create new commit if message and user aren't changed
180
181 $ hg metaedit --config devel.default-date= --user test --message 'E
182 >
183 >
184 > F'
185 nothing changed
186
187 $ hg metaedit --config devel.default-date= --date "42 0"
179 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 188 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
180 $ hg log -r '.^::.' --template '{rev}: {desc|firstline}\n' 189 $ hg log -r '.^::.' --template '{rev}: {desc|firstline}\n'
181 3: C 190 3: C
182 10: E 191 10: E
183 192