Re: How to migrate to Single DB per WC

2010-07-09 Thread Julian Foad
On Thu, 2010-07-08 at 13:24 -0400, Greg Stein wrote: > On Thu, Jul 8, 2010 at 12:33, Julian Foad wrote: > >... > > The auto-upgrade code, currently used for 1.7-dev to 1.7-dev, is invoked > > when opening a versioned directory: > >... > > So a possible way is: > > > > * bump_to_19() needs to migr

Re: How to migrate to Single DB per WC

2010-07-08 Thread Greg Stein
On Thu, Jul 8, 2010 at 12:33, Julian Foad wrote: >... > The auto-upgrade code, currently used for 1.7-dev to 1.7-dev, is invoked > when opening a versioned directory: >... > So a possible way is: > >  * bump_to_19() needs to migrate the contents of the SDB (and pristine > store) down into the WC-r

Re: How to migrate to Single DB per WC

2010-07-08 Thread Julian Foad
I'm looking at the upgrade process. I haven't looked at implementing the DB table rows migration described in ; instead I'm trying to see how that fits into the overall DB open-and-upgrade code flow. Here's the upgrade code for 1.6 to 1.7: svn_client_upgrade() // upgrade a whole WC to latest

Re: How to migrate to Single DB per WC

2010-07-07 Thread Greg Stein
On Wed, Jul 7, 2010 at 05:37, Julian Foad wrote: >... >> > "Merge into root's table" means we move the row into the root's table, >> > unless a row that's identical apart from its id is already present, in >> > which >> > case we use the existing row's id. >> >> What do you mean "id"? That column

Re: How to migrate to Single DB per WC

2010-07-07 Thread Julian Foad
Greg Stein wrote: > Julian Foad wrote: > > I've started looking at moving to a single DB per WC, and written some > > notes in 'notes/wc-ng/single-db-per-wc'. I haven't looked into the > > current state of the code yet, other than building it (success) and > > running it (50% of tests pass, which

Re: How to migrate to Single DB per WC

2010-07-06 Thread Greg Stein
On Tue, Jul 6, 2010 at 15:24, Julian Foad wrote: > I've started looking at moving to a single DB per WC, and written some > notes in 'notes/wc-ng/single-db-per-wc'.  I haven't looked into the > current state of the code yet, other than building it (success) and > running it (50% of tests pass, whi

How to migrate to Single DB per WC

2010-07-06 Thread Julian Foad
I've started looking at moving to a single DB per WC, and written some notes in 'notes/wc-ng/single-db-per-wc'. I haven't looked into the current state of the code yet, other than building it (success) and running it (50% of tests pass, which isn't bad, considering). Any comments on this "how to