sapling/hgext/largefiles
FUJIWARA Katsunori 1d7c1875df largefiles: check existence of the file with case awareness of the filesystem
Before this patch, largefiles extension always unlinks largefiles
untracked on the target context in merging/updating after updating
working directory.

For example, it is assumed that the revision X consists of ".hglf/A"
(and "A" implicitly) and revision Y consists of "a" (not ".hglf/A").

In the case of updating from X to Y, largefiles extension tries to
unlink "A" after updating "a" in working directory. This causes
unexpected unlinking "a" on the case insensitive filesystem.

This patch checks existence of the file in the working context with
case awareness of the filesystem to prevent from such unexpected
unlinking.

"lfcommands._updatelfile()" also unlinks target file in the case
"largefile is tracked in the target context, but fails to be fetched".

This patch doesn't apply "repo.dirstate.normalize()" in this case,
because it should be already ensured in the manifest merging that
there is no normal file colliding against any largefiles.
2013-05-07 05:04:11 +09:00
..
__init__.py largefiles: fix typos in documentation 2013-04-19 18:26:35 -03:00
basestore.py largefiles: stat all largefiles in one batch before downloading 2013-04-15 23:37:43 +02:00
CONTRIBUTORS hgext: add largefiles extension 2011-09-24 17:35:45 +02:00
lfcommands.py largefiles: check existence of the file with case awareness of the filesystem 2013-05-07 05:04:11 +09:00
lfutil.py largefiles: use repo.wwrite for writing standins (issue3909) 2013-04-27 00:41:42 +02:00
localstore.py largefiles: don't close the fd passed to store._getfile 2013-04-15 23:47:04 +02:00
overrides.py largefiles: drop lfutil.blockstream - use filechunkiter like everybody else 2013-04-15 23:43:44 +02:00
proto.py largefiles: use filechunkiter for iterating largefile when serving getlfile 2013-04-16 00:40:21 +02:00
remotestore.py largefiles: stat all largefiles in one batch before downloading 2013-04-15 23:37:43 +02:00
reposetup.py largefiles: drop repo wrapping detection 2013-04-26 19:04:01 +02:00
uisetup.py largefiles: deprecate --all-largefiles for pull 2013-04-15 01:59:11 +02:00
wirestore.py largefiles: stat all largefiles in one batch before downloading 2013-04-15 23:37:43 +02:00