running svn on Windows

Posted by nick on Thursday, November 26th, 2009 | Filed under  

creating a subversion service

Obviously this requires a suitable Windows subversion server (such as CollabNet Subversion Server), and you’ll need to change paths to the install and repository directories

create-subversion-service.bat

sc create svnserve binpath=”{install-directory}\svnserve.exe
–service -r {repository-directory}
DisplayName=”Subversion Service” depend=Tcpip start=auto

Note that it should be two hyphens in front of service.

hooks

Hooks are written in the usual way, but as batch files.

stopping an empy log message

@echo off
setlocal
set _repository=%1
set _transaction=%2
svnlook log %_repository% -t %_transaction% | findstr . > nul
if %errorlevel% gtr 0 (goto NOLOG) else exit 0
:NOLOG
echo. 1>&2
echo Your commit has been blocked because you didn’t provide a log message. 1>&2
echo Please write a log message describing the purpose of your change and 1>&2
echo then try committing again. 1>&2
exit 1

No Comments »

Leave a response, or trackback from your own site.

last 10 posts

[32sixteen]

site feeds

[RSS Feed - Entries] (entries)

[RSS Feed - Comments] (comments)

archives

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

things we ride

Actually we're lying about the Maverick since some low-life stole it.

photos

In the UK as we give away our civil liberties in the name of freedom it might be handy to be aware of Photographers Rights.

Don't let The Man stop you shooting.

My photos on flickr. Get your badge at bighugelabs.com/flickr

meta»data

[Get Firefox!]

You know it makes sense.

[Valid XHTML 1.0 Transitional]

[Valid CSS]

[Valid RSS]

search 32sixteen

 

search the web

Google

translate this page


pages

tape time

The things we listen to are occasionally logged on Last.fm

Now Playing

iPod updating courtesy of iScrobbler.

It doesn't update from the wheels of steel though :-)

Remember kids, vinyl can't carry Digital Rights Management.

[LastFM]

people are people

other places to go

in no particular order...

[Vale of Lune Harriers]

toilet material

For all that we like the up-to-the minute offerings of the web there's nothing like a proper badly photocopied A5 fanzine or a glossily printed proper magazine to keep you occupied on the throne. Here, in no particular order, is our material of choice.

[Singletrack]
Singletrack

[The Outcast]
The Outcast

race results

If anyone has a full set of NEMBA results (that's North of England for you colonial types) then please forward them.