[SAC] [OSGeo] #1556: post-commit hooks for PostGIS SVN

#1556: post-commit hooks for PostGIS SVN
---------------------------+-------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Keywords:
---------------------------+-------------------
They'd be needed to allow for automatic cross-referencing of commits from
tickets and ticket updates, see https://trac.osgeo.org/postgis/ticket/3330

I see MetaCRS requested this 7 years ago (#279) so I wonder if it wouldn't
be easier to just enable SVN->trac communication for all projects at once

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1556: post-commit hooks for PostGIS SVN
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+--------------------

Comment (by strk):

The GIT equivalent of this ticket is currently on the trac/git sandbox
instance:
https://trac.osgeo.org/gittest/ticket/2

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556#comment:1&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1556: post-commit hooks for PostGIS SVN
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+--------------------

Comment (by neteler):

Maybe I don't get the question but the following is there:

{{{
neteler@tracsvn:~$ grep commit-email.pl /var/www/svn/repos/postgis/hooks
/post-commit
/var/www/svn/hookscripts/commit-email.pl "$REPOS" "$REV" --from
svn_postgis@osgeo.org postgis-commits@postgis.refractions.net &
}}}

(likewise for many other OSGeo projects on that server)

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556#comment:2&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1556: post-commit hooks for PostGIS SVN
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+--------------------

Comment (by strk):

Markus, I think a trac signaling hook is also needed for the "ticket
updater", like:
{{{
trac-admin /var/www/trac/postgis changeset added "$REPOS" "$REV"
}}}

At least, I had to add that from my local tests with a git repo, and I
confirm an SVN commit log in PostGIS was unable to update the referenced
ticket even if the related trac feature is activated, probably due to the
lack of this trac signaling.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556#comment:3&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1556: post-commit hooks for signalling PostGIS SVN commits to trac
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+--------------------

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556#comment:4&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1556: post-commit hooks for signalling PostGIS SVN commits to trac
---------------------------+--------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: new
Priority: normal | Milestone:
Component: Systems Admin | Resolution:
Keywords: |
---------------------------+--------------------

Comment (by strk):

btw, the comit-email.pl hook is probably to be reviewed, see
#352:comment10

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556#comment:5&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.

#1556: post-commit hooks for signalling PostGIS SVN commits to trac
---------------------------+---------------------
Reporter: strk | Owner: sac@…
     Type: task | Status: closed
Priority: normal | Milestone:
Component: Systems Admin | Resolution: fixed
Keywords: |
---------------------------+---------------------
Changes (by strk):

* status: new => closed
* resolution: => fixed

Comment:

Done, see https://trac.osgeo.org/postgis/ticket/3330#comment:4

Shall anyone want to same for their SVN repo, please point them to me :slight_smile:
[ with a ticket, please ]

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/1556#comment:6&gt;
OSGeo <http://www.osgeo.org/&gt;
OSGeo committee and general foundation issue tracker.