I have a number of Mercurial projects checked out under a common “Development” directory. What is the easiest way for me to list all projects under this directory that have outgoing changesets that haven’t been pushed to the parent repository? Going into each project directory and running hg outgoing isn’t ideal.
I have a number of Mercurial projects checked out under a common Development directory.
Share
The easiest approach I have found is the following script:
NOTES
repository you’ll want to change the find command above to
find . -type d -name .hg | grep -v .hg/patches/.hgif [ `hg status | wc -l` -gt 0 ]