Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
[PHP] Colored SVN Diffs

 
Post new topic   Reply to topic Printable version
 View previous topic  [PHP] Download file from non-web direc... Post :: Post Image format converter  View next topic  
Author Message
D1st0rt
Miss Directed Wannabe


Age:36
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Aug 08, 2007 12:32 am    Post subject: [PHP] Colored SVN Diffs Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Wed Aug 08, 2007 10:59 am    Post subject: Reply to topic Reply with quote

Have you tried ViewVC? I use that for my own repositories for ease of viewing.
Back to top
View users profile Send private message Add User to Ignore List Send email
Maverick
broken record


Age:39
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Wed Aug 08, 2007 2:38 pm    Post subject: Reply to topic Reply with quote

It looks a whole lot like http://www.twcore.org/changeset/1728 ? Is there something lacking in that that you fixed up?
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
D1st0rt
Miss Directed Wannabe


Age:36
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Aug 08, 2007 8:01 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sat Aug 11, 2007 11:29 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 647 page(s) served in previous 5 minutes.

phpBB Created this page in 0.434573 seconds : 33 queries executed (92.7%): GZIP compression disabled