Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3685 closed enhancement (fixed)

Add intertrac links to josm trac

Reported by: Dirk Stoecker Owned by: Tom Hughes
Priority: major Milestone:
Component: admin Version:
Keywords: Cc:

Description

Hello, please add intertrac links to josm, so we are able to refer to josm bug reports in SVN checkins.

In trac.ini add something like:

[intertrac]
j = josm
josm.title = JOSM Trac
josm.url = http://josm.openstreetmap.de

P.S. Calling "trac-admin" and then "wiki upgrade" seems to be recommended to update the Trac wiki pages, so the users are possible to see these links in formating description.

Also I suggest to switch to Trac 0.12 :-) It has a lot of advantages.

Change History (7)

comment:1 Changed 8 years ago by Tom Hughes

I would love to switch to trac 0.12 but it's not available in the current Ubuntu LTS release

comment:2 Changed 8 years ago by Dirk Stoecker

I installed the "normal" ubuntu trac and then used easy_install for the python stuff:

easy_install

  • Babel
  • Genshi
  • trac

In this order or language stuff wont work.

comment:3 Changed 8 years ago by Dirk Stoecker

Sorry, the lines got mangled. You need to call easy_install for each individually.

comment:4 Changed 8 years ago by Tom Hughes

We don't use unpackaged software unless there's a very good reason - it would be nice is certainly not enough... It's just so much easier if there is one system able to tell you everything that is installed.

Plus if we installed it outside apt like that then all hell would probably break loose when we upgraded to a version of Ubuntut that does have out.

comment:5 Changed 8 years ago by Dirk Stoecker

Well, easy_install is really easy. It simply creates 1 directory per package in /usr/local/lib/python2.6/dist-packages/. Easy to cleanup in case you update to a .deb package later - simply delete directory.

But all this does not really relate to the target of this ticket. Both (the intertrac link as well as cleanup of the docs) don't depend on version of trac.

comment:6 Changed 8 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

I've added intertrac links under josm (not j though - that seems a little overly terse for my liking).

The wiki upgrade thing doesn't work though - it seems to look for a "wiki" directory but looks in the wrong place (under the current working directory for some reason). I suspect the one that it really wants is /usr/share/pyshared/trac/wiki or something, but that comes from the apt package and won't be writable by the trac user (and shouldn't be altered anyway).

comment:7 Changed 8 years ago by Dirk Stoecker

Whether /usr/share/pyshared/trac/wiki is writable by trac or not is not important, as it only needs to be read. The "trac-admin" command needs be called with the trac directory of osm (the one, where the db directory is inside).

The "wiki upgrade" then copies the current trac wiki help pages into the database, so that e.g. WikiFormatting corresponds to the really installed version. If this does not work, the deb package is broken.

Note: See TracTickets for help on using tickets.