Re: Subversion transactions within post-commit

2011-08-03 Thread David Weintraub
On Wed, Aug 3, 2011 at 2:31 PM, Ray Rashif wrote: > On 4 August 2011 01:59, David Weintraub wrote: > Thanks guys. I'm just stupid. I've been going on and on about what we > want to do, but I haven't even stated the obvious: > > * It's just about removing stale files from being tracked by > Subve

Re: Subversion transactions within post-commit

2011-08-03 Thread Ray Rashif
On 4 August 2011 01:59, David Weintraub wrote: > ... > SNIP > ... > I have what I call my Kitchen Sink pre-commit trigger that does all > sorts of stuff. One of the tasks it can do is "ban" files based upon > their name (either regular expression or Ant glob). If a user adds a > file with a forbid

Re: Subversion transactions within post-commit

2011-08-03 Thread David Weintraub
On Tue, Aug 2, 2011 at 5:00 PM, Ray Rashif wrote: > OK, looks like I have to explain a bit further to clear this up and > hopefully get some solutions. > > We use the repository to directly serve some files (so Subversion > updates are immediately reflected). Something like > http://subversion.apa

Re: Subversion transactions within post-commit

2011-08-02 Thread Nico Kadel-Garcia
On Tue, Aug 2, 2011 at 6:49 PM, Ray Rashif wrote: > On 3 August 2011 05:47, Nico Kadel-Garcia wrote: >> That's what "svn checkout" for initial setup, and "svn update" or "svn >> revert" of the local copy are for. > > We already have that working, I just outlined the current setup: > > http://file

Re: Subversion transactions within post-commit

2011-08-02 Thread Ray Rashif
On 3 August 2011 05:47, Nico Kadel-Garcia wrote: > That's what "svn checkout" for initial setup, and "svn update" or "svn > revert" of the local copy are for. We already have that working, I just outlined the current setup: http://files.foobar.org/ is a direct file mirror (less revision control;

Re: Subversion transactions within post-commit

2011-08-02 Thread Nico Kadel-Garcia
On Tue, Aug 2, 2011 at 5:00 PM, Ray Rashif wrote: > On 3 August 2011 04:37, David Weintraub wrote: >> NO! NO! NO! AUUUGGGHHH! >> >> Never update a repository with a hook.! That's why you're given the >> relatively safe "svnlook" command. It allows you to look, but not >> touch a repository. >> ..

Re: Subversion transactions within post-commit

2011-08-02 Thread Ray Rashif
On 3 August 2011 04:37, David Weintraub wrote: > NO! NO! NO! AUUUGGGHHH! > > Never update a repository with a hook.! That's why you're given the > relatively safe "svnlook" command. It allows you to look, but not > touch a repository. > ... > SNIP > ... Arrrgghhh damn it! Exactly what I feared. E

Re: Subversion transactions within post-commit

2011-08-02 Thread David Weintraub
On Tue, Aug 2, 2011 at 4:03 PM, Ray Rashif wrote: > We have a _local_ checkout of the repository on our server, and our > post-commit hook needs to run svn-add, svn-rm and svn-ci commands in > that checkout. All of these commands run fine. For eg. (within the > post-commit script): NO! NO! NO! AU

Subversion transactions within post-commit

2011-08-02 Thread Ray Rashif
Hi list I've been stumped by this issue for months. I had never enough time to troubleshoot it, so I'm finally desperate after having spent an entire day trying to figure things out. We have a _local_ checkout of the repository on our server, and our post-commit hook needs to run svn-add, svn-rm