[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: issue-3390-dev branch question

From: Edmund Wong <ed_at_kdtc.net>
Date: Mon, 05 Oct 2009 17:42:17 +0800

Hi,

I forgot to include the 'converted' test script. Due to
my limited knowledge in shell scripts' equivalent commands
in Windows, I fixed the PWD environment setting.

@echo off
rem Batch file to test issue 3390.

set PWD=D:/other_projs/branches/issue-3390-dev
set REPOS=issue-3390-repos
set WC=issue-3390-wc

echo ### Removing old test data ...
rmdir /s %REPOS% %WC%

echo ### Creating repository ...
svnadmin create %REPOS%

echo ### Checkout out working copy ...
svn co file:///%PWD%/%REPOS% %WC%
cd %WC%

echo ### Creating some trunk stuff ...
svn mkdir --parents trunk/top/sub1 trunk/top/sub2
touch trunk/top/sub2/file
svn add trunk/top/sub2/file
svn ci -m "Add trunk stuff."

echo ### Adding a relative external on trunk/top/sub1, pointing to
../sub2 ...
svn pset svn:externals "../sub2 sub2-ext" trunk/top/sub1
svn up
svn ci -m "Add relative external."

echo ### Making a branch from trunk ...
svn up
svn cp trunk branch
svn ci -m "Add branch."

echo ### Switching trunk to the branch ...
svn switch file:///%PWD%/issue-3390-repos/branch trunk

echo ### Checking URL on trunk/top/sub1 (should point to branch) ...
svn info trunk/top/sub1 | grep URL

echo ### Checking URL on trunk/top/sub1/sub2-ext (should also point to
branch) ...
svn info trunk/top/sub1/sub2-ext | grep URL

cd ..
rem End of script

Edmund

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2403503
Received on 2009-10-05 11:51:20 CEST

This is an archived mail posted to the Subversion Dev mailing list.