Bug 2761 - diff aborts when a file is deleted in the working dir but is present in the compared rev
Summary: diff aborts when a file is deleted in the working dir but is present in the c...
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: normal bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 12:54 UTC by Idan Kamara
Modified: 2012-05-13 05:07 UTC (History)
2 users (show)

See Also:
Python Version: ---


Attachments
(34 bytes, application/x-shellscript)
2011-04-11 12:54 UTC, Idan Kamara
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Idan Kamara 2011-04-11 12:54 UTC
Here's how to reproduce it:

hg init diff && cd diff
touch a
hg add a
hg ci -m first
echo a > a
hg ci -m second
rm a
hg diff -r 0
abort: No such file or directory: /home/idan/dev/hg/tests/diff/a

You get the same abort in a similar code path, see the attached script.

A slightly more detailed explanation can be found in the proposed fix I sent 
to the list.
Comment 1 HG Bot 2011-04-12 13:00 UTC
Fixed by http://selenic.com/repo/hg/rev/cff56a0ed18e
Idan Kamara <idankk86@gmail.com>
localrepo: don't add deleted files to list of modified/added files (issue2761)

(please test the fix)
Comment 2 HG Bot 2011-06-01 16:00 UTC
Fixed by http://selenic.com/repo/hg/rev/e880433a2e00
Idan Kamara <idankk86@gmail.com>
localrepo: don't add deleted files to list of modified/added files (issue2761)

(please test the fix)
Comment 3 Bugzilla 2012-05-12 09:19 UTC
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:19 EDT  ---

This bug was previously known as _bug_ 2761 at http://mercurial.selenic.com/bts/issue2761
Imported an attachment (id=1547)