开发者

Show the number of files in an hg repo?

开发者 https://www.devze.com 2023-03-26 05:14 出处:网络
I have a very large and growing repo.Is there any handy way to have mercurial show the number of files tracked in a repo?I don\'t want to list the files, I just want the fil开发者_如何转开发e count.

I have a very large and growing repo. Is there any handy way to have mercurial show the number of files tracked in a repo? I don't want to list the files, I just want the fil开发者_如何转开发e count.

Thanks!


hg manifest will print a list of version controlled files for the current revision, one file per line -- so on unix, hg manifest | wc -l would work. (Alternatively, hg status --all prints a list of all files, including ignored files, so you can count those lines if you want to include those too.)

0

精彩评论

暂无评论...
验证码 换一张
取 消