Author |
Message |
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Wed Aug 08, 2007 12:32 am Post subject: [PHP] Colored SVN Diffs |
|
|
|
|
I'm getting fed up with the limitations of "whole package" project management web applications, so here's a quick thing I threw together today to show and colorize the output from svn diff on a target repository. It uses some stuff from PEAR which I have included in the zip file. Make sure you set the repository you want to look at as well as the path to your svn command line program.
Since changesets never change, it creates a file locally with the rendered data for fast recall. If you don't have write permissions, it will just take forever every time. Live demo can be seen here, use ?r=# to pick a revision number (like this)
Once this thing gets nice enough, I can pair it up with DokuWiki and BugSpray for a vastly superior suite of project management tools (compared to Trac or Collaboa, and Retrospectiva is too damn slow) _________________
SVN Diff colorizer written in PHP
phpsvn.zip - 131.28 KB
File downloaded or viewed 27 time(s)
|
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Wed Aug 08, 2007 10:59 am Post subject: |
|
|
|
|
Have you tried ViewVC? I use that for my own repositories for ease of viewing.
|
|
Back to top |
|
|
Maverick
Age:39 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Aug 08, 2007 2:38 pm Post subject: |
|
|
|
|
It looks a whole lot like http://www.twcore.org/changeset/1728 ? Is there something lacking in that that you fixed up? _________________
|
|
Back to top |
|
|
D1st0rt Miss Directed Wannabe
Age:36 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Wed Aug 08, 2007 8:01 pm Post subject: |
|
|
|
|
The diffs aren't lacking, which is why I'm trying to recreate them in a way that they can be more tightly integrated to other available things.
I looked at ViewVC, but after going through several Trac, Collaboa and Retrospectiva installs (each) I could happily go through the rest of my life without ever configuring python or ruby and the swig subversion bindings on shared hosting again. I might give it a go just to see what it's like, the functionality is indeed nice.
|
|
Back to top |
|
|
Smong Server Help Squatter
Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Sat Aug 11, 2007 11:29 am Post subject: |
|
|
|
|
How about making the --- and +++ at the top colored or put a key/legend somewhere, that way it's clear what the colors mean. Also the page has an unusual width (what is it 120%?). _________________ ss news
|
|
Back to top |
|
|
|