Malcolm Rowe wrote:
> On Tue, Sep 19, 2006 at 02:24:49PM +0530, Kamesh Jayachandran wrote:
>
>>> I assume that SQLite returns an identifiable error if the database
>>> doesn't exist when you try to open it, so you could just trap that error
>>> and create it then:
>>>
>>>
>> Unfortunately sqlite3_open never fails for non-existent db rather
>> creates the empty db.
>>
>>
>
> Hm. That's not ideal - get_index should be a read-only operation, but
> you can't prevent it from creating the database.
may be possible to check for the existence of file 'mergeinfo.db' as a
part of fs open hook like 'svn_fs_fs__open'.
What do you think?
With regards
Kamesh Jayachandran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 19 14:48:09 2006