You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastien Martel <sm...@real.com> on 2009/02/09 07:51:19 UTC

Using the release-plugin on a mercurial release branch.

Hello List--

I am trying to use the release plugin to make a release build off a  
named branch using Mercurial. The problem I am running into is that  
release:perform is not switching to the release branch, it is,  
however, pulling the right tag, but that's not enough with mercurial,  
the branch needs to be specified as well:

	hg clone -r release-tag -r release-branch ...

Is there a way to get the plugin to clone the repository that way?


Thanks,

Sebastien Martel



Re: Using the release-plugin on a mercurial release branch.

Posted by Sebastien Martel <sm...@real.com>.
Bump.

Any Mercurial and Maven users here that struggle with the release  
plugin?

What I am doing to get around this isn't pretty and I'd prefer avoid  
it and fold that feature in the release plugin itself. Essentially, I  
configured a post-clone hook that triggers a script to update to the  
right branch. When maven release:perform clones the hg repository, the  
hook becomes active. It works, but it's dirty.


On Feb 8, 2009, at 10:51 PM, Sebastien Martel wrote:

> Hello List--
>
> I am trying to use the release plugin to make a release build off a  
> named branch using Mercurial. The problem I am running into is that  
> release:perform is not switching to the release branch, it is,  
> however, pulling the right tag, but that's not enough with  
> mercurial, the branch needs to be specified as well:
>
> 	hg clone -r release-tag -r release-branch ...
>
> Is there a way to get the plugin to clone the repository that way?
>
>
> Thanks,
>
> Sebastien Martel
>
>

Sebastien Martel