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

RE: Modifying file properties in pre-commit

From: Lira Olavo <Olavo.LIRA_at_gemalto.com>
Date: Sun, 14 Sep 2008 16:09:00 +0200

Hi Ryan,

        As Purple Streak said, also my users are not in *nix and If I
just send a message about using the Perl scrip it would not work :( Most
of them are not technical.
        My question is: If I freeze with the -r or with the PEG (@xxx as
I'm 1.5.2) inside the TAG I don't think it would "break the checkout
right? Is it safe to do it?
        Thank you

Olavo Lira

-----Original Message-----
From: Ryan Schmidt [mailto:subversion-2008c_at_ryandesign.com]
Sent: Saturday, September 13, 2008 9:11 PM
To: Lira Olavo
Cc: SVNUsers
Subject: Re: Modifying file properties in pre-commit

On Sep 13, 2008, at 6:53 PM, Lira Olavo wrote:

> Blair Zajac wrote:
>
>> Purple Streak wrote:
>>
>>> Lira Olavo wrote:
>>>
>>>> Yes but isn't it the same as working within a team? It is like you
>>>> commit something and then someone after you commit a new
>>>> version, so
>>>> your version now is not up-to-date. Why would you call it "break
>>>> the
>>>> checkout"?
>>>
>>> The difference is probably when you do an update the client doesn't
>>> know something has changed in the revision it committed and so
>>> doesn't
>>> download that change? I'm guessing here as I'm new to subversion
>>> and
>>> trying to learn it all fast :)
>>
>> Right.
>
> Thank you all for the answer also, pin the TAG is also my problem
> but I
> can't control all the clients for witch SVN Gui they are using,
> sometimes is subversive, others, subclipse, sventon, tortoise and ant
> svn... How can I impose the pin of a svn:externals during a TAG for
> all
> my clients then?

Write a pre-commit hook. The logic would be something like:

Check "svnlook dirs-changed" on the incoming transaction. If
something is being added in the tags directory, then check every
subdirectory of the thing being added for the presence of the
svn:externals property. If it exists, check to make sure the value
contains "-r N" where N is an integer. If it doesn't, print an error
to stderr explaining to the user that they need to use svncopy.pl and
exit with a nonzero value.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-14 16:09:36 CEST

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

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