Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show the number of files in an hg repo?

Tags:

mercurial

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 file count.

Thanks!

like image 202
srking Avatar asked Aug 05 '11 00:08

srking


Video Answer


1 Answers

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.)

like image 167
Ismail Badawi Avatar answered Oct 20 '22 18:10

Ismail Badawi