I am working on a perl script which has to commit a new file every 10 minutes from my hard drive.
I was wondering if it is possible to perform a commit without having the working copy of the project whose commit I want to perform? Is it necessary to have a working copy of that project checked out on my hard drive before performing the commit?
If this directory contains many other files with much content, a solution would be to do a shallow checkout.
svn checkout <url> <target> --depth empty
cd <target>
svn up <yourfile>
Edit your file...
svn commit <yourfile>
If you use an older version of subversion, you will probably find what you look for in this post.
If it is a new file you can use the svn import
command to directly import it into a particular folder in your repository
http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.import.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With