Patchwork D6357: tests: demonstrate another failure with in-memory rebase and copies

login
register
mail settings
Submitter phabricator
Date May 15, 2019, 6:02 p.m.
Message ID <7ad4ba023845d6dd7ce2e4ae4ceb6140@localhost.localdomain>
Download mbox | patch
Permalink /patch/40046/
State Not Applicable
Headers show

Comments

phabricator - May 15, 2019, 6:02 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5265c7d47213: tests: demonstrate another failure with in-memory rebase and copies (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6357?vs=15050&id=15099

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

AFFECTED FILES
  tests/test-rebase-inmemory.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-rebase-inmemory.t b/tests/test-rebase-inmemory.t
--- a/tests/test-rebase-inmemory.t
+++ b/tests/test-rebase-inmemory.t
@@ -763,6 +763,21 @@ 
 
   $ cd ..
 
+Test rebasing a commit with copy information
+
+  $ hg init rebase-rename
+  $ cd rebase-rename
+  $ echo a > a
+  $ hg ci -Aqm 'add a'
+  $ echo a2 > a
+  $ hg ci -m 'modify a'
+  $ hg co -q 0
+  $ hg mv a b
+  $ hg ci -qm 'rename a to b'
+  $ hg rebase -d 1 2>&1 | grep '** ProgrammingError'
+  ** ProgrammingError: copydata() called on clean context
+  $ cd ..
+
 Test rebasing when the file we are merging in destination is empty
 
   $ hg init test