[cvsnt] Determine What files have changed on a branch

Maxim Sizov maxwizard at yahoo.com
Thu Mar 31 11:14:12 BST 2005


--- Bo Berglund <Bo.Berglund at system3r.se> wrote:
> This list does not accept attachments.
> Please put the file into the boduý text instead.
>

Contents of the "changes_tag_on_branch.bat" file

@echo off

if "%~1"=="" (
    set TARGET=%CD%
) else (
    set TARGET=%1
)

pushd %TARGET%

if not exist CVS\Repository goto nocvs
if not exist CVS\Tag goto nobranch

set /p tag_from=Enter tag name: 
for /f "delims=:" %%i in (CVS\Repository) do set
module=%%i
for /f "delims=:" %%i in (CVS\Tag) do set branch=%%i
set branch=%branch:~1%

cvs rdiff -s -r %branch%-%tag_from% -r %branch%
"%module%" > changes_since_%tag_from%_on_%branch%.txt

notepad changes_since_%tag_from%_on_%branch%.txt
del changes_since_%tag_from%_on_%branch%.txt
goto exit

:nocvs
echo %TARGET% is not a CVS controlled directory
goto exit

:nobranch
echo %TARGET% is not on a branch

:exit
popd


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 



More information about the cvsnt mailing list