Hi,
Thank you.
The else is added.
-
Sung
-----Original Message-----
From: Marc Haisenko [mailto:haisenko@webport.de]
Sent: Tuesday, December 02, 2003 4:15 AM
To: Sung Kim
Subject: Re: Why we need to set SVNPatrh or SVNParentPath?
On Tuesday 02 December 2003 13:36, Sung Kim wrote:
+/*
+ * Find out the Svn path, if SVNPath and SVNParentPath are not given.
+ * It uses r->canonical_filename and root_path
+ *
+ * FIXME: How can I get the Root Htdocs perserver? Then is is just
RootHtdocs+root_path.
+ * This is a kind of hack rules:
+ * 1. If root_path == '/' use only path part of r->canonical_filename;
+ * 2. If root_path != '/' (like '/aa'), Scn repos is
r->canonical_filename;
+ */
+static const char* dav_guess_fs_path(request_rec *r, const char* root_path)
{
+ char *fs_path;
+
+ /* Applied rule 1 */
+ if (strcmp(root_path, "/")==0)
+ {
+ fs_path = ap_make_dirstr_parent(r->pool, r->canonical_filename);
+ }
+
+ /* Applied rule 2 */
+ fs_path = apr_pstrdup(r->pool, r->canonical_filename);
+
+ return svn_path_canonicalize(fs_path, r->pool);
+}
+
Shouldn't there be an else between rule 1 and 2 ?
C'ya,
Marc
--
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 2 14:24:53 2003