Subversion blacklist hook script

08.08.2008 um 14:06:41 von M:ke für Computer & Technik
svnblacklist screenshot

To help preventing use of old, deprecated and replaced functions or methods in software projects, I wrote a subversion hook script in perl for blacklisting keywords or regular expression in committed patches.

Installation

  • Copy svnblacklist directory to a location on your system.
  • Copy pre-commit Shellscript to /your/local/repos/hooks/
  • Change the svnblacklist path in pre-commit:
    /path/to/svnblacklist/svnblacklist.pl "$TXN" "$REPOS" "/path/to/blacklist" || exit 1
  • Make pre-commit executable: chmod +x pre-commit

The blacklist

deprecatedFunction
doNotUseMeAnymore\s*\(
\$myBadVariable


Download

svnblacklist.zip


Schlagworte: subversion blacklist hookscript perl tortoisesvn


 

suche:/



kategorien:/

Computer & Technik (16)
Interessantes und Wissenswertes aus der IT

Délicate (18)
Besonders tolle Fundstücke

Freie Software (13)
OpenSource, Linux und Co.

Information (19)
Schwierig zu kategorisieren

Ironie (11)
Satire

Komisches (15)
Komisch im Sinne von Eigenartig

Kommentar (22)
Zitate und Kommentare

Liebes Tagebuch (13)
Privates

Party (2)
Feiern und Gesellschaft

Poesie (12)
Gedichte und Witze

Politik (15)
Politische Angelegenheiten

Sport (4)
Alles was Spaß macht

Tips (21)
Anleitungen, Tips & Tricks

Unterhaltsam (21)
Oberflächlich Witziges






M:kes Paradies © 2006 get-mike.de mit Beilpuz-Kraft (mild schonend); Allen Rechten vorzuenthalten; Abteilung Moderne Kommunikationsmedien des Reiche Weltkonzerns; Erzeugnis nach deutschem Reinheitsgebot; Verschreibungspflichtig; Vielleicht Microsoft® Windows™Internet™Explorer™-kompatibel; Proud to be a member of the English language and not fucking German; Unesco-Welterbestatus seit Beginn an zweifellos bestätigt; Mit freundlicher Genehmigung der Volksrepublik China.
Made with Beilpuz
time:0.00302195549011