So... ?
anyone thinking about this idea I gave ?

KKRT

On Fri, Jul 07, 2006 at 05:24:16PM -0400, Youness Alaoui wrote:
> On Fri, Jul 07, 2006 at 09:35:28PM +0200, Harry Vennik wrote:
> > If a pre-commit script can check that, maybe it can also update it 
> > automatically? Just wondering....
> > 
> 
> No it can't, to do that, you'll need to meddle with the transaction, and you 
> should NEVER modify the 
> transaction in a script, also, the user who did the commit won't ever be 
> notified of the change, so his client 
> will think he has the latest, but in the end he doesn't, so the next commit 
> will ovewrite, and blabla... look 
> at the svn book, in the hook scripts part, the red block, it says you can 
> change some properties in a 
> pre-commit but don't change the eol-style property because the client won't 
> be notified (the eol-style changes 
> the file's data... ), it's the same philosophy here
> 
> > And what about branches? I think the script should check only for branches 
> > that change. so committing to trunk will require the svn_date on trunk to 
> > be 
> > modified, and a commit to a branch will require the svn_date in there to be 
> > modified. And given that, it might as well block every commit to a tag (we 
> > have to check the path anyway.
> > 
> very interesting point, you're 100% right.. about commit to a tag, I'm not 
> sure, since we did need to commit 
> to a tag, but hey, tehre are always exceptions so if the svn:log commit log 
> is set to "COMMIT TO TAG: ..." 
> then it will allow.. 
> 
> > Btw: talking about tags and branches: those can be created with a single 
> > 'svn 
> > copy'. I saw a few times that an add was done first, and then a copy.
> 
> ouch.. are you serious ? I didn't see that, I may have missed it, anyways, 
> when I get my PC back, and hoping I 
> get time, I'll review all of the commits, I know there were ALOT of commits 
> in trunk/ and not ported to 0.96 
> (almost all of my commits for example:P)
> 
> KKRT
> 
> > Op vrijdag 7 juli 2006 20:04, schreef Youness Alaoui:
> > > Hello,
> > > I think I have finally found a solution for the svn_date problem, here's
> > > what I suggest We should have a svn_date file (or dev_version maybe) with
> > > the content : DATE
> > > REVISION NUMBER
> > >
> > > This file will have to be automatically regenerated by US everytime we 
> > > want
> > > to do a commit.. so that svn_date is updated on EVERY commit so there is 
> > > no
> > > 'additional' revision for that commit (since SVN supports attomic commits)
> > > Now, you'll tell me "what if I forget to update it", well, that's where my
> > > thinking was dedicated, we'll have a pre-commit script that will check
> > > svn_date's content, whenever you commit, it makes sure svn_date is always
> > > modified and that it's content is equal to the current date and the
> > > revision number is the HEAD's revision number + 1
> > > if it's not, then it will print to you the correct value that should be in
> > > the file, so you can either copy/paste or cat << EOF it.. this way, we
> > > won't care about different timezones (if 'date' gives a different date 
> > > from
> > > your machine to the svn server's machine, you won't be stuck..), also for
> > > windows/mac users, it wil lbe easier to paste than to try to write the
> > > value of the date/time manually... + this way, you also won't have any
> > > problem into remembering/guessing the next revision number available.. 
> > > This
> > > pre-commit script should be written, there is an example someone in svn
> > > wepage... once it's done, it has to be submitted to SF so they can add 
> > > it..
> > > any comments?
> > >
> > > KKRT
> > >
> > > 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
> > > Amsn-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/amsn-devel
> > 
> > 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
> > Amsn-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/amsn-devel
> 
> 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
> Amsn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amsn-devel


-------------------------------------------------------------------------
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
Amsn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to