New command: repo.py hgsub ; it updates .hgsubstate.