Perl 6 - the future is here, just unevenly distributed

IRC log for #darcs, 2014-07-16

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

All times shown according to UTC.

Time Nick Message
00:52 mizu_no_oto joined #darcs
01:27 lambdabot joined #darcs
01:48 ilbot3 joined #darcs
01:48 Topic for #darcs is now http://darcs.net/ | logs: http://irclog.perlgeek.de/darcs/ | darcs 2.8.4 is out http://darcs.net/Releases/2.8
01:56 mizu_no_oto joined #darcs
06:27 lelit joined #darcs
08:17 gh__ joined #darcs
09:34 mdiaz joined #darcs
09:35 mdiaz hi
09:41 gh__ hi
10:09 mdiaz_ joined #darcs
11:09 mizu_no_oto joined #darcs
11:29 mdiaz joined #darcs
12:23 mdiaz joined #darcs
13:28 mdiaz joined #darcs
13:34 mizu_no_oto joined #darcs
13:36 mdiaz_ joined #darcs
14:14 mizu_no_oto joined #darcs
14:30 mdiaz__ joined #darcs
14:48 vikraman joined #darcs
14:48 vikraman joined #darcs
15:34 dolio joined #darcs
15:39 edwardk joined #darcs
16:26 mdiaz joined #darcs
17:03 diginet joined #darcs
17:30 edwardk joined #darcs
18:04 Rastus_Vernon joined #darcs
18:23 stepkut joined #darcs
18:27 alexei joined #darcs
18:45 edwardk joined #darcs
19:13 edwardk joined #darcs
19:27 edwardk joined #darcs
19:32 alexei joined #darcs
19:59 * Heffalump appears
20:02 mdiaz Hi Heffalump
20:04 Heffalump hi. How are things going?
20:05 mdiaz Good, I already sent the patch of garbage collection for the global cache.
20:05 mdiaz Can we talk a little about 'darcs undo'?
20:06 Heffalump sure
20:09 mdiaz I don't know if I understood correctly what I should do.
20:10 mdiaz I must save the state of the repository, right?
20:10 Heffalump some representation of it, yes
20:11 mdiaz I should be able to do undo to any state of the repository?
20:11 mdiaz Or only to the previous state?
20:12 Heffalump I think most undo implementations provide multiple levels of undo, but generally not infinite
20:12 Heffalump I'd definitely expect that a gc of the repo would stop undo working to before the gc
20:13 Heffalump but generally it'll be a trade-off between implementation cost and functionality, so we should explore the options
20:13 Heffalump have you looked at how "git reflog" works? I think that may be the closest analogue.
20:14 mdiaz Today I learned that it exists :).
20:16 Heffalump so how might we store the previous state?
20:18 mdiaz We need to keep track of the first inventory file and the first pristine file, right?
20:19 Heffalump doesn't the inventory file refer to the pristine file?
20:20 mdiaz Ok, just the inventory file.
20:20 mdiaz Something else?
20:20 Heffalump yeah, I think that's all we'd need
20:23 mdiaz Then  'darcs undo' only change  _darcs/hashed_inventory?
20:24 mdiaz What about tentative_pristine?
20:24 mdiaz and other files..
20:25 Heffalump I think tentative_pristine is only used transiently during a single commands execution
20:25 Heffalump but unrevert and pending are more of an issue
20:26 Heffalump would we expect to be able to restore changes to the working dir following e.g. darcs pull causing a merge with unrecorded local changes?
20:27 mdiaz Git can do that, right?
20:30 mdiaz It seems that the original intention of the command is not to undo commands that modify the local copy.
20:33 mdiaz_ joined #darcs
20:35 Heffalump ok
20:35 Heffalump I think that's certainly a good starting point at the very least - no point in trying to do too much at once
20:36 Heffalump how about starting by saving hashed_inventory then, and see how that goes?
20:37 mdiaz_ Ok
20:41 Heffalump I'll try to do a first review of your patch tonight. Perhaps you could come up with a more detailed outline of how darcs undo might work and email it to the list?
20:41 mdiaz_ ok
20:42 Heffalump and...blog?
20:45 mdiaz_ I was waiting to finish my patch of garbage collection for the global cache. My previous post was about bucketed cache.
20:48 Heffalump You did say you'd post one last week :-) You can also post about work-in-progress things.
20:53 mdiaz_ I think two post for the global cache is too much.
20:55 Heffalump blog posts are also about letting everyone know you're making progress and what's proving difficult. Future people looking at the code may find them informative, for example.
21:13 sm +1, they also increase community interest and the likelihood of getting help
21:24 alexei joined #darcs
22:39 mizu_no_oto joined #darcs
23:14 edwardk joined #darcs

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