Added repository states for hg/svn.  Untested.