Invoking mercurial commands for all directories in a given directory
Posted
by
sasuke
on Super User
See other posts from Super User
or by sasuke
Published on 2011-02-20T06:41:28Z
Indexed on
2011/02/20
7:27 UTC
Read the original article
Hit count: 456
Hi folks!
Let's say I have around 10 hg repositories cloned in a parent directory (let's call it "parent"). Is there any way I can invoke a mercurial command like hg status
on all of the sub-directories rather than performing the laborious act of cd
ing into each directory and then invoking hg status
.
JFTR, I did try out the good old xargs
but for some reason it fails to work. The commands which I used are:
find . -maxdepth 1 -type d -print | xargs -t "hg status"
and
ls | xargs -t "hg status"
Any help would be appreciated, TIA.
-Sasuke
© Super User or respective owner