> -----Original Message----- > From: Tech Geek [mailto:techgeek12...@gmail.com] > Sent: 31 August 2010 09:14 > To: David Weintraub > Cc: Ryan Schmidt; Subversion Users > Subject: Re: Hook to check for a presence of file before committing > > >It is possible to verify that a project.xml is one of the files being > >committed because you can use "svn changed" at the time of the > >transaction to see what files are being added or modified. > It would be > >possible to fail the transaction if svnlook changed doesn't have a > >project.xml file in the list. > > Yes that's exactly what I was hoping for. Do you happen to > know any template/example in perl/python that would give me > some hint on how to achieve this? I do not have much > experience with either of the language but can easily learn > if I look at some examples. > > And yes I am looking to implement on server side only. > Can you guarantee that this file will have been _modified_ in every commit? Otherwise I believe you are in danger of rejecting commits because only _other_ files have changed and not your holy grail... Project files like that only tend to change when settings are changed or files added/removed, not just when file contents are changed?
~ mark c