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

Re: ClearCase-like repo structure (Was: Accessing different revs via Apache?)

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-10-09 21:20:28 CEST

Peter Davis <peter@pdavis.cx> writes:

> I don't know the answers to your other questions, but:
>
> On Wednesday 09 October 2002 11:13, you wrote:
> > 3. Will the post-commit trigger execute all commands
> > that I may care about (eg mkdir, import)?
>
> I think the only thing you'd want to do is copy and possibly mkdir. The
> post-commit doesn't have a working copy, so there would be no import.

A post-commit hook that performs another commit?

You'd better be careful about infinite loops.

The only way to do that, I think, is write a post-commit script that
uses libsvn_fs directly, either in C or python:

  1. look at the new revision, see if custom property is attached.
      If it is, do nothing.

  2. create a txn. call fs_copy() to make your tag. call
      fs_set_txn_prop to create a custom property. call fs_commit().

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 9 21:22:48 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.