> This ML is dedicated to Trac support, not Subversion...
Thank you. Yeah, I realized that after I sent it last night. We're migrating
away from a hosting provider (cvsdude) to in house, and I have another Trac
issue importing bugzilla (see other email). My mind was twisted from all the
issues between Trac, SVN, Bugzilla, etc and it sorta blurred. I did find the
SVN list and re-post there. Ironically YOU were the only one to provide a
solution. LOL. The SVN list started talking about "svnadmin is having
trouble converting non-UTF-8 data in the dumpfile it seems?" WRONG. :)
> You are probably trying to load a SVN dumpfile into a non empty
repository.
>
> Try (w/ backing up if needed..):
>
> rm -rf /var/local/svn/svn.mycompany.com
> svnadmin create /var/local/svn/svn.mycompany.com
> svnadmin load /var/local/svn/svn.mycompany.com < web.svn
Yes! That was exactly it. Thank you Emmanuel.
Now why didn't the documentation simply say that and have an example like
that. *sigh*
For what it's worth, here is the little script I wrote to automate the
process so when we "push the button", it goes smooth. Maybe it will help
someone else (read and modify as needed).
-----------------------8< ------------------------
#!/bin/sh
#
# This script will take a "subversion dump" and import it to our local
Subversion server
#
# Written by Daevid Vincent [EMAIL PROTECTED] 05.15.08
#
if [ `whoami` != "root" ]
then
echo "You need to be root!";
exit 1
fi
SVNREPOS="/var/local/svn/svn.mycompany.com"
rm -rf $SVNREPOS
svnadmin create $SVNREPOS
svnadmin load $SVNREPOS < /SAMBA/cvsdude/web.svn
cp /var/local/svn/passwd $SVNREPOS/conf/
cp /var/local/svn/pre-commit $SVNREPOS/hooks/
cp $SVNREPOS/hooks/post-commit.tmpl $SVNREPOS/hooks/post-commit
chmod a+x $SVNREPOS/hooks/post-commit
chown -R www-data:users $SVNREPOS
chmod -R a+w $SVNREPOS/db
# need to do this or Trac doesn't know about the new SVN
trac-admin /var/local/trac/trac.mycompany.com resync
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---