On new repositories ./hg/branch and .hg/dirstate do not exist. In this case use "hg summary"