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

Re: Merge bug? Files become directories during merge

From: Max Bowsher <maxb_at_ukf.net>
Date: 2004-08-15 14:53:35 CEST

Thilo-Alexander Ginkel wrote:
> Max Bowsher wrote:
>
>> I just wrote one :-)
>
> Great!
>
>> svn co http://svn.collab.net/repos/svn/trunk/tools/bdb/
>
>> ./erase-all-text-data.py <bdb-svn-repository>
>
> However, when I try to run the tool on a copy of my repository, I get
> the following error:
>
> -- 8< --
> # ~/svn-bdb/bdb/erase-all-text-data.py /var/lib/svn/TestRepos/
> WARNING!: This program will destroy all text data in the subversion
> repository '/var/lib/svn/TestRepos/'
> Do not proceed unless this is a *COPY* of your real repository
> If this is really what you want to do, type 'YESERASE' and press Return
> Confirmation string> YESERASE
> Opening database environment...
> Traceback (most recent call last):
> File "/root/svn-bdb/bdb/erase-all-text-data.py", line 73, in ?
> main()
> File "/root/svn-bdb/bdb/erase-all-text-data.py", line 38, in main
> ctx.open(DBEnv(), dbhome)
> File "/root/svn-bdb/bdb/svnfs.py", line 27, in open
> self.env.open(dbhome, DB_JOINENV)
> bsddb3._db.DBInvalidArgError: (22, 'Invalid argument -- incorrect
arguments
> for name-value pair: set_flags') -- 8< --
>
> I assume this is a libdb{3|4.2} compatibility problem. The local svn
> binary uses libdb-4.2.so whereas python-bsddb3 is apparently linked
> against libdb3.so.3.
>
> Any ideas?

cd svn-trunk/tools/bdb/
wget
http://heanet.dl.sourceforge.net/sourceforge/pybsddb/bsddb3-4.2.4.tar.gz
tar zxvf bsddb3-4.2.4.tar.gz
cd bsddb3-4.2.4
python setup.py build
cd ..
ln -s bsddb3-4.2.4/build/lib.*/bsddb3 bsddb3
./erase-all-text-data.py .....

If your bdb-4.2 is installed somewhere unusual, you may need to pass
arguments to setup.py.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 15 14:53:53 2004

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.