You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by William Ferguson <wi...@hubbub.com.au> on 2005/05/19 04:51:10 UTC

Unknown command check-path

Hi,

I'm having problems executing svn_ra_plugin_t->check_path.
It works fine unless I execute svn_ra_plugin_t->get_commit_editor first, in
which case ->check_path will fail with:
Unknow command 'check-path'

Is it invalid to call ->check_path once a commit_editor has been retrieved?
If so, what approach should I take to validate that the path to a resource
is vali, other than waiting to see if the while transaction fails?
Ie I would like to initially validate as the change to each resource is
submitted

If its not invalid, what am I doing wrong?

...
ra_lib->get_commit_editor(sessionBaton, &commitEditor, &editBaton, "This is
the commit message", __commit_callback_func, commitBaton, sessionPool);
ra_lib->check_path(sessionBaton, resourcePath, requestedRevision, &nodeKind,
sessionPool);
...

William

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Unknown command check-path

Posted by Greg Hudson <gh...@MIT.EDU>.
On Thu, 2005-05-19 at 14:51 +1000, William Ferguson wrote:
> Is it invalid to call ->check_path once a commit_editor has been retrieved?

Yes; from the svn_ra_get_commit_editor doc string:

 * The caller may not perform any RA operations using @a session before
 * finishing the edit.

> If so, what approach should I take to validate that the path to a resource
> is vali, other than waiting to see if the while transaction fails?

You could open a second session, or you could just wait to see if the
whole transaction fails.  If you send file data last (as the svn commit
editor does), the transaction should fail before you spend a long time
on it.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org