Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

svn_import(3) [php man page]

SVN_IMPORT(3)								 1							     SVN_IMPORT(3)

svn_import - Imports an unversioned path into a repository

SYNOPSIS
bool svn_import (string $path, string $url, bool $nonrecursive) DESCRIPTION
Commits unversioned $path into repository at $url. If $path is a directory and $nonrecursive is FALSE, the directory will be imported recursively. PARAMETERS
o $path - Path of file or directory to import. Note Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath(3) or dirname(__FILE__). o $url - Repository URL to import into. o $nonrecursive - Whether or not to refrain from recursively processing directories. RETURN VALUES
Returns TRUE on success or FALSE on failure. NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. EXAMPLES
Example #1 Basic example This example demonstrates a basic use-case of this function. To import a directory named new-files into the repository at http://www.example.com/svnroot/incoming/abc, use: <?php svn_import(realpath('new-files'), 'http://www.example.com/svnroot/incoming/abc', false); ?> SEE ALSO
svn_add(3), SVN documentation for svn import. PHP Documentation Group SVN_IMPORT(3)

Check Out this Related Man Page

SVN_CHECKOUT(3) 							 1							   SVN_CHECKOUT(3)

svn_checkout - Checks out a working copy from the repository

SYNOPSIS
bool svn_checkout (string $repos, string $targetpath, [int $revision], [int $flags]) DESCRIPTION
Checks out a working copy from the repository at $repos to $targetpath at revision $revision. PARAMETERS
o $repos - String URL path to directory in repository to check out. o $targetpath - String local path to directory to check out in to Note Relative paths will be resolved as if the current working directory was the one that contains the PHP binary. To use the calling script's working directory, use realpath(3) or dirname(__FILE__). o $revision - Integer revision number of repository to check out. Default is HEAD, the most recent revision. o $flags - Any combination of SVN_NON_RECURSIVE and SVN_IGNORE_EXTERNALS. RETURN VALUES
Returns TRUE on success or FALSE on failure. NOTES
Warning This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. EXAMPLES
Example #1 Basic example This example demonstrates how to check out a directory from a repository to a directory named calc: <?php svn_checkout('http://www.example.com/svnroot/calc/trunk', dirname(__FILE__) . '/calc'); ?> The dirname(__FILE__) call is necessary in order to convert the calc relative path into an absolute one. If calc exists, you can also use realpath(3) to retrieve an absolute path. SEE ALSO
svn_add(3), svn_commit(3), svn_status(3), svn_update(3), SVN documentation on svn checkout. PHP Documentation Group SVN_CHECKOUT(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

importing database from unix to winnt

i am a unix-super-beginner (swaddled and weaned on windows) and am trying to import a database from a unix directory into winnt. can someone help me or am i a hopeless case? (4 Replies)
Discussion started by: sadiecutie
4 Replies

2. UNIX for Dummies Questions & Answers

Change to a new working directory...

I need to CD to a particular directory to check log files and interface files. Instead of typing the path manually, is there a way of getting a script to change my working directory to the one I need? Currently I have a script that CD's to the directories I need but a soon as the script exits,... (5 Replies)
Discussion started by: jagannatha
5 Replies

3. Shell Programming and Scripting

directory names in a flat file

Hi, Consider a flat file abc.conf contains some rows. Each row contains the directory name with full path. now I want to find a particular file in every directory which are mentioned in the abc.conf file. How it can be done through unix shell script. (2 Replies)
Discussion started by: surjyap
2 Replies

4. Programming

system command

Hi In my code am openeing a mozilla in Solaris with some url using sytem(url) this is working fine for most of the urls but for url of type- www.abc.com?action=p&a=23 it is passing only www.abc.com?action=p to the browser & thus the url is not opening properly. Why is system command... (7 Replies)
Discussion started by: nimishm
7 Replies

5. Shell Programming and Scripting

find subdomain in url

I want to find out subdomains in the url using shell script. e.g narendra.eukhost.com abc.domainname.co.uk I want to extract narendra & abc from the above urls. Please any one can suggest idea or script ? (2 Replies)
Discussion started by: nrbhole
2 Replies

6. Shell Programming and Scripting

for

Hi, How can I read all the files recursively from $path modifying this code? $path="/" for file in *.txt do <read_all_the_txt_files> done (6 Replies)
Discussion started by: DNAx86
6 Replies

7. UNIX for Dummies Questions & Answers

copying a pattern of files in one directory into other with new pattern names...

Hi, I have to copy a set of files abc* in /path/ to /path1/ as abc*_bkp. The list of files appear as follows in /path/: abc1 xyszd abc2 re2345 abcx .. . abcxyz I have to copy them (abc* files only) into /path1/ as: abc1_bkp abc2_bkp abcx_bkp .. . (6 Replies)
Discussion started by: new_learner
6 Replies

8. Shell Programming and Scripting

How to get file path using sed

Hi , Hi I want to know how can i extract file path using sed? Eg: C:/folder1/abc/file.txt Now , i want C:/folder1/abc/ only, So that i can move to that directory containing that file . So how can i do it using sed? Thanks in Advance Sarbjit (2 Replies)
Discussion started by: sarbjit
2 Replies

9. Linux

How to create zip file without path?

Hello, I have generated a PHP script that creates files needed for EPUB file. I have a temp directory where these files are created into and then needs to be zipped. The directory structure is: mimetype content.opf index.html stylesheet.css toc.ncx META-INF META-INF/container.xml ... (4 Replies)
Discussion started by: spaze
4 Replies

10. Infrastructure Monitoring

Perl Error Handling Problem

I can get this working, but if something is down I get an error and the script does not move on. I can not get the "else" function working. What might I be doing wrong? use SNMP::Simple my %ios = (); $list="list.list"; open(DAT, $list) || die("Can't Open List"); @raw_data=<DAT>;... (4 Replies)
Discussion started by: mrlayance
4 Replies

11. UNIX for Dummies Questions & Answers

Need help in moving files recursively

Hi, I have d1,d2,d3 directories / /home/abc/d1 /home/abc/d2 /home/abc/d3 d1,d2 and d3 also have subdirctories. d1-->d11-->d12 d2-->d22-->d23 d3-->d33-->d34 All these directories have files like date_filename.txt so I want to find the files recusively for a particular date from... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies

12. Shell Programming and Scripting

count files in dir except one

Hi I need to count files in current directory, except file abc.txt, if it exists I have such script: FILES_COUNT=$(find * -name "*" | wc -l) but it counts all files. I need to exclude abc.txt (5 Replies)
Discussion started by: optik77
5 Replies

13. Red Hat

URL Redirection

Hi Please help, how to setup I have a URL address http://10.XX.XX.XXX:1234/abc/login.jsp - running in linux How to redirect this to http://www.abc.com.ph This way the IP address and port will not be visible to the user many thanks (2 Replies)
Discussion started by: kaibiganmi
2 Replies

14. Red Hat

Deleting using "find -mtime" not working

This command used to work in my old Linux servers to delete old files (older than 2 days, in this case) but it suddenly not working at all-- find /path/to/dir/* -mtime 2 -exec rm {} \; Anything I am missing? Would appreciate any tips. Thanks! (6 Replies)
Discussion started by: pkiula
6 Replies

15. Shell Programming and Scripting

Script to compare files recursively using sdiff

Hi All, I have been surfing to get some idea on how to compare same files from two different paths. one path will have oldfiles directory and another path will have newfiles directory. Each main directories will have sub-directories in them and each sub-directories inturn will have... (3 Replies)
Discussion started by: Optimus81
3 Replies