Re: version control/change history plugin?

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
I think the easiest thing to do is to keep your blog in a CVS/SVN 
repository.  Every time you make a change to a blog entry, you check the 
change in.  CVS/SVN maintains versions and history of your entries outside 
of PyBlosxom.

Then write a plugin that pulls the history for a specific entry from 
CVS/SVN when given teh querystring ?version=history or something like 
that.  And then for specific diffs between entry versions 
?version=diff&from=12&to=13 or something like that.

The other thing you're going to have to deal with is that PyBlosxom uses 
the mtime of the entry file as the datestamp for that file.  Every time 
you update the entry, you have to make sure you set the mtime back. 
Either that or use the filenametomtime plugin or write your own plugin 
that associates dates to files.

Hope that helps--
/will


On Thu, 3 Aug 2006, Ryan Barrett wrote:
> 
> hi all. i'm in the process of switching from snipsnap 
> (http://snipsnap.org/) to pyblosxom, and i'm very excited.
>
> unfortunately, pyblosxom is missing one snipsnap feature that i like: change
> history for entries. snipsnap lets you see the history of each entry, as well
> what was added, removed, or changed in each version. e.g.:
>
> an entry:    http://snarfed.org/space/fillcode
> its history: http://snarfed.org/exec/history?name=fillcode
> a change:    http://snarfed.org/exec/diff?name=fillcode&oldVersion=36&newVersion=37
>
> i searched a few places, but couldn't find a pyblosxom plugin that does this,
> nor did i see any blog posts or mailing list threads mentioning it. does
> anyone know of any plugins that do this, or come close? has it been discussed?
>
> if not, i'll take a stab at implementing it, probably in a month or so when i
> have a solid understanding of the pyblosxom design philosophy.
>
> any initial thoughts on what it should look like? most importantly, how each
> version should be stored?
>
> -Ryan
>
> --
> http://snarfed.org/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.