Looping through two possible regex patterns for mercurial.