[Updated] D12572: tests: demonstrate crash on partial amend with copies in changesets

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Tue Apr 19 09:19:42 UTC 2022


Closed by commit rHG65eda809b943: tests: demonstrate crash on partial amend with copies in changesets (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12572?vs=33198&id=33216

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

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

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

CHANGE DETAILS

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
@@ -325,6 +325,15 @@
   saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-*-amend.hg (glob)
   $ hg showcopies
   a -> l
+
+No crash on partial amend
+  $ hg st --change .
+  A l
+  $ echo modified >> a
+  $ hg rm l
+  $ hg commit --amend a 2>&1 | grep AttributeError
+  AttributeError: 'NoneType' object has no attribute 'renamed' (known-bad-output !)
+
   $ cd ..
 
 Test rebasing a commit with copy information



To: martinvonz, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220419/620834dd/attachment-0002.html>


More information about the Mercurial-patches mailing list