Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2017-04-20

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
04:14 Riastradh joined #darcs
05:51 ThomasLocke joined #darcs
05:51 ThomasLocke joined #darcs
06:34 amgarchIn9 joined #darcs
08:22 gal_bolle joined #darcs
08:42 amgarchIn9 joined #darcs
08:58 amgarchIn9 joined #darcs
09:39 jeltsch joined #darcs
12:15 gh_ joined #darcs
13:39 leg joined #darcs
13:45 stef204 joined #darcs
15:19 leg joined #darcs
15:54 leg joined #darcs
16:05 leg1 joined #darcs
16:50 leg joined #darcs
17:01 Riastradh joined #darcs
18:41 jeltsch joined #darcs
20:42 pointfree sm: I'm copying snippets of the transferMode code from darcs into darcsden-ssh. This means we won't need to call the raw shell command from Haskell anymore. But, the bigger reason I'm doing it is so we can do away with darcsden-post-hook (simpler installation). The ultimate reason I'm doing it is to get around the size limit of the DARCS_PATCHES_XML env
20:42 pointfree variable and to not deal with redundant data sources.
20:50 Heffalump would you prefer to expose an API from darcs?
20:56 pointfree Heffalump: I would prefer that. Ideally there would be some API for intercepting or getting at the patch bundle that is going to be applied so darcsden-ssh can update the user feed and close issues if the patches apply successfully.
20:57 Heffalump will exposing an existing function work, or would it need refactoring?
20:59 pointfree Heffalump: I think there would need to be some refactoring. Currently I'm supposed to use the post-hook and get the patch list from the environmental variable DARCS_PATCHES_XML. The trouble with that is, env variables are size limited sharing space with cli arguments.
21:04 Heffalump which bit of code do you need?
21:04 Heffalump transferMode itself just prints out files
21:14 pointfree Heffalump: The env variables are set (and size limited) inside "setEnvDarcsPatches" maybe somewhere in there would be a good place to hook in?
21:14 pointfree http://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs/UI/Commands.hs#271
21:15 Heffalump what darcs command is actually being run (if you were shelling out)?
21:15 Heffalump is it really transfer-mode?
21:18 pointfree I think transfer-mode is used to move patch bundles during a push between Darcs 2.0 repos. The fallback is scp for darcs-1, afaik. Maybe the better place would be somewhere around "darcs apply"
21:19 pointfree This is where it happens in darcsden, for reference: http://hub.darcs.net/simon/darcsden/browse/ssh-server/darcsden-ssh.hs#90
21:26 Heffalump I see
21:26 Heffalump so we really want the post hook to be some code you pass
21:27 Heffalump if it wasn't for this patch list issue, could you just call applyCmd or whatever from Darcs.UI.Commands.Apply ?
21:50 pointfree Most likely, but I haven't done it yet. I'm giving it a go right now.
21:58 Heffalump I'm off to bed. I'll have a think about what a general API for that would look like in the morning.
22:02 leg1 joined #darcs
22:07 pointfree Good night Heffalump, and thank you!
23:04 pointfree Hm. It's looking like getBundleChanges may possibly do the trick.

| Channels | #darcs index | Today | | Search | Google Search | Plain-Text | summary