[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Tag and set explicit revision for externals fails pre-commit hook

From: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Wed, 9 Oct 2013 09:56:59 -0500

On Tue, Oct 8, 2013 at 4:24 PM, Tina Harron <tina.harron_at_irdinc.com> wrote:
> Here is my scenario:
> I have a folder that contains code and some externals. The externals are referenced using a relative path.
> The server has a single pre-commit hook setup. This pre-commit hook looks through the commit message and makes sure it contains certain text.
> I want to make a tag of this folder, and I want to explicitly set the revision of the externals in the directory when I do so.
> I right-click on my Tortoise 1.8.2 client, select "Branch/tag...", type in a path to commit to, log message that contains my specific text, and check all externals off in the area that reads "set explicit revision for these externals".
> I click OK. The command runs and gives me both a new revision and a pre-commit hook error.
> Copy C:\test to <svn repo>/TST/tags/tag-3, Revision HEAD
> At revision: 51056
> Changing externals to fixed revision
> Commit blocked by pre-commit hook (exit code 1) with output:
> Your log message doesn't contain the right text. Fix it.
> Please note:
> Your working copy remains on the previous path. If you want your next changes
> to be committed to the copy or branch you have just created,
> then you need to switch your working copy over to the new URL.
> Use the Switch command to do that.
> When I go into the repository, I see that the tag was indeed created, but the externals have not been set to their fixed revision as they should be.
> I expected to see either both changes succeed or fail.
> Can someone explain why this is happening? Thanks.

The "changing externals to fixed revision" step is done with a second
commit after tag creation. Your first commit (to create the tag) has
the correct text, but your second commit (done automatically by
TortoiseSVN) has only the automated text "Changing externals to fixed
revision" which is apparently NOT the "right" text that your
pre-commit hook looks for.

You will either need to fix the externals manually, or fix your
pre-commit hook to allow these automatic commits on tags.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-10-09 16:57:27 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.