Artifact
35db9dfcd2382d98aad3015895e56a4d6202bcb5:
Wiki page
[home] by
stephan
2013-07-24 02:38:40.
D 2013-07-24T02:38:40.432
L home
P 4ff2acc673d73eb8e038442670e47f77e1481b73
U stephan
W 1213
<h1>Fossil v2 Scratchpad</h1>
Experimentation for a potential v2 API for the [http://fossil-scm.org|Fossil SCM].
This code does nothing useful - it is intended for those interested in following or participating in the design of Fossil v2. All Fossil users are welcomed contributors - email me your preferred user name to get access: sgbeal@googlemail.com.
<nowiki><pre>
[stephan@host:~/cvs/fossil/f2]$ ./test -v -r ../whio.fsl
VERBOSE: test.c:50:test0(): Initialized fsl
VERBOSE: test.c:54:test0(): Trying to open db file [../whio.fsl]...
VERBOSE: test.c:57:test0(): Opened db file [../whio.fsl]
MARKER: test.c:102:main(): Done! rc=0 (FSL_RC_OK)
VERBOSE: test.c:68:my_atexit(): Finalized fsl
[stephan@host:~/cvs/fossil/f2]$ ./test -v -r ../nope
VERBOSE: test.c:50:test0(): Initialized fsl
VERBOSE: test.c:54:test0(): Trying to open db file [../nope]...
MARKER: test.c:102:main(): Done! rc=14 (FSL_RC_DB)
MARKER: test.c:108:main(): Fossil says: error code #14 (FSL_RC_DB): Opening db file
[../nope] failed with sqlite code #14: unable to open database file
VERBOSE: test.c:68:my_atexit(): Finalized fsl
</pre></nowiki>
(It's just a coincidence that <tt>FSL_RC_DB==SQLITE_CANTOPEN</tt>.)
Z cdb32a23dec72e729a5d7643482814f2