srking
srking

Reputation: 4732

Show the number of files in an hg repo?

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!

Upvotes: 5

Views: 722

Answers (1)

Ismail Badawi
Ismail Badawi

Reputation: 37177

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

Upvotes: 9

Related Questions