Re: Upgrade to single-DB: problem locking an empty DB

2010-08-10 Thread Greg Stein
On Tue, Aug 10, 2010 at 11:31, Hyrum K. Wright wrote: > On Tue, Aug 10, 2010 at 10:26 AM, Julian Foad > wrote: >> On Tue, 2010-08-10 at 15:31 +0100, Julian Foad wrote: >>> Upgrading a WC to single-DB: >>> >>> upgrade_to_wcng() calls >>> >>>   svn_wc__db_upgrade_begin() to create a new DB, and th

Re: Upgrade to single-DB: problem locking an empty DB

2010-08-10 Thread Hyrum K. Wright
On Tue, Aug 10, 2010 at 10:26 AM, Julian Foad wrote: > On Tue, 2010-08-10 at 15:31 +0100, Julian Foad wrote: >> Upgrading a WC to single-DB: >> >> upgrade_to_wcng() calls >> >>   svn_wc__db_upgrade_begin() to create a new DB, and then >>   svn_wc__db_wclock_obtain() and then >>   svn_wc__write_upg

Re: Upgrade to single-DB: problem locking an empty DB

2010-08-10 Thread Julian Foad
On Tue, 2010-08-10 at 16:26 +0100, Julian Foad wrote: > On Tue, 2010-08-10 at 15:31 +0100, Julian Foad wrote: > > Upgrading a WC to single-DB: > > > > upgrade_to_wcng() calls > > > > svn_wc__db_upgrade_begin() to create a new DB, and then > > svn_wc__db_wclock_obtain() and then > > svn_wc__

Re: Upgrade to single-DB: problem locking an empty DB

2010-08-10 Thread Julian Foad
On Tue, 2010-08-10 at 15:31 +0100, Julian Foad wrote: > Upgrading a WC to single-DB: > > upgrade_to_wcng() calls > > svn_wc__db_upgrade_begin() to create a new DB, and then > svn_wc__db_wclock_obtain() and then > svn_wc__write_upgraded_entries() > > The _wclock_obtain() fails because it ch

Upgrade to single-DB: problem locking an empty DB

2010-08-10 Thread Julian Foad
Upgrading a WC to single-DB: upgrade_to_wcng() calls svn_wc__db_upgrade_begin() to create a new DB, and then svn_wc__db_wclock_obtain() and then svn_wc__write_upgraded_entries() The _wclock_obtain() fails because it checks that the node with relpath "" exists. Normally in libsvn_wc a new