comparison tests/test-largefiles-update.t @ 23089:197dc4580da2 stable

largefiles: ignore removal status of files not managed in the target context Before this patch, "hg status --rev REV" listed largefiles removed in the working directory up with "R" mark, even if they aren't managed in the REV. Normal files aren't listed up in such case. When "lfilesrepo.status" is invoked for "hg status --rev REV", it treats files on conditions below as "removed" (to avoid manifest full scan in "ctx.status" ?): - marked as "R" in lfdirstate, or - files managed in the target revision but unknown in the manifest of the working context (= not including "R" files) But the former can include files not managed in the target context. To ignore removal status of files not managed in the target context, this patch drops files unknown in the target revision from "removed" list.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Tue, 28 Oct 2014 01:14:11 +0900
parents 6099b518643c
children 24600c9d7f4e
comparison
equal deleted inserted replaced
23088:fe5f044b753d 23089:197dc4580da2
541 $ cat .hglf/largeX 541 $ cat .hglf/largeX
542 fa44618ea25181aff4f48b70428294790cec9f61 542 fa44618ea25181aff4f48b70428294790cec9f61
543 $ cat largeX 543 $ cat largeX
544 largeX 544 largeX
545 545
546 Test that "hg status" doesn't show removal of largefiles not managed
547 in the target context.
548
549 $ hg update -q -C 4
550 $ hg remove largeX
551 $ hg status -A largeX
552 R largeX
553 $ hg status -A --rev '.^1' largeX
554
546 $ cd .. 555 $ cd ..