You say the hooks can do alot of things to the SVN DB.. now, I wanted to
find a way to have a svn_revision (aka cvs_date) file written to a file...
i though of the $revision$ keyword (see SVN::keywords) but that will only
tell about the last revision in which a specific file was modified... it
would be better if we could have 'last revision in which any file was
modified), and have
cat > svn_revision <<EOF
$global_revision$
EOF
and let svn take care of it...
maybe a hook could be used, pre-commit, that would make the svn_revision
file look 'modified' to svn, and the $revision$ would then work.. or it
could simply put the new revision number in it, so we get the svn_revision
file modified WITH each commit, not being a separate commit (so no extra
revision incrementation done)
It would be nice to ask people who know more about revisions and hooks,
and I'm sure SF wouldn't mind as long as we provide this hook, and that
it's "safe" for their repository (which it should be).
KKRT
On Tue, 16 May 2006 06:36:10 -0400, Arieh Schneier
<[EMAIL PROTECTED]> wrote:
Message from Youness :
Please, don't commit the file cvs_date any more.
I'm going to search how to have roughly the same feature with svn.
As I mentioned in a previous email, I have already looked up to see how
we
could do it. The email needs to be sent using a 'hook script', however
the
'hook scripts' are very powerful and give too much power over the
database
than sf would like. Therefore they are only allowing certain scripts
which
they will install (if you want 1 they dont have then you have to submit a
'feature request').
The script which they use for sending commit emails is called
SVN::Notify. I
looked at the options for this script and it does have the capabilities
of
only sending emails for files that match a regular expression (exactly
what
we want), the option is the '--to-regex-map' option. However sf does not
give access to this option when installing that script. Someone needs to
submit a feature request to ask sf to enable this option. If no one else
does I will submit the request when I get a chance.
PS Sf reason for not enabling that option was, quote: "For simplicity, we
only support one user-provided option to this script, the email address
to
send the notification to."
Lio.
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel
--
KaKaRoTo
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel