The International Simutrans Forum

 

Author Topic: online SVN information  (Read 15728 times)

0 Members and 1 Guest are viewing this topic.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
online SVN information
« on: October 08, 2009, 11:10:09 AM »
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.

Offline Fabio

  • Devotee
  • Administrator
  • *
  • Posts: 2898
  • The Pak128 Guy
    • Visit me on Facebook
  • Languages: EN, IT, RO, FR
Re: online SVN information
« Reply #1 on: October 08, 2009, 11:16:27 AM »
nice!  8)

Offline Ashley

  • Coder/Patcher
  • Devotee
  • *
  • Posts: 1288
    • entropy.me.uk
Re: online SVN information
« Reply #2 on: October 08, 2009, 11:26:02 AM »
Good idea, nice and simple :) An RSS feed would be very welcome, nice way to keep abreast of progress!

Offline Combuijs

  • Web Team
  • Devotee
  • *
  • Posts: 1392
  • Maintainer of maps.simutrans.com
    • Combuijs
  • Languages: EN, NL
Re: online SVN information
« Reply #3 on: October 08, 2009, 04:11:31 PM »
If this is easily maintainable and accessible, it's really helpful!

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: online SVN information
« Reply #4 on: October 21, 2009, 07:29:25 PM »
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.

Offline IgorEliezer br

  • Devotee
  • Administrator
  • *
  • Posts: 4073
  • Cake recipes are cool... REALLY!
    • Igor Eliezer Architect and Urban Planner/Arquiteto e Urbanista
  • Languages: PT, EN, AutoLISP, Python
Re: online SVN information
« Reply #5 on: October 21, 2009, 08:58:51 PM »
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.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: online SVN information
« Reply #6 on: October 21, 2009, 09:51:17 PM »
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:
Quote
If you don't give in to my demands, -TOO LATE!!! *kaboom*

http://svnlogs.simutrans.com/

Now let's hope Werner lives :)
« Last Edit: October 22, 2009, 07:53:48 AM by VS »

Offline sojo

  • Devotees (Inactive)
  • *
  • Posts: 851
  • Maintainer pak96.comic
    • German home of Simutrans
Re: online SVN information
« Reply #7 on: October 22, 2009, 08:19:22 AM »
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.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: online SVN information
« Reply #8 on: October 22, 2009, 05:22:43 PM »
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
Quote
M trunk/dataobj.cc
->
page should have
Code: [Select]
<td><img src="img/M.png" alt="M" title="modified"></td><td>trunk/dataobj.cc</td>

Offline dannyman

  • *
  • Posts: 182
Re: online SVN information
« Reply #9 on: October 23, 2009, 01:01:15 AM »
EXCELLENT!

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

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: online SVN information
« Reply #10 on: October 23, 2009, 11:07:06 AM »
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.
« Last Edit: October 23, 2009, 11:39:06 AM by VS »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9353
  • Languages: De,EN,JP
Re: online SVN information
« Reply #11 on: October 23, 2009, 11:50:28 AM »
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.

Offline ansgar

  • *
  • Posts: 80
Re: online SVN information
« Reply #12 on: October 24, 2009, 03:53:22 AM »
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

Offline jonasbb

  • Web Team
  • *
  • Posts: 167
Re: online SVN information
« Reply #13 on: November 15, 2009, 02:23:36 PM »
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

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: online SVN information
« Reply #14 on: November 15, 2009, 10:44:33 PM »
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...

Offline jonasbb

  • Web Team
  • *
  • Posts: 167
Re: online SVN information
« Reply #15 on: November 16, 2009, 04:30:41 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.

Offline DirrrtyDirk

  • Devotees (Inactive)
  • *
  • Posts: 1253
  • JR 700 Series Shinkansen
  • Languages: EN,DE
Re: online SVN information
« Reply #16 on: November 16, 2009, 04:45:54 PM »
Might be the "@" - I have never seen that outside of email adresses...

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: online SVN information
« Reply #17 on: November 16, 2009, 08:03:10 PM »
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.

Offline Colin

  • Devotees (Inactive)
  • *
  • Posts: 663
  • Certa Cito
Re: online SVN information
« Reply #18 on: November 25, 2009, 05:32:59 AM »
Ripper, let me know when and where I can subscribe.