News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

online SVN information

Started by VS, October 08, 2009, 11:10:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VS

Hello,
I have had this idea for a while... and then went and made it reality :) Well, I have a sample output for Simutrans code repository.

What do you think? What would you change? Obviously this could be a rss feed as well...

(Keep in mind this is meant just to keep people updated on progress, not a web interface like sourceforge has!)

All code and other parts can be found here. So far it is still proof of concept more than the final thing. But the foundation is there - connect, retrieve information, print a nice file and handle errors on the fly. I can imagine some bookmarking to reduce data transfers might be added in final version, but that is pretty much the only thing. Rather some smart filtering of dates to keep the log reasonably recent and long...

The script does not run as a repository post-commit handler but rather a completely standalone program. The sample output will not update itself, just stay there... the process will be similar to making nightlies.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Fabio


Ashley

Good idea, nice and simple :) An RSS feed would be very welcome, nice way to keep abreast of progress!
Use Firefox? Interested in IPv6? Try SixOrNot the IPv6 status indicator for Firefox.
Why not try playing Simutrans online? See the Game Servers board for details.

Combuijs

If this is easily maintainable and accessible, it's really helpful!
Bob Marley: No woman, no cry

Programmer: No user, no bugs



VS

I have a small problem... how should the whole page/site look like? The lists themselves are pretty much finished, but I need some sort of "glue" that would lead a reader to them and I don't want it to be as hideous as possible :P

Can you please suggest some layout and what the overall design/feeling should be like? I have no problem doing something, just no idea what.

The obvious solution is frameset, which in this case would be IMO more than justified... but if you can think of anything else, tell me!

Otherwise it's ready to go online, assuming Werner can run the script once a day, like nightly builds.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

IgorEliezer

We also need to consider the integration of online SVN information with simutrans.com (which is being updated slowly) in order to facilitate the visits.

Ideas for layout: I don't have any. We have a lot of styles in our sites, maybe one will fit, specially made for developer and onlookers.

VS

#6
Aww come on! I'll make it extra ugly and then everyone will cry and complain :D




Well, according to a famous Half-life parody on youtube:
QuoteIf you don't give in to my demands, -TOO LATE!!! *kaboom*

http://svnlogs.simutrans.com/

Now let's hope Werner lives :)

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

sojo

This looks very usefull.

Can you put the alt and title tag into the site? I think, somebody don't know what the images means.
"English is a easy language. But not for me." ;) sojo

follow simutrans_de on Twitter
- A home for Simutrans (in german)

VS

Not sure which part is missing that? The little icons in logs? They should all have as alt the letter SVN uses to describe the action and as title the actual word... like this:

svn says
QuoteM trunk/dataobj.cc
->
page should have <td><img src="img/M.png" alt="M" title="modified"></td><td>trunk/dataobj.cc</td>

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

dannyman

EXCELLENT!

Now it would be nice if these linked to a diff view. :)

VS

#10
Unfortunately that is outside scope for this project. What I wanted is to have some "current work log" for the wide public.

The difference between parsing log output from client and retrieving whole diffs is really big. There is no easy way to get them except for real integration.

Sourceforge should have complete browsing of repositories, so at least pak64 and pak128.Britain can be explored in that detail online.

EDIT: Most of the limitations come from how this works - offline script generates static pages and they are uploaded. If you feel like rewriting this all, go ahead - here's the source.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

prissi

There are lots of tools like trac and doxygen; but they generate a lot of pages. Considering that the SVN runs on a private computer (since only there the desired hooks work) and does use actually the svn protokoll and not over http as sourcefore, itegration with said tools is unlikely. But you can install doxygen on your computer and generate it locally.

ansgar

Hi,

the SVN mirror on github.com provides a web page (and feed) for the commits.  From there you can also view a diff for each commit.
See http://github.com/aburch/simutrans/commits/master

Regards,
Ansgar

jonasbb

Hello,
this site is useful, but i have a problem.
My RSS feed reader (Feed Sidebar for firefox) say allways, there are new news in the feed, but the feed is still the same.
This occurs by the simutrans program feed and by the pak128 feed. These two feed are the only one where this occures.

The feeds, who link to sourceforge don't show this.
But if I want to go to the linked site, i get an 404 error.

I hope this information help you.
jonasbb

VS

When making the feeds I used rss forum specification, which says some things and leaves out some.

1) links
What happens with links is that in fact there are no links, but your reader wants to be smart and shows the item's unique id as a link because they are often the same. However the id I use is subversion address, not http/www. Or maybe it is confused by seeing it has @ in it and thinks it is email. Which is again doing more than needed.

This can be fixed by adding link to the web page to all items.

2) status
Oops, I always add empty time :o Sorry.

I will try to add this to changes tomorrow...

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

jonasbb

Quote from: VS on November 15, 2009, 10:44:33 PM
What happens with links is that in fact there are no links, but your reader wants to be smart and shows the item's unique id as a link because they are often the same. However the id I use is subversion address, not http/www. Or maybe it is confused by seeing it has @ in it and thinks it is email. Which is again doing more than needed.
If I want to open https://simutrans.svn.sourceforge.net/svnroot/simutrans/pak64@231 in FF then I get a 404 ERROR.
Also if i tip in the address to the address bar.

DirrrtyDirk

Might be the "@" - I have never seen that outside of email adresses...
  
***** PAK128 Dev Team - semi-retired*****

VS

The @ is svn notation for revision number - its complete URI looks like protocol://server/path@rev

And the problem is as I stated - essentially your program does not find apples so it looks elsewhere and puts bananas instead of apples... but that does not compute :P

The corrected script is attached, let's hope Werner can replace it soon.

My projects... Tools for messing with Simutrans graphics. Graphic archive - templates and some other stuff for painters. Development logs for most recent information on what is going on. And of course pak128!

Colin

Ripper, let me know when and where I can subscribe.
I may not agree with what you say, but I will defend to the death your right to say it

Thought for the day

When you are up to your backside in alligators, it is difficult to remind yourself that your initial objective was to drain the swamp.