Patchwork D6751: tests: show invalid copies when turning off copies-in-changeset

login
register
mail settings
Submitter phabricator
Date Sept. 5, 2019, 7:15 p.m.
Message ID <7baa1892f202b22046fd7d2d211a0174@localhost.localdomain>
Download mbox | patch
Permalink /patch/41481/
State Not Applicable
Headers show

Comments

phabricator - Sept. 5, 2019, 7:15 p.m.
Closed by commit rHG6f0273558c4b: tests: show invalid copies when turning off copies-in-changeset (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6751?vs=16284&id=16380

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6751/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6751

AFFECTED FILES
  tests/test-copies-in-changeset.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-copies-in-changeset.t b/tests/test-copies-in-changeset.t
--- a/tests/test-copies-in-changeset.t
+++ b/tests/test-copies-in-changeset.t
@@ -133,6 +133,20 @@ 
   a -> j
   $ hg showcopies --config experimental.copies.read-from=filelog-only
   a -> j
+Existing copy information in the changeset gets removed on amend and writing
+copy information on to the filelog
+  $ hg ci --amend -m 'copy a to j, v2' \
+  > --config experimental.copies.write-to=filelog-only
+  saved backup bundle to $TESTTMP/repo/.hg/strip-backup/dd7bb9581359-a6e6b6d2-amend.hg
+  $ hg changesetcopies
+  files: j
+  filesadded: 0
+  filesremoved: 
+  
+  p1copies: 0\x00a (esc)
+  p2copies: 
+  $ hg showcopies --config experimental.copies.read-from=filelog-only
+  a -> j
 The entries should be written to extras even if they're empty (so the client
 won't have to fall back to reading from filelogs)
   $ echo x >> j