On Wed, Dec 10, 2008 at 3:24 AM, Hervé Giraud <[EMAIL PROTECTED]> wrote:

> Hi
>
> Alex Boisvert a écrit :
>
>> On Tue, Dec 9, 2008 at 2:36 AM, Herv� Giraud <[EMAIL PROTECTED]> wrote:
>>
>> > I have the following "problems" with the release task.
>> >
>> > The repo_url is defined like this :
>> >
>> >     def repo_url
>> >       svn('info').scan(/URL: (.*)/)[0][0]
>> >     end
>> >
>> > On my system, "svn info" gives me "URL : http://..."; : there is a space
>> > after "URL".
>> > A better regexp could be : /URL\s?: (.*)/
>>
>>
>> For reference, could you provide the output of "svn -version"  and "svn
>> info" ?
>>
>>
> I have a french version of Windows XP (I know, never a good idea not using
> english version).



mais quelle idee aussi!.. ;)


>
> I'm using Msys or dos.
>
> svn, version 1.5.4 (r33841)
>   compilé Oct 24 2008, 15:51:42
>
> $ svn info
> Chemin : .
> URL : https://...
> Racine du dépôt : https://...
> UUID du dépôt : bb6581bd-5aa3-46da-a306-7108957c620c
> Révision : 208
> Type de noeud : répertoire
> Tâche programmée : normale
> Auteur de la dernière modification : ...
> Révision de la dernière modification : 206
> Date de la dernière modification: 2008-12-09 10:00:24 +0100 (mar. 09 déc.
> 2008)
>
>> Next, our commit messages have a special format (we start with keywords),
>> > and
>> > we cannot use the buildr release without modifications.
>> > I can patch the Release class in my buildfile, but perhaps something
>> > similar to
>> > the release attribute in buildr 1.3.3 would be possible, like in the
>> > following exemple ?
>> >
>> > Release.tag_name = lambda { |ver| "foo-#{ver}" }
>> > Release.commit_format = lambda { |msg| "ADD: #{msg}" }
>>
>>
>> I think this would be a welcome enhancement.   Do you want to submit a
>> patch?
>>
>>
> Awesome, somebody did it already !! Thank you.
>
>> Last point, it seems there is a problem with the 1.5.x version of the svn
>> > client.
>> > I'm using the command line svn client (1.5.4), and the scn.copy does not
>> > work.
>> >
>> > I think this message explains it :
>> >
>> http://www.nabble.com/Error-when-creating-tags-from-working-copy-td19913357.html
>> > I did what they recommend, and it worked when I modify the "tag_release"
>> > method and I do a update just before the copy
>>
>>
>> I'm not sure if you're just sharing this information, or asking if this
>> should become standard in Buildr.  It seems like a bug on Subversion's
>> side
>> and doing a "svn update" before tagging, as opposed to earlier in the
>> build
>> process, seems to be wrong... It creates a race condition and I wouldn't
>> want to tag different content than what was used during the release.
>>
>> alex
>>
>>
> Sorry if I'm not clear : I'm just sharing this info because I wasn't aware
> of it.
> You're right it's a bug in svn but it's the only way I know today if I
> wan't to use the release task (of course, nobody should do a commit during
> this release).
>
> Herve
>
>

Reply via email to