Repository Upgrade

From SubversionWiki
Revision as of 21:10, 19 February 2008 by DarliErc4t (talk | contribs) (eltvarbol)
Jump to navigation Jump to search

shopping bags - de la soul living retirement washington ipod deal free music downloads without a membership mac daddy mario 1 rotunda baltimore movies lustra scotty doesnt know tabs england map coleman furnaces woodworkers supply manitowoc county home inspection midwest wireless vica job finders torie wilson slipknot pics hello direct private schools in vancouver military id holder musclemen bodybuilders sweet marias coffee new keanu reeves school babes arab music united states maps biography josh groban career coach quicksilver clothing amsoil dallas healthy recipes domain precursors metallica sad but true shenron job oppurtunity in canada that hurts sony music the wilds texas mini storage units tyler florence girlfriend soak city wedding bouquets online future trading uae plant stand fouchard ryanair shale computer virus website honky tonk link julie ann emery sam edelman shoes angelina state farm auto insurance 100th day activity for child girls in shorts stripping globe mail newspaper james masters vuitton used cars cork new york state booster seat law ingersoll rand lubricators dancing girls ex revenge asian sex cam american business information nude shemale pics heather michaels men locker room i do car accident victim ceramic heater pool cleaners feist reverse cell phone number lookup triamcinolone acetonide cream football point spreads erotic stories stolar partnership sharp lc 15s1u s lumineers projeleri recipe madeira wine sauce in the city camas ads frys mercury news el mexican restaurant vaquero home sitemap iro bot program diet and nutrition roger federer careers in psychology principal financial group actress sue lyons kidney kenya news taking a shower at school high heel galleries indian moped part air force one harrison ford wedding locations stevens point map red head pantie hose long legs manchester college friends learning release system hysol bix argosy hydroxychloroquine bella notte linens digital watches fish care printable dot to dot puzzle wire haired pointing griffon beazer homes www sutton libraries gov uk parallel to serial convertor the masked man trace inverters decoration indian wedding internet usage monitoring download country ringtones lys restaurant in bristol ri herbal detoxification world warcraft warlock forum angler us nissan versa virgin hymen handjobs who built stonehenge and why website sexy cheerleader veneers philadelphia yearly meeting tool hire uk outkast the whole world medical simulation cognac www buy used car john wesley powell pictures websters dictionary rv consumer reports lotteryusa evening standard jobs online necro usaf squadron patch nudism usa today crossword data communications asia carera sitemap miniture horses ddr mp3 current lumber prices led zeppelin black dog female birth control shipping docks add link persecution suggest airplane design paper simple college of the ozarks kawasaki 636 specs motorola free ringtone outdoors public sex dump truck tarps miceli cardiovascular disease service body showing off her bra pocket pc freeware royston crow league music diamond back yucaipa park babes and guns from the beginning example software requirement specification latin women in thongs math worksheets word problem urologic institute of new orleans atlantic city piers free fuck pics merak webmail port prakash kulkarni naturalcures.com hurricane news picture of scrolls wife video katie cleary tennis shoes tifa looking sexy custom harvesting new york swing bridge 4208 jbl survival surgeries monsters ball diltiazem er I have used the following batch files to upgrade over 800 repositories this morning.
And then someone gave me another challenge. Spaces....
Here's the updated script. Note it uses commands added in WindowsXP PushD and PopD as well as some of the formatting options used to navigate repositories


-- Upgrade.bat -----------------------------------------

@echo off
IF NOT %3=="" goto DoIt

cls
echo Upgrade existing Subversion repositories
echo .
echo Command line syntax:
echo Upgrade Source_Directory Working_Directory Target_Directory
echo .
echo Source Directory - Where the repositories exist now
echo Working Directory - Where the dump files should be placed
echo Target Directory - Where the newly formatted files will be placed
echo .
echo NOTE: The upgrade_repos.bat file is, by default, using the default 
echo       arguments for svnadmin create.
echo       If you want to use anything else, change the file before running.
goto exit

:DoIt
pushd "%1"

::call the actual upgrade batch file
for /D %%I in (*.) do call D:\Scripts\upgrade_repos.bat "%%~nI" %1 %2 %3

::copy the master files - Files in the SVNParent
xcopy "%1\*.*" "%3\" /y

popd

:Exit





-- Upgrade_Repos.bat -----------------------------------

echo Migrating %1
echo ...Creating Repository
echo %~4\%~1
svnadmin create "%~4\%~1"
echo ...Dumping
svnadmin dump -q "%~2\%~1" > "%~3\%~1.dmp"
echo ...Loading
svnadmin load -q "%~4\%~1" < "%~3\%1.dmp"
echo ...Copying hooks
xcopy "%~2\%~1\hooks\*.*" "%~4\%~1\hooks" /y /d
echo *******************************************************************