On Fri, May 20, 2016 at 2:21 AM, Steve Schow <st...@bstage.com> wrote:

> Hmm, very interesting idea about using the EDITOR feature to run a
> pre-script…i will have to ponder that…possibly an alternative to using an
> actual wrapper script….
>
> Sounds like server side TH1 probably won’t do it.
>
> throwing a table into the checkout DB would be easy enough to do…can use
> sqlite directly for that.  Its just a convenient place to put it.  I’d also
> interact with the repo’s ticket table to look for tickets that are
> “working” status, etc.  I was also thinking of adding a column to the
> ticket table in the repo and then putting something there to indicate its
> the one I’m working on…in which case I was thinking maybe TH1 could somehow
> pick it up…but it sounds like the commit operation doesn’t get to the TH1
> to do some action for adding the ticket uid to its comment?
>

Fossil has "post commit" hooks for file commits and ticket updates that run
TH1 scripts configured by the Admin/Transfers page in the Fossil web UI.

While you might be able to change the various tables in the SQL database,
creating a "control artifact" to insert in the artifact table will also be
required. Other than the artifact table, the DB tables are caches of meta
data from the artifacts.

In theory, a field like "working on" could live only in the ticket table,
but could be cleared by other updates to the same ticket.

However, to insert the ticket ID into a ticket comment will require
creating a "control artifact" to contain the modified comment (see
http://fossil-scm.org/index.html/doc/trunk/www/fileformat.wiki)

Alternately, you can edit the TH1 in the Edit Ticket UI page to support
your "working on this ticket right now" field. Then create a Ticket Report
that reports the currently "working on" tickets (if more than one ticket is
reported, you forgot to make the ticket as not "working on"). Then your
wrapper could use "fossil ticket show workReport" to get ID of "working on"
ticket and insert that ID in the commit comment.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to