Genshi XML Template Reference
viaGenshi XML Template Reference — Bcfg2 1.3.1 documentation.
Genshi XML Template Reference
viaGenshi XML Template Reference — Bcfg2 1.3.1 documentation.
Windows and SVN hooks
If you ever need to allow edits to commit logs, all you need to do is create a pre-revprop-change hook.
Just save this as “pre-revprop-change.bat” and throw it in the hooks directory.
@ECHO OFF
:: Set all parameters. Even though most are not used, in case you want to add
:: changes that allow, for example, editing of the author or addition of log messages.
set repository=%1
set revision=%2
set userName=%3
set propertyName=%4
set action=%5
:: Only allow the log message to be changed, but not author, etc.
if /I not “%propertyName%” == “svn:log” goto ERROR_PROPNAME
:: Only allow modification of a log message, not addition or deletion.
if /I not “%action%” == “M” goto ERROR_ACTION
:: Make sure that the new svn:log message is not empty.
set bIsEmpty=true
for /f “tokens=*” %%g in (‘find /V “”‘) do (
set bIsEmpty=false
)
if “%bIsEmpty%” == “true” goto ERROR_EMPTY
goto :eof
:ERROR_EMPTY
echo Empty svn:log messages are not allowed. >&2
goto ERROR_EXIT
:ERROR_PROPNAME
echo Only changes to svn:log messages are allowed. >&2
goto ERROR_EXIT
:ERROR_ACTION
echo Only modifications to svn:log revision properties are allowed. >&2
goto ERROR_EXIT
:ERROR_EXIT
exit /b 1
Procurando um Kanban para usar com o Trac dei de cara com este exemplo: Macke’s Blog: Trac and Kanban.
Não conformado com a formatação fiz alguns ajustes para se adequar às minhas necessidades e ao meu gosto visual.
Abaixo está o código do Kanban para ser inserido em qualquer página Wiki do Trac.
= KanBan =
{{{
#!div style="float:left; margin-right:1em; width:30%; border:1px solid #000000;background-color:#FCF8C9;color:#000000;"
{{{
#!div style="float:left; margin:10px; display:block;"
= [Backlog] Tickets Openeds =
Total: [[TicketQuery(status=new|reopened,format=count)]]
[[TicketQuery(group=priority,status=new|reopened)]]
}}}
}}}
{{{
#!div style="float:left; margin-right:1em; width:30%; border:1px solid #000000;background-color:#D7FFD7;color:#000000;"
{{{
#!div style="float:left; margin:10px; display:block;"
= [Doing] Tickets Progress =
Total: [[TicketQuery(status=accepted|testable,format=count)]]
== Started (Priority) ==
[[TicketQuery(status=accepted,order=priority,group=priority)]]
== Started (Owner) ==
[[TicketQuery(status=accepted,order=priority,group=owner)]]
}}}
}}}
{{{
#!div style="float:left; margin-right:1em; width:30%; border:1px solid #000000;background-color:#D0DEFB;color:#000000;"
{{{
#!div style="float:left; margin:10px; display:block;"
= [Done] Tickets Closeds =
Total fixed: [[TicketQuery(status=closed,resolution=fixed,format=count)]]
Other: [[TicketQuery(status=closed,resolution!=fixed,format=count)]]
== Fixed tickets ==
[[TicketQuery(status=closed,group=type,resolution=fixed)]]
== Other resolutions ==
[[TicketQuery(status=closed,group=resolution,resolution!=fixed)]]
}}}
}}}
{{{
#!div style="clear:both"
}}}
Pra mim esta é a combinação que funciona muito bem:
O VisualSVN Server, é o Servidor SVN mais fácil de instalar, usar e integrar com o Trac, não encontrei nenhuma forma mais simplificada de integrar o SVN e o Trac.
O TortoiseSVN é o cliente SVN indispensável.
Treinamentos frequentes sobre o SVN:
Free Subversion Training Webinars | WANdisco.
uberSVN | The Open ALM Platform for Subversion | www.ubersvn.com.
A interface é perfeita, bonita, funcional. Resta-me no entanto ainda integrar isso como Trac.