title: Renaming tags while converting a Mercurial repository
body: <p>I have a Mercurial repository and want only a subset from its content in a new Mercurial repository. I know how to do this using the <a href="http://mercurial.selenic.com/wiki/ConvertExtension#Converting_from_Mercurial" rel="nofollow noreferrer">Convert Extension</a> with a filemap file.</p>
  
  <p>However, I also like to filter the tags, i.e. only keep one specific to the files I like to include. I'm would be able to name all these tags and would also like to rename them. In other words I would need a tagmap feature as well.</p>
  
  <p>I'm aware I just could exclude <code>.hgtags</code> and then add all tags manually or how to <a href="https://stackoverflow.com/questions/7568693/mercurial-how-to-change-name-of-a-tag">rename tags</a>, but I actually like to keep the original tagging dates and revisions, so the converted repository looks "authentic". </p>
  
  <p>Any ideas how to do this? I wouldn't mind writing some Python code as well.</p>