sapling/mercurial
Idan Kamara 22e5d8d701 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.
2011-04-11 21:44:22 +03:00
..
help help/dates: rephrase explanation of internal format 2011-04-05 10:04:19 +02:00
hgweb hgweb: add bookmarks listing to summary page of gitweb/monoblue styles 2011-04-10 10:01:42 +09:00
pure pure: fix index parsing on empty repositories 2011-02-17 13:37:52 -02:00
templates hgweb: add bookmarks listing to summary page of gitweb/monoblue styles 2011-04-10 10:01:42 +09:00
__init__.py Add back links from file revisions to changeset revisions 2005-05-03 13:16:10 -08:00
ancestor.py ancestor: improve description 2011-03-07 15:45:10 -06:00
archival.py archive: use hardcoded constants when creating .zip archives 2011-03-16 23:54:55 +01:00
base85.c backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
bdiff.c bdiff.c: rename all variables which hold a hash value to "hash" 2011-03-23 02:33:24 +01:00
bookmarks.py bundle: update current bookmark to most recent revision on current branch 2011-03-14 23:03:56 +01:00
bundlerepo.py url: refactor util.drop_scheme() and hg.localpath() into url.localpath() 2011-03-30 20:03:05 -07:00
byterange.py pylint, pyflakes: remove unused or duplicate imports 2010-04-14 17:58:10 +09:00
changegroup.py changegroup: introduce bundler objects 2011-03-31 15:24:06 -05:00
changelog.py Merge with stable 2010-02-11 17:44:01 -06:00
cmdutil.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
commands.py grep: don't print data from binary files for matches (issue2614) 2011-04-09 23:13:17 +05:30
config.py config: use util.posixfile 2011-03-16 18:48:59 +01:00
context.py filectx: introduce p1/p2 convenience methods 2011-04-04 16:21:57 -05:00
copies.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
dagparser.py cleanup: use x in (a, b) instead of x == a or x == b 2010-09-23 00:02:31 -05:00
demandimport.py demandimport: change default for level from None to -1 2010-12-01 21:46:08 +01:00
diffhelpers.c backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
dirstate.py dirstate: add p1/p2 convenience methods 2011-04-04 15:52:55 -05:00
discovery.py discovery: avoid discovery when local graph is a subset of remote 2011-03-23 16:06:55 +01:00
dispatch.py introduce new RequirementError (issue2649) 2011-02-18 20:25:25 +01:00
encoding.py encoding: fix typo in variable name 2010-11-29 10:13:55 +01:00
error.py introduce new RequirementError (issue2649) 2011-02-18 20:25:25 +01:00
extensions.py bookmarks: move push/pull command features to core 2011-02-10 13:46:28 -06:00
fancyopts.py help: show value requirement and multiple occurrence of options 2010-06-06 17:25:00 +09:00
filelog.py filelog: move metadata parsing to a helper function 2011-01-06 17:04:47 -06:00
filemerge.py filemerge: introduce a 'regkeyalt' merge tool variable 2011-03-08 13:05:18 -06:00
graphmod.py graphmod: safer code when a changeset has two identical parents 2010-11-08 22:45:56 +09:00
hbisect.py Lowercase error messages 2010-08-29 22:37:58 +02:00
help.py help: sort help topics to make the output more readable (issue2751) 2011-04-05 12:40:47 +08:00
hg.py hg: make parseurl() consistently return normalised path 2011-04-06 12:48:59 +02:00
hook.py hooks: sort any dictionaries set in the environment 2010-12-24 15:22:00 +01:00
httprepo.py httprepo/sshrepo: use url.url 2011-03-30 20:01:35 -07:00
i18n.py HGPLAIN: allow exceptions to plain mode, like i18n, via HGPLAINEXCEPT 2011-01-05 00:18:36 +11:00
ignore.py remove unnecessary list comprehensions 2011-02-03 10:31:17 +01:00
keepalive.py fix coding style (reported by pylint) 2010-02-08 15:36:34 +01:00
localrepo.py localrepo: don't add deleted files to list of modified/added files (issue2761) 2011-04-11 21:44:22 +03:00
lock.py lock: use util.unlink (issue2537) 2011-01-11 14:10:16 +01:00
lsprof.py lsprof: remove #!-line from non-executable script 2010-10-25 23:46:26 +02:00
lsprofcalltree.py drop unused imports 2009-05-14 15:35:46 +02:00
mail.py mail: fix regression when parsing unset smtp.tls option 2011-01-07 20:50:42 +01:00
manifest.py manifest: add readfast method 2011-03-20 19:43:28 -05:00
match.py match: fix subtle error in _buildmatch 2011-02-18 10:28:20 -06:00
mdiff.py mdiff: carriage return (\r) is also ignorable whitespace 2010-10-19 03:55:06 +02:00
merge.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
minirst.py minirst: improved support for option lists. 2010-11-02 17:44:19 +01:00
mpatch.c backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
node.py Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
osutil.c osutil: replace #import with #include, and add a check for it 2011-03-23 23:05:32 +01:00
parser.py revset: report a parse error if a revset is not parsed completely (issue2654) 2011-03-16 23:09:14 +01:00
parsers.c backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
patch.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
posix.py path_auditor: check filenames for basic platform validity (issue2755) 2011-04-06 18:09:43 +02:00
pushkey.py bookmarks: move pushkey functions into core 2011-02-10 13:46:27 -06:00
py3kcompat.py py3kcompat: added fake ord implementation for py3k 2010-08-07 16:38:38 -03:00
repair.py code indentation fixes 2011-03-23 23:33:14 +01:00
repo.py Make sure bundlerepo doesn't leak temp files (issue2491) 2011-02-12 10:58:11 +01:00
revlog.py changegroup: introduce bundler objects 2011-03-31 15:24:06 -05:00
revset.py revset: rearrange code so functions are sorted alphabetically 2011-04-08 17:47:58 +03:00
similar.py fix coding style 2010-05-02 00:48:33 +02:00
simplemerge.py backout most of 26e0b9a8ce0d 2010-09-24 12:46:54 -05:00
sshrepo.py url: nuke some newly-introduced underbars in identifiers 2011-03-31 10:43:53 -05:00
sshserver.py wireproto: fix handling of '*' args for HTTP and SSH 2011-03-22 07:38:32 +01:00
statichttprepo.py httprepo/sshrepo: use url.url 2011-03-30 20:01:35 -07:00
store.py store: remove pointless pathjoiner parameter 2011-02-16 15:02:30 +01:00
strutil.py Update license to GPLv2+ 2010-01-19 22:20:08 -06:00
subrepo.py subrepo: trailing whitespace cleanup 2011-04-11 07:34:40 -05:00
tags.py remove pointless os.path.join calls when opening files in .hg/cache 2011-01-17 09:37:20 +01:00
templatefilters.py templates: provide granularity for future values for age filter 2011-03-16 03:28:56 +01:00
templatekw.py misc: replace .parents()[0] with p1() 2011-04-04 16:21:59 -05:00
templater.py revset: report a parse error if a revset is not parsed completely (issue2654) 2011-03-16 23:09:14 +01:00
transaction.py transaction: use posixfile and unlink from util 2011-02-15 14:41:49 +01:00
ui.py url: nuke some newly-introduced underbars in identifiers 2011-03-31 10:43:53 -05:00
url.py url: be stricter about detecting schemes 2011-03-31 17:37:33 -07:00
util.h backout of e4cb9628354c 2011-01-27 11:15:08 +01:00
util.py path_auditor: eliminate local function 'check' in __call__ 2011-04-11 10:06:57 +02:00
verify.py code style: prefer 'is' and 'is not' tests with singletons 2010-11-22 18:15:58 +01:00
win32.py set NOT_CONTENT_INDEXED on .hg dir (issue2694) 2011-03-28 15:54:22 +02:00
windows.py util: move checklink() to posix.py and return False on Windows 2011-04-05 11:55:52 +02:00
wireproto.py wireproto: add getbundle() function 2011-03-23 16:02:11 +01:00