문제

I asked a similar question to summarize the directories of files that are ignored under mercurial and got an appropriate answer Summarize all ignored files/directories in a mercurial repository.

However, with large projects, the information thrown out by hg stats -i is still a lot (even after filtering to directory level). Is there a tool or smart script that will help me get a high level summary of ignored files. Something that draws out a tree like directory structure with icons indicating which top level folders have ignored stuff. It could be exe or pyc files or entire libraries like django or jquery that are sitting in my repo but are part of hgignore.

If that doesn't exist, maybe a simple tool that can cross-verify that I haven't made errors in the glob/regexp patterns of hgignore i.e. accidentally ignored some crucial file.

도움이 되었습니까?

해결책

There is no tool in the Mercurial ecosystem that is going to give you a visual tree of ignored things. You could, however, do something like this:

cd ..
cp -a yourRepo ignoredOnlyRepo  # create a copy (not a clone) of the tree
cd ignoredOnlyRepo
hg status -mardcu --no-status --print0 | xargs -0 rm

That creates a copy (not a clone) of your repo and then deletes all non-ignored files from it. At that point you can use any file viewer you like and you're seeing only the ignored stuff because they're all that's left.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top