comparison tests/test-copies-in-changeset.t @ 48975:e3c75d65d589 stable

tests: demonstrate that copy info in changeset gets lost on amend When copy information is stored in changesets, it gets lost on amend. We didn't notice that until now because our users at Google have the config set to `compatibility`, which means copy information is stored in both changeset and filelogs. Differential Revision: https://phab.mercurial-scm.org/D12386
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 18 Mar 2022 21:37:22 -0700
parents 5d9ef794ea64
children 877d7e1a4223
comparison
equal deleted inserted replaced
48974:2bb75c65fa6c 48975:e3c75d65d589
314 #else 314 #else
315 $ hg showcopies 315 $ hg showcopies
316 a -> k 316 a -> k
317 #endif 317 #endif
318 318
319 Existing copy information is preserved by amend
320 $ hg cp a l
321 $ hg ci -m 'copy a to l'
322 $ hg showcopies
323 a -> l
324 $ hg ci --amend -m 'new description'
325 saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-*-amend.hg (glob)
326 $ hg showcopies
327 a -> l (no-extra !)
319 $ cd .. 328 $ cd ..
320 329
321 Test rebasing a commit with copy information 330 Test rebasing a commit with copy information
322 331
323 $ hg init rebase-rename 332 $ hg init rebase-rename