[Bug 5268] New: hg commit --interactive fails with 'patch failed to apply'

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Mon Jun 20 12:47:25 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5268

            Bug ID: 5268
           Summary: hg commit --interactive fails with 'patch failed to
                    apply'
           Product: Mercurial
           Version: 3.8.3
          Hardware: Macintosh
                OS: Mac OS
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: record
          Assignee: bugzilla at selenic.com
          Reporter: a.johannes at oncommerce.de
                CC: mercurial-devel at selenic.com

Created attachment 1921
  --> https://bz.mercurial-scm.org/attachment.cgi?id=1921&action=edit
sample repository

The interactive commit sometimes fails to apply the patches, which are created
after the hunk selection by the user.

Steps to reproduce:

0. unzip the attached sample repository
1. apply the attached changes.patch with 'hg import --no-commit chages.patch'
3. hg ci -i
4. accept all hunks by pressing 'c'

Error message:

% hg crecord
starting interactive selection
patching file src/classes/AccountDocumentRetrieverTest.cls
Hunk #9 FAILED at 290
1 out of 9 hunks FAILED -- saving rejects to file
src/classes/AccountDocumentRetrieverTest.cls.rej
abort: patch failed to apply

Expected: The editor for the commit message should show up

-------------

The bug is hard to reproduce, so i created the sample from an actual
repository. The repository contains only two files, but the changes.patch is
complex.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list