Published 2003-04-16 21:56:00

Well, not much in the way of news on the job front, meanwhile, I have a couple of projects to work on. One of these is driving the development of HTML_Template_Flexy and HTML_FlexyFramework, which need their documents updating. As part of my backup and revison control strategy for these projects, I was looking at subversion - the 'NEW' cvs, one of it's key features is to be able to browse the repository via webdav. The manual says however that it doesnt work that well with davfs (the kernel module that allows you to mount a webdav server and pretend to be a local file system). So after a bit of hacking at the source for it - I just modified a few lines (disabling file locking) and hey presto totally transparent read/write access to a revision controlled filesystem
The patch below is related to the latest revision of davfs2-0.2.1
-- davfs2-0.2.1/src/webdav.c   2002-10-14 08:34:02.000000000 +0800
+++ webdav.c    2003-04-16 17:41:17.000000000 +0800
@@ -604,7 +604,7 @@
 int dav_lock(const char *name) {
     char *uri = resolve_path(path, name, 0);
     struct ne_lock *lock;
-
+    return NE_OK;
     /* Let's lock the resource */
     lock = ne_lock_create();
     lock->depth = NE_DEPTH_ZERO;
@@ -652,9 +652,9 @@

     /* Lst's get the lock */
     server.path = (char *)uri; /* Change path */
-    lock = ne_lockstore_findbyuri(lock_store, &server);
+    /* lock = ne_lockstore_findbyuri(lock_store, &server); */
     NE_FREE(uri);
-
+    /*
     if (!lock) {
        DBG0("Shuld be locked, before open\n");
        return dav_set_errno();
@@ -667,7 +667,7 @@

     ne_lockstore_remove(lock_store, lock);
     ne_lock_destroy(lock);
-
+    */
     return ret;
 }
Mentioned By:
google.com : april (94 referals)
google.com : php subversion (52 referals)
google.com : davfs2 subversion (31 referals)
google.com : davfs (28 referals)
google.com : davfs subversion (25 referals)
www.planet-php.net : Planet PHP (22 referals)
google.com : php subversion viewer (22 referals)
google.com : subversion davfs (19 referals)
google.com : davfs2 svn (18 referals)
google.com : davfs svn (16 referals)
google.com : php subversion module (16 referals)
google.com : december (10 referals)
google.com : subversion php (8 referals)
google.com : subversion webdav (8 referals)
google.com : subversion davfs2 (7 referals)
google.com : php subversion webdav (6 referals)
google.com : webdav php subversion (5 referals)
google.com : davfs2 manual (4 referals)
google.com : subversion locking (4 referals)
google.com : Subversion webdav php (4 referals)

Add Your Comment

Follow us on