I have project with many branches and tags and with many directories. Is it possible write some scripts -开发者_JAVA技巧 so first script update only trunk, another only branch 1 etc, because now I waste many time to clock to update on more than 50 directories to check if there are new updates? So some kind of automation is need. Thanks.
Well you shouldtn have them all checked out.... You should only check out the branch youre working (in this sense trunk is also a branch). Tags should NEVER change... typically you use a Tag as a snapshot of particular revision like a release so there would be no reason to update it.
That said if you have th eentire repo checkout for some reason you can just update the branch you want. Assuming you have the entire repo checked out to /myrepo
:
cd /myrepo
svn up trunk
精彩评论