Friday, July 6, 2012

How to set revision number to svn external

Sometimes when we branched out from trunk we have to remove svn externals. Other possible solution is set branched revision number to external. so it will always referring that particular revision even externals got updated.

Command to get svn externals
svn propget svn:externals -R

Then you will see out put like this
modules/application - store-web  https://svn.test.org/repos/test/store-web



so first you have to go to that folder
cd modules/application

then you have to set the revision number as follows. Let say we branched from revision 11111. then we have to set to that version

svn propset svn:externals 'store-web -r11111 https://svn.test.org/repos/test/store-web' . property 'svn:externals' set on '.'

Then commit to svn branch.