exclude empty tags; update hg tag behaviour to match git