Search code examples
javaversion-controlmercurialdvcsjavahg

Get list of tags for a Changeset object in JavaHg?


Is there a way to get the list of tags for a Changeset object in JavaHg?


Solution

  • You can get all tags with the TagsCommand

    Map<String,Changeset> tagMap = TagsCommand.on(repo).execute();
    

    You will then have to iterate over the map and search for the Changeset in question.