I'm trying to build a project deployment tool, and part of it needs to export a repo from a working copy within PHP.
My directory structure is like
/
- dir1
- dir2
- versioned
and I want to export the 'versioned' directory. So I have
svn_export('/dir1/dir2/versioned', 'source');
but for some reason, I get this error:
svn_export(): svn error(s) occured 155007 (Path is not a working copy directory) '/dir1/dir2' is not a working copy 2 (No such file or directory) Can't open file '/dir1/dir2/.svn/entries': No such file or directory
So for some reason this is speaking about 'dir2', not 'versioned'. Is there a reason for this? Is there something about this implementation I'm not getting?
Thanks!
Where is the root of the repository? You need to make it a relative path -- as your code stands, it looks in the root directory for /dir1 (root of the server, not the html root)
不知何故我忽略了3次我正在使用的存储库
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.