Camelia, the Perl 6 bug

IRC log for #darcs, 2013-09-26

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

All times shown according to UTC.

Time Nick Message
00:59 addos joined #darcs
01:27 arpunk joined #darcs
02:56 mizu_no_oto joined #darcs
03:04 arpunk joined #darcs
03:12 preflex_ joined #darcs
04:35 adnap joined #darcs
05:19 haasn sm: do you want me to go ahead and obliterate my ‘switch to attoparsec’ patch?
05:19 haasn If that's no longer needed
05:23 sm haasn: sure, I think that's not needed
05:27 haasn Hmm.. it's been ages since I last ran darcsden locally, I don't remember any of the commands I ended up using :(
05:27 haasn Unrelated: How do I get rid of excess .~0~ backup files after I fix a merge conflict?
05:33 sm rm *~ ?
05:34 haasn No cleaner way?
05:34 haasn They might be nested deeply
05:34 haasn Oh well
05:34 haasn http://hub.darcs.net/nibro/hsp/bro​wse/Gitit%20User%27s%20Guide.page <- this doesn't seem right
05:34 sm find . -name "*~" -exec rm -f {} \;
05:35 sm I think that's in the tracker,  ' not getting quoted right
05:35 haasn Where can I find documentation for whatever templating format you use? I see “import HSP” but the only HSP I could find (http://hackage.haskell.org/packages/​archive/hsp/0.9.2/doc/html/HSP.html) doesn't export anything like input', field or submit or whatever else you keep using in your <% %> parts
05:35 haasn I'm trying to create a hidden input field that will contain the URL to redirect back to
05:35 haasn sm: I think it has to do with the space, not the '
05:36 haasn sm: http://hub.darcs.net/nibro/h​sp/browse/Front%20Page.page
05:36 sm ok, maybe it's not in the tracker
05:37 sm haasn: I think those are helpers, set up tags so you can jump to them
05:37 haasn sm: http://hub.darcs.net/nand/​test-repo/browse/foo%20bar
05:37 sm "make tag" or similar
05:38 haasn Oh, yes, DarcsDen.Pages.Util
05:50 haasn sm: I can't test it so I won't continue working on this but here's what I thought the solution would look like: http://bpaste.net/show/135502/
05:50 haasn Something along those lines; all that's missing is passing the current page URL to the /login page properly
05:52 sm my eyes!
05:52 * sm squints
05:52 haasn Oops
05:52 haasn http://bpaste.net/show/135503/
05:52 sm haasn: looks good, why can't you test ?
05:53 haasn Not only am I missing about 20 dependencies that I'd have to get through the headache of installing first, but I also forgot basically everything. I don't even remember how to run couchdb and redis and stuff :P
05:53 sm I can help, it's not bad
05:53 sm cabal install --only-dep --dry  ?
05:54 sm should find an install plan
05:54 haasn (I don't use cabal-install)
05:54 sm gosh
05:54 sm why not
05:54 haasn Doesn't integrate with my package manager very well :P
05:56 sm that's tough for working on haskell projects
05:57 haasn One of these days I'm going to have to setup cabal-dev or whatever..
05:57 haasn I just don't like cabal-install because it will mess with my system-wide packages
05:57 haasn And uninstalling local packages is a pain
05:58 haasn But if I understand it correctly, cabal-dev doesn't touch my system/user libraries and instead just builds all the deps it needs in the local directory?
05:58 sm cabal-install by default installs packages in your home dir, or with the new sandbox mode, installs them in your project dir. cabal-dev is no longer needed
05:58 haasn Oh, the sandbox sounds useful
05:58 haasn Maybe that's exactly what I want
05:59 sm sounds like it. I've never had a problem with cabal and system packages interfering, personally
06:03 Heffalump I've found that over time the local package db gets into a bigger and bigger mess
06:03 sm hi Heffalump
06:03 sm yes it does, so a reset is good once in a while
06:13 sm_ joined #darcs
06:22 sm_ night all
06:49 lelit joined #darcs
07:15 epta joined #darcs
07:20 epta joined #darcs
07:31 epta joined #darcs
07:32 raichoo joined #darcs
07:46 alexei joined #darcs
08:14 favonia joined #darcs
08:25 kmels joined #darcs
11:07 owst joined #darcs
11:10 mizu_no_oto joined #darcs
11:35 mizu_no_oto joined #darcs
11:49 jlneder joined #darcs
12:10 favonia joined #darcs
12:38 aaryabhatt joined #darcs
13:10 favonia joined #darcs
13:26 addos joined #darcs
13:29 Igloo joined #darcs
13:38 ManateeLazyCat joined #darcs
13:42 favonia joined #darcs
13:45 ManateeLazyCat joined #darcs
13:46 donri joined #darcs
13:46 ManateeLazyCat joined #darcs
13:56 raichoo joined #darcs
14:13 mizu_no_oto joined #darcs
14:19 kmels joined #darcs
14:34 mizu_no_oto joined #darcs
15:38 raichoo joined #darcs
15:56 mizu_no_oto joined #darcs
16:14 mornfall joined #darcs
16:41 mizu_no_oto joined #darcs
16:50 aaryabhatt joined #darcs
16:57 lelit joined #darcs
17:06 mizu_no_oto joined #darcs
17:11 whaletechno joined #darcs
17:26 alexei joined #darcs
17:49 mizu_no_oto joined #darcs
17:53 sm joined #darcs
18:08 mizu_no_oto joined #darcs
18:11 sm g'day all
18:11 mtp o/
18:12 sm shouldn't "apply no-allow-conflicts" in _darcs/prefs/defaults prevent me from pulling a patch with conflicts ?
18:12 sm I still see "We have conflicts in the following files: ... Finished pulling and applying."
18:13 sm also shouldn't darcs obl --last 1 -a work without further prompting ? It still asks about making unrevert impossible ?
18:15 sm saying --no-allow-conflict on the command line does work
18:17 aaryabhatt joined #darcs
18:19 sm darcs hub ssh is down ?
18:20 mizu_no_oto joined #darcs
18:21 sm ah no, just me
18:39 mizu_no_oto joined #darcs
18:41 Heffalump sm: apply doesn't get run during pull, only in a remote push
18:41 Heffalump pull no-allow-conflicts would have done the job
18:43 sm ahh, thanks
18:55 Heffalump sm: -a only affects the interactive selection prompts. It's a good point.
19:02 dolio joined #darcs
19:30 alexei joined #darcs
19:32 mizu_no_oto joined #darcs
19:57 kmels joined #darcs
20:00 mizu_no_oto joined #darcs
20:08 jlneder joined #darcs
20:31 mizu_no_oto joined #darcs
20:56 sm after a tough fight, I have fixed browsing raw file content in private repos on darcs hub (#87, #81)
20:57 sm I think the /raw/ANYREPOPATH url we serve for public repos may be obsolete. darcs only accesses repo files under _darcs/, right ?
20:58 sm any security review appreciated,  http://hub.darcs.net/simon/darc​sden/patch/20130926205230-3c3f9
21:01 Heffalump not security, but will text/plain be appropriate for binaries?
21:02 Heffalump ah, you mention that in a comment
21:03 sm any review, I should say. Not really. I want snap to choose from its default content types, and just extend those with .md = text/plain . But serveFile didn't seem to choose a type
21:05 Heffalump I don't understand your comment about publicRepoServe being replaced by new repoServe - it seems like your patch is replacing uses of repoServe with publicRepoServe rather than vice-versa
21:06 sm I renamed the old repoServe for clarity, and added a new one (which I then renamed to browseRepoFile and forgot to update the comment eh ?)
21:07 sm browseRawFile. Thanks, I'll fix the comment
21:08 Heffalump I see, so the comment means that publicRepoServe in  Handler.hs could probably change to use browseRawFile ?
21:08 sm in fact I'm still a bit confused by publicRepoServe (previously repoServe). It seems to be used to give darcs access to _darcs, but it only works in public repos. How could darcs use it with private repos ?
21:09 Heffalump I'm also confused about _darcs, raw and raw-file.
21:10 sm I figured /raw is a known url baked into darcs. I'm checking now
21:11 Heffalump ok, so _darcs is for darcs to get at _darcs. raw and raw-file seem to both be for getting at the working copy. What's the distinction between the two?
21:11 Heffalump I've never heard of the darcs exe knowing about a special /raw
21:11 sm I think you're right, and so I'll get rid of it
21:11 Heffalump and it wouldn't copy the working copy from a remote repo, as that might have local changes
21:11 sm I added the new /raw-file which also works with private repos (if you have access)
21:12 Heffalump why not make raw work with private repos?
21:12 sm I'll try that, I was afraid I'd break darcs operations
21:13 sm well also, /raw can browse directories
21:13 sm I guess I'll keep that functionality
21:13 Heffalump I'm just grepping darcs just in case.
21:14 Heffalump also, darcs generally acts on the basis that a repo is served up by a standard webserer from the file-system
21:14 Heffalump I can't see any reason to special case for something like this
21:15 mizu_no_oto joined #darcs
21:16 sm well, there needs to be two routes at least, one requiring a session for users browsing private repo raw content, and one not, for darcs
21:16 sm I'm still confused how darcs get of a private repo works
21:17 Heffalump via ssh?
21:17 Heffalump I'm confident 'raw' isn't needed for darcs, after grepping
21:17 sm great
21:18 sm ah I see, darcs get over ssh uses transfer-mode
21:18 sm darcs get over http fetches from /_darcs (and only works for public repos, currently)
21:20 sm I think I can't have both the public /raw route and a session-requiring /raw route
21:21 sm I think having the public one makes it easy to browse/mirror a repo's raw files, without needing to darcs get
21:22 sm is that a feature or a bug ? they'll probably get search-indexed, in addition to the rendered view
21:24 sm I guess I'll leave it in for now. So the authenticated one will remain a separate route, /raw-file
21:25 sm I think the public access means you could commit an index.html right now and get a static website for your project
21:26 sm not sure if that's a feature or a bug either
21:30 sm actually, all I can get it to do right now is serve individual files
21:34 sm updated the comment at least. Thanks Heffalump, very helpful
21:50 favonia joined #darcs
22:00 sm #hackage reminds me that raw uploadable html from the same domain as your authenticated site is not good security-wise. So raw file serving probably needs more restrictions
23:19 drostie joined #darcs

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