Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2017-03-27

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

All times shown according to UTC.

Time Nick Message
00:06 bfrk joined #darcs
00:06 bfrk sm: are you there?
01:17 sm hello bfrk
01:18 bfrk sm: Hi, I had a question about some code in darcs with a comment "needed by darcsden"
01:18 sm got a link ?
01:19 bfrk sm: link?
01:20 bfrk sm: you mean as in web?
01:20 sm yes
01:20 bfrk sm: let me see...
01:21 sm http://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs
01:22 bfrk sm: thanks i was about to ask how i find the 'master' darcs repo...
01:24 bfrk http://hub.darcs.net/darcs/darcs-screened/browse/src/Darcs/UI/Commands/Record.hs#24
01:25 bfrk I want to remove the type parameter for Commands, i.e. re-monomorphize
01:25 sm DarcsCommand ?
01:26 bfrk ...and throw out the configuration record (commands record and amend have one)
01:26 bfrk sm: yes
01:27 bfrk sm: it turned out that config records are a bad idea
01:27 sm bfrk: I don't know the answer re darcsden, but I see it's used in three places and I would bet it's not essential
01:28 sm oh bfrk = ben. Thanks for all your cleanup work
01:28 sm I am your fan
01:28 bfrk :)
01:29 bfrk someone has to do it
01:30 bfrk our test coverage is pretty good otherwise i would probly break everything all the time
01:30 bfrk and it's still hard not to ;-)
01:31 sm I bet
01:31 sm darcsden is recording a patch here, http://hub.darcs.net/simon/darcsden/browse/src/DarcsDen/Handlers/RepoHandlers.hs#253
01:32 sm and it's doing some silly thing at http://hub.darcs.net/simon/darcsden/browse/src/DarcsDen/Darcs.hs#25. I'm sure there's a better api it should use now
01:34 mizu_no_oto joined #darcs
01:35 bfrk ahem, i fear there is not. i must admit i never considered dracs as a library and that users might want to inject/override options. must think about that
01:36 bfrk you can of course use a default setting
01:38 bfrk ah, perhaps i did not understand what you mean. are zou referring to the class?
01:38 bfrk (damn german keyboard)
01:39 sm bfrk: I'm not really sure what's going on :)
01:39 sm I'm just showing the two uses of RecordConfig in darcsden
01:40 sm I think it is about the only user of darcs-as-library, so it's not surprising if things are a bit sub optimal
01:40 bfrk The DarcsOption class is necessary only because of the config record for this special command. So throwing it out means you don't need the class anymore.
01:40 sm +1
01:41 bfrk ...and I can remove the export
01:41 sm and what about the other case, http://hub.darcs.net/simon/darcsden/browse/src/DarcsDen/Handlers/RepoHandlers.hs#253
01:46 bfrk sorry it's a bit late here; I don't see what you are referring to...
01:46 bfrk ok, I see it now, let me think a bit
01:48 ilbot3 joined #darcs
01:48 Topic for #darcs is now http://darcs.net/ | logs: http://irclog.perlgeek.de/darcs/ | darcs 2.12.5 is out http://darcs.net/Releases/2.12
01:50 bfrk I think you would inject the flags in same way as in the other example where you prepend the Quiet to the flag list
01:51 bfrk I mean as for commands other than record
01:54 bfrk The config records were a bad idea and i#m sorry they led to stupid special cases and work-arounds for darcsden. Fortunately only amend and record have them.
01:57 bfrk But I will also think about a better API for programmatically overriding options. There is some code in Darcs.UI.Defaults that I think could be extended.
01:57 sm bfrk: great
01:57 sm when your cleanup lands, I'll make sure darcsden can adapt to it
01:58 bfrk cool, thanks. will try to get some sleep now...
01:58 sm night
01:58 bfrk left #darcs
02:52 mizu_no_oto joined #darcs
02:58 mizu_no_oto joined #darcs
05:59 ThomasLocke joined #darcs
05:59 ThomasLocke joined #darcs
08:13 Weltraumschaf joined #darcs
08:17 gal_bolle joined #darcs
09:01 siel joined #darcs
10:48 ThomasLocke What kind of aliases/shortcuts do you guys use with Darcs?
10:48 ThomasLocke If any...
11:02 sm ThomasLocke: alias darcsoneline="grep -E '^  (\*|tagged)'"
11:02 sm function dch() {
11:02 sm darcs changes $* | darcsoneline
11:02 sm } (etc.)
11:03 sm darcs push $* | darcsoneline, darcs pull $* | darcsoneline etc.
11:03 sm alias darcs-to-git='git init && darcs tag to-git && darcs convert export | git fast-import && deunderscore-git-tags && git reset'
11:03 sm alias deunderscore-git-tags='echo renaming git tags...; git tag | grep _ > t; for t in `cat t`; do git tag `echo $t | sed -e s/_/./g` $t; git tag -d $t; done'
11:04 sm function darcsremv()\n{\n    mv "$2" "$1" && darcs mv "$1" "$2"\n}  # tell darcs about a file rename you just did
11:22 mizu_no_oto joined #darcs
11:35 diskie joined #darcs
12:12 leg joined #darcs
14:08 Cthulhux hmm
14:08 Cthulhux hub.darcs.net says: "push your code via darcs push <user>@hub.darcs.net:irssi-botscripts to get started"
14:08 Cthulhux doing so gives me "not a repository"
14:08 Cthulhux ok
14:08 Cthulhux :<
15:00 sm hi Cthulhux. Does the "How do I configure ssh access" answer help
15:00 tg joined #darcs
15:04 Cthulhux which answer? :S
15:07 Cthulhux ah, on the site..
15:07 * Cthulhux tries
15:12 Cthulhux sm: thank you, that worked. :-) it still had my default github key but i didn't configure it on my machine
15:12 Cthulhux \o/ my first push
15:19 sm Cthulhux: great
17:07 Riastradh joined #darcs
18:43 Riastradh joined #darcs
19:38 ggherdov` joined #darcs
20:36 Weltraumschaf joined #darcs

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