Hoe Loves Mercurial
Description
A Hoe plugin for Mercurial integration. Provides tasks to automate release tagging and pushing and changelog generation. I expect it’ll learn a few more tricks in the future.
Stolen wholesale from hoe-git.
Examples
# in your Rakefile
Hoe.plugin :hg
If this plugin doesn’t see a .hg directory at the root of your project, it’ll silently deactivate itself.
Generating the Manifest
$ rake hg:manifest
This will regenerate Manifest.txt
using hg ls-files
. It does not respect Hoe’s manifest sort order and excludes!
Tagging and Sanity Checking a Release
$ rake release VERSION=1.0.0
In addition to the normal RubyForge release process, this will create and push a v1.0.0
tag. It’ll also abort the release if your index is dirty, or if there are untracked files present.
Dependencies
Hoe and Mercurial, obviously. I wouldn’t be surprised if things don’t quite work for ancient hg versions < 1.4.1
Installation
$ gem install hoe-hg
TODO
-
I bailed on the auto-generated changelog.
License
Copyright 2009 McClain Looney ([email protected])
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.