set repos=file:///c:/xx/repo if exist layout rd /s /q repo if exist repo rd /s /q repo if exist wc1 rd /s /q wc1 if exist wc2 rd /s /q wc2 svnadmin create repo md layout md layout\trunk md layout\branches echo line1 > layout\trunk\test.txt svn import layout %repos% -m "created layout" rd /s /q layout svn co %repos%/trunk wc1 svn co %repos%/trunk wc2 echo line from wc1 >> wc1\test.txt echo line from wc2 >> wc2\test.txt svn ci wc1 -m "added line in wc1" rem WC is modified, now create the branch svn cp wc2 %repos%/branches/test -m "create branch from wc2 with local mods" svn switch %repos%/branches/test wc2 svn diff -c3 wc2