Add a migration routine to EDataCalFactory.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 8 Jun 2010 12:58:10 +0000 (08:58 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 27 Jul 2010 13:02:30 +0000 (09:02 -0400)
commitb44a797f95532c4da253b50b7cfc79e5c3b455ec
treeb10c8c2e5549df48fd0ad3458b240c99bd98bf26
parent2f00a805a78bb80729c5f7c801e31facc9123611
Add a migration routine to EDataCalFactory.

Migration runs just before the main loop starts.
It's just a sequence of local directory renames.

~/.evolution/cache/calendar  -->  $XDG_CACHE_HOME/evolution/calendar
~/.evolution/cache/memos     -->  $XDG_CACHE_HOME/evolution/memos
~/.evolution/cache/tasks     -->  $XDG_CACHE_HOME/evolution/tasks
~/.evolution/calendar/local  -->  $XDG_DATA_HOME/evolution/calendar
~/.evolution/memos/local     -->  $XDG_DATA_HOME/evolution/memos
~/.evolution/tasks/local     -->  $XDG_DATA_HOME/evolution/tasks

We also migrate Evolution-Exchange account storage:

~/.evolution/exchange        --> $XDG_DATA_HOME/evolution/exchange

(After first cleaning up Exchange attachment cache directories.)
calendar/libedata-cal/Makefile.am
calendar/libedata-cal/e-data-cal-factory.c
calendar/libedata-cal/e-data-cal-migrate.c [new file with mode: 0644]