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

RE: Hook to check for a presence of file before committing

From: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Tue, 31 Aug 2010 09:22:52 +0100

> -----Original Message-----
> From: Tech Geek [mailto:techgeek12345_at_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
Received on 2010-08-31 10:23:53 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.