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

Re: post-commit hook questions

From: Noel Yap <yap_noel_at_yahoo.com>
Date: 2002-10-15 01:13:49 CEST

--- Karl Fogel <kfogel@newton.ch.collab.net> wrote:
> > upon creation of LABEL. The problem is that both
> > LABEL and branch look alike to Subversion but they
> > should be treated differently by the post-commit
> hook.
>
> They don't need to look alike to the post-commit
> hook, though; they
> have different paths :-).

I'm sorry if I wasn't clear on this. Both the names
"branch" and "LABEL" are chosen by the user. So,
somehow, the user will have to convey whether they are
creating a "branch" or a tag.

> > Maybe for now I'll just use naming conventions?
>
> Yes, I think so.

Another thought I had was to wrap the svn client
(creating "branch" and "label" commands). All the
"label" command will do is the typical "svn cp". The
"branch" command, OTOH, will also create HEAD and 0
branch revision label. I was hoping I could do this
within the hook so that it'll all happen within the
same transaction, but since the post-commit hook isn't
in the same transaction anyway, ...

Thanks,
Noel

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 15 01:14:24 2002

This is an archived mail posted to the Subversion Dev mailing list.

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