SVN scripts to automate tasks
I am really new to svn. I need something(Scripts/app), which will compare my local copy with repository, copy the modified files into a new folder and the开发者_高级运维n update the local copy.
I dont know actually, where to start. Please help.
Regards Bibhu
This doesn't really sound like the normal SVN usage. You should update (SVN update) from the source code database and let SVN merge the new changes with your local files (which I assume have some new code). TortoiseSVN can help you work with SVN.
As far as I know, there is no standard way to accomplish this.
But you can run the command svn status myproject
where myproject
is the folder of your working copy. It will returns information about the files you have modified. This information includes the paths of those modified files so you can parse the paths using a script (or an application) and copy the them to another location.
After that you can delete myproject
and do a re-checkout using svn checkout repositorypath myproject
where repositorypath
is the repository path of your project.
精彩评论