Related
subversion and davfs
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;
} Add a comment (requires javascript!)
Follow us
-
- Migrating off Netsuite - The hidden cost of Clouds..
- Javascript Templating, AngularJS and Roo.XTemplate
- Roo.XComponent introduction
- Roo J Solutions Limited is recruiting
- Free your data... seed webkit browser mirror button
- Deleting the View and Controller..
- What was I doing last night... Seed querying xscreensaver
- Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.
Blog Latest
-
Twitter - @Roojs

Comments