#!/bin/bash
cat .hgsub | awk '{ print $1 }' | while read x; do
    ( cd $x ; hg pull && hg update )
done
