How can I list all available 开发者_StackOverflow社区repositories in Mercurial in shell?
Thanks.
Mercurial repositories are just directories, so you list them with ls
or the favourite directory listing tool of your choice. Or do you mean find all Mercurial repositories within a directory tree? If so find
is your friend - look for directories containing .hg
subdirectories:
find . -name '.hg' -a -type d -prune
精彩评论