In-Game SVN ChangelogAuthor Submitted by Version D/L File Size Date Added Txzeenath Txzeenath 1.0 207 30.00 KB Feb 1, 2011
DescriptionThis is a set of functions I created for my MUD for generating in-game SVN logs.
Written for SmaugFUSS with AFKMUD Boards installed.
(you must have SVN installed of course to use it, and a valid repository)
It will grab the HEAD rev log, pull the revision # from it, and generate all missing logs from there.
Logs will than be loaded into memory, and posted to a selected noteboard. This was created
for Samson's AFKboards, and calls functions from it. While the function does check for AFKboads,
it may conflict with other modifications or have currently unseen problems.
Changelogs can be viewed in-game by using do_changelog. Which takes an argument of "lowrev" and an optional of "highrev"
Changelog <lowrev> (highrev). There currently is no safety checks to make sure you don't overflow yourself.
So "changelog 1 9000" is probably a bad idea.
This is not what I consider "snippet quality". The commenting is a giant mess, the code is a mess, but it's a good starting point
for anyone looking for this functionality. There ARE bugs in this version that I have fixed in my own copy(for example, loading not incrementing from the proper #).
I only ask that I am credited either in the header, or (if the file is dissected) at the function.
Time stamps on the auto-posting currently do not work properly, as I haven't figured out how to convert DateTime to a proper time_t yet
and don't have the time to do so. The auto-posting wipes the board entirely and posts all of the logs. Things could likely be simplified by
checking for posted notes, matching their "subject", and only posting missing notes. This would also solve the problem of timestamps
always being new.
Auto-posting requires Samson's AFKboards be installed. It is unlikely to work properly with stock boards, but could be adapted
You must have libxml2 and likely libxml2-dev installed. Your makefile must also contain the proper "flags" for linking.
C_FLAGS = -g2 -I/usr/include/libxml2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(SOLARIS_LINK) -lz $(NEED_DL) -lxml2
ran sudo rm -rf /
Changed some stuff
blew up the mud
made unicorns turn green
User Comments For: In-Game SVN Changelog