Usage:
Freeze externals recursively
svnhelper --path=httpFolderUrl

Freeze externals at root folder and immediate children
svnhelper --depth=immediates --path=httpFolderUrl

note:
the advantage of specifying a search depth is speed. If you know there
are only externals on the trunk/root folder then you can use --depth=empty.
This will significantly increase the speed.

--depth options:
empty= Include only the immediate target, no file or directory children.
files= Include the immediate target of the operation and any of its immediate file children.
immediates= Include the immediate target of the operation and any of its immediate file or directory children. The directory children will themselves be empty.
infinity= Include the immediate target, its file and directory children, its children's children, and so on to full recursion.

Example batch file below, see download section for a complete setup:
use the test=true to determine speed and cache credentials.
---------------------
@echo off
SetLocal EnableDelayedExpansion
REM --------------------------------------
REM Example:
REM svn\svnxf.exe --depth=infinity --path=URL
REM svn\svnxf.exe --path=URL
REM Both commands above are equivalent

REM --depth options:
REM empty, Include only the immediate target, no file or directory children.
REM files, Include the immediate target of the operation and any of its immediate file children.
REM immediates, Include the immediate target of the operation and any of its immediate file or directory children. The directory children will themselves be empty.
REM infinity, Include the immediate target, its file and directory children, its children's children, and so on to full recursion.
REM --------------------------------------
SET depth=immediates
SET test=true
SET path="url"

if %test% == true (
echo.
echo starting propget at !time!
call svn\svn.exe propget --xml svn:externals --depth=%depth% %path%
echo stopped propget at !time!
) else (
echo.
echo starting freeze.
call svn\svnxf.exe --depth=%depth% --path=%path%
)

Last edited Jan 19, 2010 at 2:18 PM by dnndev, version 1

Comments

No comments yet.