Checkout
rhuijben
committed
on 19 Feb 15
Make it easier to run the sql static verifications on a working copy
by creating a private api and adding a small helper tool using this
api… Show more
Make it easier to run the sql static verifications on a working copy

by creating a private api and adding a small helper tool using this

api.

If you need a typical example you could use

[[

$ svn-wc-db-tester svn-test-work/libsvn_wc/db-test/test_getting_info

J/J-e (depth=2) DBV0061: Moved to without target

K/K-b (depth=1) DBV0061: Moved to without target

svn-wc-db-tester: E155035: Found one or more potential wc.db inconsistencies

]]

* build.conf

 (svn-wc-db-tester): New tool.

 (__MORE__): Add new tools.

 (x509-parser): Add description.

* subversion/libsvn_wc/wc-checks.sql

 (STMT_STATIC_VERIFY): Extend. Separate id from message to support api.

* subversion/libsvn_wc/wc_db.c

 (svn_wc__db_verify_db_full_internal,

  svn_wc__db_verify_db_full): New functions.

* subversion/libsvn_wc/wc_db.h

 (svn_wc__db_verify_cb_t): New typedef.

 (svn_wc__db_verify_db_full): New function.

* subversion/libsvn_wc/wc_db_private.h

 (svn_wc__db_verify_db_full_internal): New function.

* subversion/libsvn_wc/wc_db_wcroot.c

 (verify_sqlite): Rename to...

 (verify_db_cb): ... this. Implement svn_wc__db_verify_cb_t.

 (close_wcroot): Update caller.

* tools/dev/wc-ng/svn-wc-db-tester.c

 New file, based on the svnraisetreeconflict code.

Show less