1
0
Fork 0
mirror of https://code.naskya.net/repos/ndqEd synced 2025-01-10 01:36:46 +09:00
vervis/src
fr33domlover 6cb86ebbf1 Install darcs post-apply hooks in darcs repos, no-op hook for now
In Darcs, any command can have a post hook (and a pre hook), and the hook
command can be set using a command-line option to the darcs command that you
run. So, in the Vervis SSH server, if we add a --posthook option when running
`darcs apply` to apply remotely received patches, we get a chance to process
the patch data much like in the git post-receive hook.

The setup this patch creates is similar to the git one: It writes a
_darcs/prefs/defaults file to all Darcs repos, and that defaults file sets the
posthook line for `darcs apply`. The posthook line simply executes the actual
hook program written in Haskell.

The current hook program is a one-liner that prints a line to stdout, so every
time you `darcs push` you can tell the hook got executed. The next step is to
implement the actual hook logic, by reading patch data from the environment
variable in which Darcs puts it.
2019-10-07 14:05:52 +00:00
..
Control S2S sharer inbox: Handle Offer{Ticket} yay! 2019-06-15 14:51:48 +00:00
Crypto Stop using Vervis.Import and NoImplicitPrelude, switch to plain regular imports 2019-06-15 08:24:08 +00:00
Darcs/Local Install darcs post-apply hooks in darcs repos, no-op hook for now 2019-10-07 14:05:52 +00:00
Data Mechanism for reporting git pushes to Vervis via post-receive hooks 2019-09-05 12:02:42 +00:00
Database Switch OutboxItem's Activity from plain BL to an upgraded PersistJSONObject 2019-06-29 03:19:00 +00:00
Diagrams Stop using Vervis.Import and NoImplicitPrelude, switch to plain regular imports 2019-06-15 08:24:08 +00:00
Formatting Stop using Vervis.Import and NoImplicitPrelude, switch to plain regular imports 2019-06-15 08:24:08 +00:00
Language/Haskell/TH/Quote Stop using Vervis.Import and NoImplicitPrelude, switch to plain regular imports 2019-06-15 08:24:08 +00:00
Network New Network.FedURI with separate URI modes for dev and for fediverse 2019-07-23 13:59:48 +00:00
Text Stop using Vervis.Import and NoImplicitPrelude, switch to plain regular imports 2019-06-15 08:24:08 +00:00
Vervis Install darcs post-apply hooks in darcs repos, no-op hook for now 2019-10-07 14:05:52 +00:00
Web Implement C2S unfollowing, using Undo{Follow} 2019-10-05 14:10:29 +00:00
Yesod Implement remote following, disable automatic following 2019-09-25 10:43:05 +00:00
GitPackProto.hs Stop using Vervis.Import and NoImplicitPrelude, switch to plain regular imports 2019-06-15 08:24:08 +00:00