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

need for "svnlook export", "svnlook replay"

From: John Belmonte <john_at_neggie.net>
Date: 2005-01-17 18:49:44 CET


I wish there was an "svnlook export", which would create a snapshot of a
repository tree as it looks in a transaction. My use case is a
pre-commit hook which verifies that the build is not broken.

I've tried the following schemes to fill in this missing functionality,
but each turns out rather ugly:

     * do an "svn export" and apply the transaction's "svnlook diff" to
it. This doesn't cover changes to file permission (e.g. executable) or
deleted directories. Working with subtrees in the repo is tricky-- I
needed to use filterdiff (since "svnlook diff" doesn't accept a
repo-local path) and calculate appropriate strip value for the patch

     * "svnlook cat" each file listed in "svnlook tree". Slow, and file
permissions need to be handled manually.

Also useful would be a "svnlook replay" which would replay a transaction
into an existing working copy. Then I would: 1) maintain a pristine
working copy in post-commit; 2) in pre-commit, replay the transaction
into a clone of that working copy, check the build, and then destroy the


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 17 18:51:04 2005

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.