[PATCH 1 of 1] localrepo: don't add deleted files to list of modified/added files (issue2761)

Matt Mackall mpm at selenic.com
Tue Apr 12 12:54:04 CDT 2011


On Mon, 2011-04-11 at 21:45 +0300, Idan Kamara wrote:
> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1302547462 -10800
> # Node ID 51f44c91f9762314f5e711de3423425917dfff55
> # Parent  c315ffc13a25c2795067201d9b3f65c8ff6ed079
> localrepo: don't add deleted files to list of modified/added files (issue2761)
> 
> If a file is deleted (rm, not 'hg rm') from the working dir
> an attempt to run 'hg diff -r X', with the file being present in X will
> cause an abort.
> 
> We didn't check if the file has been deleted from the working dir
> and later on tried to open it to compare with the one from X, causing the abort.
> 
> This fix adds that check. Consequently, no output will be returned.

Looks good! Queued, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list