php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59244 svn_export and local repo
Submitted: 2010-05-31 08:42 UTC Modified: 2010-06-05 00:03 UTC
From: der dot ronny at gmx dot net Assigned:
Status: Closed Package: svn (PECL)
PHP Version: 5.3.2 OS: Suse Enterprise 11
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: der dot ronny at gmx dot net
New email:
PHP Version: OS:

 

 [2010-05-31 08:42 UTC] der dot ronny at gmx dot net
Description:
------------
At the bash "svn export" works fine with local repo. The same command "svn_export" from pecl-php-package says "Path is not a working copy directory". All other commands like "svn log" are working without any problems the same way as at the bash.

Reproduce code:
---------------
Bash: svn log file:///srv/svn/repos/tess - WORKS!
PHP print_r(svn_log('file:///srv/svn/repos/tess')); - WORKS!

Bash: svn export file:///srv/svn/repos/tess /srv/www/htdocs/tessnnew - WORKS!
PHP: svn_export('file:///srv/svn/repos/tess','/srv/www/htdocs/tessnew'); - DID NOT WORK!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-31 19:59 UTC] alan at akbkhome dot com
have you tried
svn_export('file:///srv/svn/repos/tess','file:///srv/www/htdo
cs/tessnew');
 [2010-06-02 03:37 UTC] der dot ronny at gmx dot net
Thx for your quick reply! Your hint didn't work... svn_export didn't recognaize the correct path I inserted in php.

Warning: svn_export(): svn error(s) occured
155007 (Path is not a working copy directory) 'file:///srv/svn/repos' is not a working copy
2 (No such file or directory) Can't open file 'file:///srv/svn/repos/.svn/entries': No such file or directory
 in /srv/www/htdocs/svnrepo.php on line 33
 [2010-06-02 04:44 UTC] alan at akbkhome dot com
Can you add a example on php.net - notice the 'false' at the 
end.

svn_export('/srv/svn/repos/tess','/srv/www/htdocs/tessnew', 
false);

Regards
Alan
 [2010-06-02 08:11 UTC] der dot ronny at gmx dot net
Both versions don't work :-(

svn_export('/srv/svn/repos/tess','/srv/www/htdocs/tessnew', false);

svn_export('/file:///srv/svn/repos/tess','file:///srv/www/htdocs/tessnew', false);

How can a add an example on php.net?

Cheers Ron
 [2010-06-02 08:23 UTC] alan at akbkhome dot com
Which version are you using - I tested it here, and it worked 
perfectly.
 [2010-06-02 08:31 UTC] der dot ronny at gmx dot net
I use the SVN 1.5.2 rpm from SUSE and your stable plugin 1.0.0.0. I don't understand why svn_export didn't work and all over commands work, e.g. svn_checkout('file:///srv/svn/repos/tess','/srv/www/htdocs/tessnew') ...

Cheers Ron
 [2010-06-02 18:50 UTC] alan at akbkhome dot com
This worked on a build of 1.0.0

#php -r 'dl("svn.so"); 
var_dump(svn_export("file:///backup/subversion/svn_wiki/", 
"/tmp/wiki_test", false));'
bool(true)
.. and files are in /tmp/wiki_test

Previous versions may not have worked with the file://

This is a sample of it now working.

#php -r 'dl("svn.so"); 
var_dump(svn_export("/backup/subversion/svn_wiki/", 
"/tmp/wiki_test", false));'
Warning: svn_export(): svn error(s) occured
155007 (Path is not a working copy directory) 
'/backup/subversion/svn_wiki' is not a working copy
 in Command line code on line 1
bool(false)



#php -r 'dl("svn.so"); phpinfo();' | grep svn -i
SVN revision => $Revision: 290435 $
svn
svn support => enabled
svn client version => 1.6.6
svn extension version => 0.6.0-dev

Note that that is actually 1.0.0

you may want to update your client version to 1.6 - Not 
sure, but that might fix your issue.
 [2010-06-04 07:07 UTC] der dot ronny at gmx dot net
Thx... with SVN Version: 1.6.11 it works!!!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC