ros-infrastructure/catkin_pkg

catkin_generate_changelog fails on hg/mercurial repositories

kmhallen opened this issue · 2 comments

Git repositories work as expected, but hg repositories fail and report tags that don't exist.

Commands to clone some hg repositories and reproduce:

cd /tmp && hg clone https://bitbucket.org/DataspeedInc/lusb
cd /tmp && hg clone https://bitbucket.org/DataspeedInc/dataspeed_can
cd /tmp && hg clone https://bitbucket.org/DataspeedInc/dbw_fca_ros
cd /tmp/lusb && catkin_generate_changelog
cd /tmp/dataspeed_can && catkin_generate_changelog
cd /tmp/dbw_fca_ros && catkin_generate_changelog

Output:

Found packages: lusb
Querying commit information since latest tag...
ERROR: The tag name '1' doesn't match the version pattern x.y.z

Found packages: dataspeed_can, dataspeed_can_msg_filters, dataspeed_can_msgs, dataspeed_can_tools, dataspeed_can_usb
Querying commit information since latest tag...
ERROR: The tag name '33' doesn't match the version pattern x.y.z

Found packages: dbw_fca, dbw_fca_can, dbw_fca_description, dbw_fca_joystick_demo, dbw_fca_msgs
Querying commit information since latest tag...
ERROR: The tag name '4' doesn't match the version pattern x.y.z

Please consider to provide a pull request to add proper support for Mercurial repositories to catkin_generate_changelog.

PR #236 seems to fix this issue