comparison tests/test-subrepo-git.t @ 21567:5900bc09e684 stable

subrepo: avoid sanitizing ".hg/hgrc" in meta data area for non-hg subrepos Before this patch, sanitizing ".hg/hgrc" scans directories and files also in meta data area for non-hg subrepos: under ".svn" for Subversion subrepo, for example. This may cause not only performance impact (especially in large scale subrepos) but also unexpected removing meta data files. This patch avoids sanitizing ".hg/hgrc" in meta data area for non-hg subrepos. This patch stops checking "ignore" target at the first (case-insensitive) appearance of it, because continuation of scanning is meaningless in almost all cases.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Thu, 08 May 2014 19:03:00 +0900
parents a01988cd9b61
children 652e07debf10 8621125a1718
comparison
equal deleted inserted replaced
21566:a01988cd9b61 21567:5900bc09e684
656 cat: s/.hg/hgrc: No such file or directory 656 cat: s/.hg/hgrc: No such file or directory
657 [1] 657 [1]
658 $ cat s/sub/.hg/hgrc 658 $ cat s/sub/.hg/hgrc
659 cat: s/sub/.hg/hgrc: No such file or directory 659 cat: s/sub/.hg/hgrc: No such file or directory
660 [1] 660 [1]
661 $ cd .. 661
662 Test that sanitizing is omitted in meta data area:
663
664 $ mkdir s/.git/.hg
665 $ echo '.hg/hgrc in git metadata area' > s/.git/.hg/hgrc
666 $ hg update -q -C af6d2edbb0d3
667 checking out detached HEAD in subrepo s
668 check out a git branch if you intend to make changes
669
670 $ cd ..