phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-users] phpgroupware filemanager/vfs and subversion (partia


From: Benoit Hamet
Subject: [Phpgroupware-users] phpgroupware filemanager/vfs and subversion (partial support)
Date: Sun, 20 Feb 2005 13:25:21 +0100
User-agent: Debian Thunderbird 1.0 (X11/20050116)

Heya all,

I remember one of you asking on IRC for subversion support in phpgorupware.

In fact with a minor modification of the new DAV layer (that you can get
 here :
https://savannah.gnu.org/patch/download.php?item_id=3525&item_file_id=3886
just untar it under the phpgwapi/inc directory of your .16 phpgroupware)

then apply the attached patch.

When this modifiations are done, you need to configure the mod_svn under
apache (could be tricky under Debian, if you have problem ask me).
I suppose that you are able to mkdir a home directory using svn mkdir
http://yourserver.domain.phpgw/svn_you_want/home (or by co and commit).
Important note : your subversion server should be in autoversion mode !!


Then you need to modify your configuration under phpgroupware/setup :

Adjust the repository for your files :
http://yourserver.domain.phpgw/svn_path_to_dir_parent_of_home/

Choose webDAV as the FS and filesystem for storing files.

You should be able to use the filemanager with subversion :).

Of course, As we use a "standard" DAV client, you won't get the best of
subversion. But thanks to autoversionning, you will get some advantages
over DAV.

Note that the actual subversion server is a partial webDAV 1 system ...
so It doesn't support LOCK/UNLOCK features (so don't apply the patch
with LOCK capacity to filemanager !!!).
It seems tha subversion 2 will be able to partially handle it. (Or you
can use apache 2.1 with the mod_dav_lock If I understand the svn-book).

Fill free to ask questions on the list about this, I will do my best to
answer :).

Future : I can't give any "warranty" about a better svn support in the
.18 release ( At least the same as the one in a patched .16 version).
All help (test, feedback, patches, ...) are welcomed.

Cheers,

Caeies, happy to get subversion working :).

--- class.http_dav_client.inc.php       2004-11-18 15:16:58.000000000 +0100
+++ phpgwapi/inc/class.http_dav_client.inc.php  2005-02-20 12:44:30.000000000 
+0100
@@ -525,7 +525,7 @@
                                }

                                $newitem['name'] = $item['name'];
-                               if ($item['getcontenttype'] == 
'httpd/unix-directory')
+                               if ($item['getcontenttype'] == 
'httpd/unix-directory' || is_array($item['resourcetype']['collection']) )
                                {
                                        $newitem['is_dir'] = 1;
                                        $newitem['mime_type']='Directory';
--- class.vfs_dav.inc.php       2004-11-18 15:16:19.000000000 +0100
+++ phpgwapi/inc/class.vfs_dav.inc.php  2005-02-20 11:44:55.000000000 +0100
@@ -134,7 +134,7 @@
                //TODO:  Get rid of this
                //A quick, temporary debug output function
                function debug($info,$debug=false) {
-                       if ($debug && DEBUG)
+                       if ($debug || DEBUG)
                        {
                                echo '<b> vfs_dav debug:<em> ';
                                if (is_array($info))
@@ -1882,7 +1882,7 @@
                                //Return False if we get a 401 or True if it's 
a 404
                                return $ret;
                        }
-//                     _debug_array($prop);
+if(DEBUG)                      _debug_array($prop);
                        $proptmp = array();

                        foreach($prop as $key => $arr)

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]