<2005 April>
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

On this page...

Search

Links

Member of...


ASP Insiders

MVP Visual Developer ASP/ASP.NET

Enter CodeZone

Blog Categories

Microsoft

Blogroll

Deutsche Resourcen

Management

Sign In
 

#  Monday, 11 April 2005

The post commit hook for Subversion now has reached a stage where I consider it feature complete. Newly added for this release:

  • log4net for logging important information (ie exceptions) necessary for debugging a hook that is supposed to run automatically. Note that it uses v1.2.9 of log4net, which is a Beta release. The log file name is post-commit.log (you can change this in post-commit.exe.config)
  • Nicely formatted commit mail. The change log line items are parsed, the A, U & D information is used to build Added, Modified & Deleted sections in the message.

Here is an example of the message format (from the #develop commit mailing list):

Author: mattward
Date: 2005-04-10 20:06:25 +0200 (So, 10 Apr 2005)
New Revision: 1840
Log Message:
Added basic .manifest schema.  Schema annotation displayed alongside
auto-completion list. Mixed namespaces and simple content types
now supported.  Added attribute value auto-completion.

Added:
trunk/SharpDevelop/data/schemas/manifest.xsd
....
trunk/SharpDevelop/src/AddIns/.../SimpleContentWithAttributeTestFixture.cs
Modified:
trunk/SharpDevelop/data/resources/StringResources.dk.resources
...
trunk/SharpDevelopResources/LanguageResources/LocalizeDb.mdb
Deleted:
trunk/SharpDevelop/src/AddIns/.../ActiveElementPathTestFixture.cs

 -- SvnPostCommitHook 1.2.0.50410 --

Installation Take all three files from \Hook and place them in your repository's hooks directory. Open post-commit.exe.config and modify the entries in the appSettings section to match your installation and needs.

Test it Run post-commit.exe once interactively from the command line to see if your installation is ok. Potential errors are only logged to post-commit.log, not to the Console. So be sure to check it!

Finally, the download:

SvnPostCommitHook1.3.0.50411.zip (105.82 KB)
Categories: .NET | Subversion | Use the source Luke
Monday, 11 April 2005 12:06:49 (W. Europe Daylight Time, UTC+02:00)  #    Comments [1]

 



#  Sunday, 10 April 2005

I updated the post commit hook application, however, installation advice from the original blog entry Post Commit Hook for Subversion, the .NET way still applies. What's new? The revision info is parsed and more nicely presented in the commit mail message. Because of info parsing, one call to svnlook could be saved.

SvnPostCommitHook1.1.0.50410.zip (14.08 KB)

Categories: .NET | Subversion | Use the source Luke
Sunday, 10 April 2005 11:13:31 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Saturday, 09 April 2005

In the entry Subversion on Windows as a Service, plus Commit Hook and Backup Script I showed a batch file for hooking into the post commit event of a repository. This batch file annoyed me from the very beginning. During the Indigo Community Day on Thursday in Munich I decided that it was about time to get rid of it, and after yesterday's party, I thought it might be a nice pinky exercise to do the basic port to C# today.

And yes, it is very basic at the moment. All you need to do is take post-commit.exe and post-commit.exe.config from the \SvnPostCommitHook\Hook directory in the downloadable zip file and drop those two into the hooks directory of your repository. The .config file is your ticket to customization:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <appSettings>
  <add key="SvnLookPath" value="C:\Program Files\Subversion\bin\svnlook" />
  <add key="MailTo" value="commitlist@yourdomain.com" />
  <add key="MailFrom" value="commithook@yourdomain.com" />
  <add key="MailSubject" value="Your project name rev {0}, {1}" />
  <add key="MailServer" value="localhost" />
 </appSettings>
</configuration>

Just as the batch file, post-commit.exe's task is to read the change log and commit message, and post it to a mailing list that distributes the information to the project stakeholders. Therefore, you need to configure the four Mail* settings to match your configuration and preferences. The SvnLookPath needs to point to your Subversion installation, however, most installations should be fine with this default.

How can you test the operation of post-commit.exe? This is the syntax:

post-commit <repository> <revision>

For example:

post-commit e:\subversion\fidalgo 1830

In the current version, testing is highly recommended as no logging or exception handling is implemented.

SvnPostCommitHook1.0.0.50409.zip (12.07 KB)

The source code is BSD-licensed. Future plans are to fully parse the svnlook output, as well as add a logging infrastructure to easily find configuration problems during normal operations of your Subversion server.

Saturday, 09 April 2005 19:34:45 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Friday, 08 April 2005
The necessary information can be found in the KB article Windows feature allows a Memory.dmp file to be generated with the keyboard. Memory dumps can be useful for debugging low-level problems, so this is pretty useful when everything else fails and you can't do remote debugging.
Categories: this
Friday, 08 April 2005 11:52:20 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Wednesday, 06 April 2005
This site contains links to a variety of resources on IPsec and its support in Windows Server 2003.
Categories: Administration | Security
Wednesday, 06 April 2005 12:00:00 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Saturday, 02 April 2005

From the "Don't be too smart department": I am a long time user of ISA Server (since the NT4 days when it was Proxy Server). My domain setup always included a DHCP server, which was configured to not dish out option #3, the router (which obviously would be the ISA machine). This way, I could be sure that no client by default could establish an Internet connection. Define the proxy in your browser, you can surf. Install the firewall client, you can do whatever you please.

The "whatever you please" part is correct in respect to TCP and UDP plus the ports that are open on the ISA box. It is not true when it comes to other protocols, such as GRE. What is it used for, you ask? The Generic Route Encapsulation protocol (#47 for the record) is needed for PPTP (Point-to-Point Tunneling Protocol) to connect to a virtual private network (VPN). And GRE doesn't work with the Firewall Client, your machine positively must be a SecureNAT client (routing packets directly to the router).

Therefore, either change the machines IP configuration to override the gateway setting, or change the DHCP zone. I did the latter.

Categories: Administration
Saturday, 02 April 2005 08:57:05 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Thursday, 31 March 2005

The TechTalk I will be doing in June has been announced on the msdn TechTalk developer portal (German). Locations and dates are yet to be announced, thus no registration so far. The topic will be "Tools for successful software projects in .NET".

Thursday, 31 March 2005 11:16:39 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 

The IIS Diagnostics Toolkit is a combined release of popular tools used by today's IIS users. These tools include tools aimed at resolving problems related to Secure Socket Layer (SSL) issues, permission or security problems, gathering data for your SMTP server included with IIS, as well as the famous Log Parser utility used to sift through hundreds or thousands of log files very quickly.

The toolkit consolidates all the tools into a convienant download and is supplemented by updates every 90-days to ensure that users have the most current diagnostics tools at their fingertips. Download for x86

Categories: Administration | Cool Download | IIS
Thursday, 31 March 2005 11:09:35 (W. Europe Daylight Time, UTC+02:00)  #    Comments [0]

 



#  Sunday, 20 March 2005

Last week, it was time for a well-deserved skiing vacation [vacation, defined: no computer (and related stuff like books), no radio, no television, and of course no Internet cafe]. As always [always, defined: nineteen times], this Austrian's winter destination is France - 3 Vallees, Meribel, Mottaret.

The heading of this post is motivated by the weather situtation we encountered, which can be described only as le ciel bleu. After six days of skiing we decided to call it a day (so to speak) and head home a day early (a good decision as it turned out on Saturday, which totalled 100+km of traffic standstill in Austria thanks to Easter holidays) - no one any longer able to put up with the prospect of yet another day of sun and blue sky. 71,000 (alti)meters downhill is sufficient anyways.

And now for some photos to prove my point:

Left-hand side: Verdon and Vizelle gondolalifts.

Mont de la Challe.

Saulire, looking in the direction of Mont de la Chambre and 3 Marches.

Categories: this
Sunday, 20 March 2005 07:02:27 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 



#  Thursday, 10 March 2005
I just registered for the Community Day: Indigo in Munich (7th of April). Talks will be held by Christian Weyer and Darius Parys. It is free, so sign up.
Categories: .NET | Community
Thursday, 10 March 2005 02:37:56 (W. Europe Standard Time, UTC+01:00)  #    Comments [0]

 



© Copyright 2017 Christoph Wille

newtelligence dasBlog 2.3.9074.18820
Subscribe to this weblog's RSS feed with SharpReader, Radio Userland, NewsGator or any other aggregator listening on port 5335 by clicking this button.   RSS 2.0|Atom 1.0  Send mail to the author(s)

 
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.