Friday, March 30, 2007 1:22 AM royashbrook

view svn change log, quick and dirty

if you have a "burning" need, as some do, to view the change log for a bunch of files in svn, here's a quick way in windows to do it. just save the following as showsvnlog.cmd or whatever cmd or bat you want in your sendto folder and highlight whatever files you want and send them to it. you can also just drag and drop files onto it. this script utilizes some basic looping, shift, and alternate data streams. nothing revolutionary, but it does the job. here's the code:
::showsvnlog.cmd
::royashbrook - execute svn log for files and show the output
@echo off
set t="%~f0:temp.txt"
if exist %t% del %t%
:loop
if "%1"=="" goto end
@echo Processing %1
@echo. >> %t%
@echo **** BEGIN CHANGE LOG FOR %1 **** >> %t%
svn log %1 >> %t%
@echo **** END CHANGE LOG FOR %1 **** >> %t%
@echo. >> %t%
shift
goto loop
:end
start notepad %t%
set t=
Filed under:

Comments

No Comments