On Mon, Dec 19, 2005 at 05:17:04PM -0500, Jim Fulton wrote:
> Jim Fulton wrote:
> >
> >Jens Vagelpihl has graciously offered to convert the subversion
> >repository to use a file-system back end.
> Jim groans, That's Jens Vagelpohl.
> Thanks again Jens!

Yes! Yes! Yes!

I can offer a short shell script that I used to convert about 50 small
repositories to fsfs.  Perhaps it will come in handy.

Marius Gedminas
In short, at least give the penguin a fair viewing. If you still don't
like it, that's ok: that's why I'm boss. I simply know better than you
                -- Linus "what, me arrogant?" Torvalds, on c.o.l.advocacy
# convert a subversion repository to fsfs
# usage: convert-svn-to-fsfs /path/to/repository
test -z "$repos" && {
  echo "usage: $0 /path/to/repository" 1>&2
test -f "$repos/format" || {
  echo "$0: $repos is not a subversion repository" 1>&2
  exit 1
test -e "$repos.old" && {
  echo "$0: $repos.old already exists" 1>&2
  exit 1
test "`cat \"$repos/db/fs-type\" 2>/dev/null`" = "fsfs" && {
  echo "$0: $repos already uses fsfs" 1>&2
  exit 1
set -e
mv "$repos" "$repos.old"
svnadmin create --fs-type fsfs "$repos"
svnadmin dump -q "$repos.old" | svnadmin load -q "$repos"
echo "* $repos converted to fsfs"
ls "$repos.old/hooks" | grep -v [.]tmpl$ | while read fn; do
    echo "  copying $fn hook"
    cp "$repos.old/hooks/$fn" "$repos/hooks/"

Attachment: signature.asc
Description: Digital signature

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to