[cvsnt] Determine What files have changed on a branch

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


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


--- 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
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook