push several local repos to bitbucket at the same time

Uwe Brauer oub at mat.ucm.es
Fri Sep 2 11:31:13 UTC 2016


Hi

I have a couple of repos which I push at the end of the day to
bitbucket, but sometimes I forget that.

Is there an easy way to push these repos which live in different
directories with one single command?


I recently heard about subrepos, could that be used?

The other option would be to use find

Something like this

find . -name ".hg" -type d -printf "\t" -execdir pwd \; -execdir hg push \; -printf "\n"

Or maybe I could run a hook such that after each commit it pushed (but
maybe that is a bit too much).

Any ideas?

Uwe Brauer 



More information about the Mercurial mailing list