[00:00] I think it would be an incompatible change, or at least a whole lot of shoe-horning to get optimal gc => gc via get_record_stream. [00:02] lifeless: I guess I've felt like you've been optimizing the knit => gc case, rather than the gc => gc case. And the former is transient until everyone has upgraded, while the latter is an on-going issue. [00:06] jam: I've been hammering on the interface that is used [00:07] we need gc->gc to work when the source is actually a RemoteRepository [00:07] lifeless: I suppose I also haven't seen any visibility of your work. I don't know if you just aren't committing, or if you aren't sending emails [00:08] Certainly I don't see a public URL to get your latest code. [00:08] ~lifeless/+junk/bzr-groupcompress on launchpad [00:08] and my btree-graphindex bzr branch [00:09] which has outstanding uncommitted work, because I need to fix this api [00:09] I haven't been able to spend time on the core code for a couple weeks now [00:10] helping with 1.6 stuff, analysing nasty bugs, and thinking about the interface problems [00:11] so I think you're seeing 'robert has not been working on this' [00:11] rather than 'robert has been obsessing about knit->gc' [00:14] mwhudson, have any idea how/where I can upload the 1.6 tarball in LP? https://edge.launchpad.net/loggerhead/+download isn't very helpful [00:15] beuno: i think maybe you go to the release page [00:15] beuno: which you perhaps need to create [00:16] mwhudson, ah, I see. Ok, I have to go now, but I'll release 1.6 with NEWS, announcements, etc when I come back (or tomorrow morning), unless you can think of something else we're missing [00:17] jam: before you go, what I need to understand is if you think a hint is _wrong_ or just premature [00:18] jam: if you think its wrong I'll head back to drawing boards, if you think its premature I'll accept we have a different order on the same TODO list [00:18] beuno: awesome === mw is now known as mw|out [03:45] lifeless: just premature, not wrong, I thought I made that somewhat clear. [03:45] sorry about th delay [03:45] jam: it was getting pretty angsty, I wanted to be sure [03:45] no worries about the delay; life does come first :) [03:54] jam: do you have an opinion on lexer and cc toolchain? [03:55] jam: I'm currently trying antlr3 [03:55] lifeless: I do not [04:03] lifeless: what are you trying to parse? [04:04] dirstate [04:04] initially that is [04:04] seems a bit overboard, but if you feel it is merited [04:05] As far as one I came across a while ago: http://spirit.sourceforge.net/ [04:05] it is C++ using templates [04:05] to allow you to write EBNF, I guess [04:05] boost is a very nice advanced C++ library [04:05] not necessarily something you want to use in this context [04:16] yah [04:16] so if we do C++, I'd grab boost, its nice [04:17] Honkin' big. [04:17] but I think plain C is probably best at this point [04:19] lifeless: sure, the initial docs for antlr only describe java and c++ output [04:19] * spiv doesn't like Fridays. [04:19] though it seems they have since implemented several output languages [04:21] http://www.antlr.org/api/C/ [04:21] spiv: heh [04:25] if you had to categorize bzr commands, how would you? [04:25] transfer, edit, info? [04:27] Huh, importing paste is either taking 0.0037 seconds, or 9.5. That makes starting Loggerhead a little slow... [04:27] Peng_: that seems like a bit of variation. [04:28] Yeah. Do we get to pick which it is? 8-} [04:28] lifeless: yeah, the problem is that on the download page, they say you can use the binaries for C++, C# or python, when they really mean C... [04:30] I will also say I have a hard time finding online examples [04:34] Peng_: out of cache? === abadger19991 is now known as abadger1999 [04:39] lifeless: Yeah, probably. [04:41] it's not like paste does all that much when you import it [04:41] mwhudson: 'python' [04:42] yeah yeah [04:44] python, yeah yeah yeah, python, yeah yeah yeah [04:44] so I played with freeze [05:00] lifeless: in a packet trace, are you only interested in the few frames before and after the error? [05:01] markh: I'm not interested in them at all; I want you to look at it ;) [05:01] heh :) [05:01] markh: we're looking for retransmissions, tcp errors etc [05:02] Ideally, you'd probably want at least the last few packets before it goes off in the weeds. [05:02] and to see what happens after [05:02] if it gives up I think it will send a FIN [05:03] RST more likely [05:03] fullermd: yeah mea culpa [05:03] EMEMORY [05:03] Of course, it IS Windows; so it might send just about anything ;) [05:10] jam: whats up with NEWS [05:11] jam: we seem to be jumping around with sections, I thought we had a fixed set these days ? [05:12] lifeless: I see the same ones IN DEVELOPMENT as elsewhere, what would you have expected? [05:13] lifeless: there has been some motion because of things that were in dev that got merged into a release candidate. [05:13] I tried to keep them in the same sort order, though. [05:13] I only ask because I'm running into conflict-after conflict :P [05:13] jam: also, did you know that buffer() is a zero-copy tool ? [05:13] lifeless: Is that because we started a new IN DEVELOPMENT? [05:14] lifeless: yes, but buffer() doesn't make the code more obvious, etc. [05:14] jam: As we work on memory, I expect we'll want more of it [05:17] I'm not very familar with debugging network traces. The last packet I see before the timeout is from launchpad and apparently carrying http payload. The first I see after the timeout is also from launchpad, with the TCP "F" flag set, which apparently means "end of data". [05:18] I'm using a windows network tool and I'm not sure how to export the data in any meaningful way [05:18] Well, F would be FIN, which means it's shutting down the connection in an orderly fashion ("Done", rather than RST which means more like "broken, WTF?!?") [05:19] You don't see any packets from you in the middle, though? [05:19] right [05:19] nope - I'm filtering by "source=launchpads ip or dest == launchpads ip" [05:19] I don't see how it could FIN unless it had at least seen your ACK of that last packet... [05:19] does the sequence number match ? [05:20] fullermd: I think you can FIN on shutdown() regardless of ack-state [05:20] so [05:20] * fullermd reached for Stevens. [05:20] I think we should check what the apache front-end has its timeout set to [05:20] * lifeless bets 15 minutes [05:21] spm: ping [05:21] lifeless: pong [05:21] Assuming your ACK did get through, then yeah, it sounds like HTTP keepalive. LP sent all its data, and considers that you've gotten it, and after 15 minutes of no activity, decides you're gone and closes the session. [05:21] spm: whats the persistent connection timeout configured on bazaar.launchpad.net [05:21] 15 minute keepalive timeout sounds insanely long, though. [05:21] fullermd: not really [05:21] what pastbin do you guys use? [05:21] pastebin [05:22] markh: any that works [05:23] http://pastebin.com/m6aed84b0 - but no column headers :( 2nd col is "packet number", 3rd is "time offset", "eden" is my pc [05:23] spm: we have a situation where we are seeing some http data sent to a bzr session [05:23] spm: then nothing for 15 minutes [05:23] spm: then a FIN [05:23] lifeless: hmm. not good. [05:23] spm: working theory is that packets are going AWOL [05:24] spm: and then apache is timing out the socket gracefully [05:24] spm: finding out the configured timeont on b.l.n will help [05:24] lifeless: sounds reasonable... [05:25] lifeless: sure. just getting... [05:25] if its different we can look at other things [05:25] if its not configured, it willbe the default [05:26] lifeless: looks to be default [05:26] spm: thanks [05:27] Default:KeepAliveTimeout 15 [05:27] Syntax:KeepAliveTimeout seconds [05:27] It's 5 here. But either way, it's a long cry from 15 minutes. [05:27] * lamont mutters about &%)^%^*_ tar.gz packaging of bzr snapshots, again [05:27] KeepAlive is different [05:27] isn't it? [05:27] 1) orig.tar.gz without debian/; 2) drop debian/.bzr from the source package [05:27] KeepAlive is boolean [05:27] a timeout though [05:28] lamont: i'm sure you should be asleep [05:28] lamont: bzr itself? [05:28] if it has the connection open, that is how long before it will close it even if the client doesnt IIUC [05:28] lamont: you have confused me [05:28] markh: No, KeepAlive is just a flag for whether or not persistent connections are allowed. [05:28] lifeless: see lauchpad.net/~ppa-bzr-beta/ [05:28] ]+archiuve [05:28] yes - [05:28] markh: KeepAliveTimeout is the time after which it closes even if the client doesn't. [05:28] and if it is used and the connection remains open, the server has a timeout [05:28] lamont: bzr upstream does not have debian in it [05:29] lamont: but the packaging rules are a bzr branch [05:29] the package in the ppa doesn't _HAVE_ an upstream tarball [05:29] fullermd: yeah, I think that is what I'm saying :) [05:29] which is a different timeout than we are looking for? [05:29] lifeless: which, specifically, is my complaint [05:29] lamont: uploaded as a native package? [05:29] yes [05:29] (I don't think there IS a timeout for max length of a persistent session, short of MaxKeepAliveRequests * (KeepAliveTimeout * .9999999) [05:29] OTOH, at least 1.6rc2 has dapper source for me :-) [05:29] lamont: file a bug [05:29] lamont: the folk doing these uploads are not DD's [05:30] yeah [05:30] I'll do it once I'm awake again, as mwhudson so aptly points out [05:30] and on that note, bed. [05:31] still [05:31] 1/60th of the time out is still damn suspicious [05:32] hi, how do i make a minor edit in an already commited revision, without another commit? [05:33] bvk: uncommit [05:34] Anyway. I'm pretty certain a FIN won't be set if there's outstanding un-ACK'd data, no matter what. shutdown(2) will send the queued data and wait for it to be ACK'd before doing it's half-close. [05:35] AfC: thanks, i will try it out [05:35] bvk: (followed by a new commit, of course) [05:36] bvk: (assuming, a) that you are trying to fix the most recent revision, and b) that you haven't sent it anywhere public) [05:38] AfC: it seems, i cannot go down more than a recent commit and make a fix :-( [05:39] Barring really heroic and unportable measures, I don't think there's any way for userland to 'take back' send(2)'t data; once it goes down there, TCP will reset the connection without any more intervention if it can't get through... [05:40] markh: just been looking at that network trace pastebin. those first two packets (4188/89) appear to be identical? Which seems a tad broken. [05:40] AfC: say, i have revisions 1,2 and want to make a minor edit in 1 (but not in 2) revision 2 also needs to be uncommitted [05:41] shall I go back a few packets? [05:41] bvk: yes, which is why you should just be making a fix and committing revision 3. [05:42] AfC: is there anything like mercurial patch queues? where i can do hg qpop; hg qpop; edit; hg qrefresh; hg qpush; hg qpush ? [05:42] markh: yeah... something just seems really odd... I'd expect to see more "stuff" happening. retries whatever. [05:42] markh: If you can use something like Wireshark, you can do things like show a trace of the HTTP session, which could be helpful in seeing if it really is "all there". [05:42] those 2 packets look identical here too [05:44] Mmm. That trace looks all sorts of messy... [05:44] bvk: there is the 'loom' plugin [05:44] http://pastebin.com/m78da686f has from the GET request [05:44] I'll look into wireshark... [05:45] Look at those 4th and 5th lines again. [05:45] First, the 4th line is launchpack ACK'ing your packet in the 5th line. So the order is messed up. [05:45] And secondly, those are from a different session than the first 2 lines (can't tell about the 3rd); the local port is different. [05:46] mwhudson: i tried loom plugin, but i couldn't get that how to do it right :-( loom doesn't have anything equivalent to hg qrefresh :( [05:47] mwhudson: i still need to make a commit for minor fixes and it is recorded as another revision [05:47] i don't know what qrefresh does, so can't really answer that :) [05:48] mwhudson: its what commit in aloom thread does [05:48] bvk: in loom you just do a commit on that thread [05:48] mwhudson: qrefresh updates the current working patch (in a queue of patches). one patch acts like one revision, so multiple qrefreshes on a single patch will not result in multiple revisions [05:49] I think only one bzr was running in that trace - I was being careful to wait while the 15 minutes expires and not doo anything else with bzr [05:49] I'll see how I go with wireshard [05:49] k [05:50] bvk: looms map revisions into a stack rather than replacing revisions [05:50] bvk: the stack has the delta each revision needs when submitted upstream [05:51] But yeah, that FIN 15 minutes and 10 seconds later is from a different TCP session (local port 60013 instead of 60012), so it's no relation to the other packets. [05:52] That first connection apparently disappears totally after that line 7 packet. Which is absurd; you're running locally, you should be able to see your ACK of it no matter what, even if the other end doesn't. [05:52] lifeless: um...if i go down-thread, do some edits and did up-thread, will my top thread gets the edits merged? [05:52] so, we were looking at the wrong machine in the DC [05:52] bvk: yes, as a pending merge like normal bzr merges [05:53] bvk: diff -r thread: at any point shows you the overall pending diff [05:53] lifeless: so, i have to do one more commit in all up-threads from the point of edits? [05:54] fullermd: agreed - good catch on that. which also begs the "what is actually open" question... [05:54] bvk: yes, there are some plans to streamline this [05:54] lifeless: ok [05:54] (of course, it's an assumption that that HTTP data packet is part of the 60012 connection, since it doesn't show ports or sequence numbers or whatever on those packets, but I think it's a reasonably good one) [05:55] markh: might be worthwhile seeing how many, if any?, connections you have open to 91.189.90.161; netstat -an | fgrep 91.189.90.161 [05:56] lifeless: one more question, when i do a merge from up-thread, all its revisions are automatically logged in the commit message, can i avoid that with a simple merge notes? [05:56] none apparently :) I'm installing wireshark now [05:56] bvk: they are not logged in the commit message for me; why do you say they are ? [05:58] lifeless: i saw all revisions logged with some indentation :-( [05:58] fullermd: yeah, the timing is too tight. but still ... coincidence is possible. :-) [05:58] bvk: thats display [05:58] bvk: try e.g. bzr log --short [05:59] copying commit messages around like that would be horrible duplication [06:00] I'm pretty clueless with this :( fullermd - any clues about the syntax for the wireshark filter I'd need? [06:00] or spm of course :) [06:00] "host 91.189.90.161 and port 80" should do it [06:01] (should show both directions) [06:01] markh: just grab the lot - post filtering with wireshark is a doddle. or ^^ :-) [06:01] it says thats a syntax error [06:01] * markh looks at help [06:03] lifeless: ok, short is not displaying them :-) [06:04] markh: are you applying that filter as you capture, or post capture? the eg fullermd gave is "as you capture"? The post capture filters are very different syntax. [06:05] um - in the toolbar "filter" box :) - haven't started capturing yet [06:05] Ah! :-) [06:05] No not that one. :-) [06:05] "start a new live capture" [06:06] ... or "capture options"; should then see a "capture filter" - put the filter in there. [06:09] The latter is what I always do (make sure you choose the right interface) [06:10] ok, running. Now to retry a few times until it fails... [06:18] a few "dupe ack" messages are flying by, but its still working... [06:19] ahh - here we go :) bb in 15 :) [06:22] markh: :-) Once you close the sniffing; go looking for the http GET request that timed out - it should be fairly obvious; select that line; right click; "Follow TCP Stream" - will filter packets to only that connection. [06:22] nice :) [06:23] I'd save it right off too; that way you have a copy around to work with. [06:43] fullermd/spm: so I've got a capture - but struggling to get a similar text format out for the selected packets. What's the best way for you to see the data? [06:43] upload a .scap somewhere? [06:44] markh: Well, you can try filtering down to just that session, then saving that out to a pcap file, and seeing how big that is. [06:44] markh: sure - works for me [06:44] bbs [06:44] If it's not huge, we can just grab that and poke at it. [06:44] (or if the whole capture isn't too huge, that would work too, with less effort) [06:48] fullermd/spm: http://starship.python.net/crew/mhammond/bzr-hang-2.zip (151,340 bytes) - it should be from the most recent GET (a few seconds and many packets before the hang), and a dozen or so packets after. [06:57] OK, that's a lot of dupe ACK's in a bunch there. Couple times. Weird. [06:57] * markh doesn't know what happened to his isp then. [06:59] Lot of partial packets there; your MTU is higher than somewhere along the path, which is causing a lot of fragmentation. [06:59] That shouldn't break anything, but certainly exposes more edges. And probably messes with your performance a bit. [06:59] quite possibly my very old dsl modem [07:00] If we go to packet 687, which is the last one before the pause, right-click and 'Follow TCP Stream' gives a text dump of the session. [07:00] There's two things to note. [07:00] The first, is that looking at the very end, it's obviously in the middle of a line, which confirms that you're not actually getting all the expected data. [07:01] The second, is that there IS a proxy; see the HTTP response header: [07:01] Via: 1.0 proxy3.mel.dft.com.au:80 (squid/2.6.STABLE18) [07:02] yeah, my isp I believe [07:03] So, that's suspicious. HTTP breakage unrelated to proxies happens, but not near as often as related. [07:04] lifeless may know more as to whether there's something particular about that version that might be tripped us up. [07:05] australian ISP's as a rule have an intercepting squid [07:05] squid had a known, serious bug with range requests [07:05] heh - well there you go :) [07:05] in that version? [07:07] yes [07:07] .19 fixes it [07:07] but they should 2.7 or 3 anyhow [07:07] http://www.squid-cache.org/Versions/v2/2.6/changesets/11996.patch [07:07] bugger - here goes another support request that will end up in the same bucket my request for them to upgrade their SpamAssassin did :( [07:08] also [07:08] http://www.squid-cache.org/bugs/show_bug.cgi?id=2329 [07:08] www.squid-cache.org bug 2329 in src "Range header is ignored for TCP_HIT" [Normal,Resolved: duplicate] [07:08] which is fixed in .20 [07:09] (actually, I could be full of crap on my first point above; I guess the range could just end right in the middle of that line) [07:09] fullermd: single ranges can, multi ranges will be multipart wrapped [07:09] Australian ISPs run proxies? Ew. [07:10] It's multi-part wrapped. 2 ranges. [07:10] fullermd: so cutting off part way == incomplete [07:10] I forgot that it was ranged, so I assumed it would have a full index, which wouldn't fail in middle of the line. [07:10] The range is a little weird, though... [07:10] Range: bytes=33100-123726,124238-190665 [07:10] thats GraphIndex [07:10] We really care about saving 500 bytes in the middle, when we're pulling >150k? :p [07:10] no [07:11] we want a few hundred bytes from 150000+ [07:11] and its remote so we expand it to 64K [07:11] we also want some bytes from a couple of lower spots, apparently [07:12] Yeah, it just seems weird to me that they expand to those blocks, but don't just collapse it into a single range. [07:12] that squid bug appears to only happen for cached content? [07:12] * fullermd does a quickie test of the range [07:13] markh: the second bug yes [07:13] markh: but note that the first bug will cause the second to show [07:18] Oh, I see what you mean. I missed that it was lacking the MIME boundary marker. [07:18] So I was right, for the wrong reason 8-} [07:20] markh: I'm not convinced squid is the root cause thouh [07:21] markh: you are seeing anomalous behaviour [07:21] Yeah. There's enough weirdness in there to go around. [07:22] a quick question: is bzr-fastimport format identical to git-fastimport format? [07:22] All the dupe ACK's, in several clusters through the trace, are locally generated, rapid-fire. [07:22] xshelf: bzr-fastimport read git-fastexport if thats what you're asking [07:22] That may or may not be related to the near-total fragmentation. [07:23] I think there's some SACKtion going on, but I don't know SACK well enough to say much about it without a lot more digging than I have time for tonite :| [07:23] lifeless: i was looking at reusing git-p4 for bzr [07:24] xshelf: yes, I believe someone is working on that [07:24] there is stuff on the list about this [07:24] lifeless: i read it in the list, let me followup with that person [07:46] lifeless: hi. [07:46] jml: bzr+http? :D [07:46] Peng_: working on it! [07:47] Cool. [07:56] jml: hi [07:56] lifeless: so, tomorrow. [07:56] lifeless: we're missing a *time* [07:57] and a place [07:57] I've been trying to grab Lynne, no luck [07:57] lifeless: Kensington is the place [07:57] details details details; how do I get there? [08:03] markh: is there mtrr for windows? [08:23] no idea! [08:24] I see rio.py has: if isinstance(value, str):\n value = unicode(value) - that is always going to be suspect isn't it? If the string is utf8 or anything else that's non-ascii, we are doomed [08:25] some russian dude is hitting it in 1.5, and it looks like he still might in 1.6 [08:27] http://beerpla.net/2008/05/12/a-better-diff-or-what-to-do-when-gnu-diff-runs-out-of-memory-diff-memory-exhausted/ [08:28] agreed [08:28] is there a bug? [08:31] https://bugs.launchpad.net/bzr/+bug/256550 [08:31] Launchpad bug 256550 in bzr "locking fails with non-ascii characters in host/username/something (russian Vista)" [High,Triaged] [08:31] yep [08:31] oops :) [08:31] * markh answered the bot :) [08:32] the problem is not rio, the problem is using non-ascii bytestrings for hostnames [08:32] one path I can see is _auto_user_id() calls socket.gethostname(), which returns a string and may be non-ascii in that case [08:32] yes :) [08:32] personally I'd just decode is using the user's locale [08:33] on windows the encoding would be 'mbcs' (which is also filesystemencoding) - but yeah [08:33] hard path to test - monkeypatching maybe? [08:33] no, that's the filesystem encoding [08:33] it would be cp-something [08:34] windows is likely to return a string that went via WideCharToMBCS (or however it is spelt), in which case "mbcs" would be the appropriate encoding to use IIUC [08:35] the same value directly from the api via unicode would also be an option [08:37] win32api.GetComputerNameEx(0) returns unicode :) [08:39] but - rio is still potentially broken in the future. ISTM it should probably throw an exception for a string [08:39] as even a utf8 string would blow it up today [08:39] well, is does, UnicodeDecodeError :) [08:39] :) but only when it actually contains non-ascii [08:40] it should raise an exception *every* time it gets a string, as it means one day a Unicode error will happen that is hard to reproduce :) [08:41] yeah, I suspect that would break a lot of bzrlib code [08:41] well, it could be argued that code is already broken for some users [08:41] true [08:52] beer-oclock! [09:06] rio probably wants to be asserting on bytestrings rather than decoding [09:21] Hmm [09:21] Will bzr have something like this: http://www.gnome.org/~federico/news-2008-08.html#12 and http://treitter.livejournal.com/7769.html ? [09:21] interactive rebasing/stacking patches [09:23] * AfC writes uws a shell script [09:23] :) [09:25] AfC: Eh, how would that work? [09:25] AfC: This is about merging multiple commits into one [09:25] so that the history is cleaner when merging into mainline [09:25] [Ok, switching back to reality: I know a goodly number of people around here respect (and in some cases, including my own, absolutely worship) the UI that was presented by Darcs. Nothing to do with patch commutation vs tree snapshot issues; but the console UI was bloody brilliant in its interactiveness and consistency] [09:27] uws: well, given that rebase is ultimately just a wrapper around `bzr merge -r X..Y ../theirs` (for X not in mine) [09:27] uws: it's eminently scriptable [09:27] uws: yes [09:28] uws: there is a bug open on rebase -i [09:28] (ok, so rebase has nice logic for moving forward and backwards / continuing as conflicts arise) [09:28] uws: it has somethoughts on how to make it happen [09:28] lifeless: will that also make it possible to "collapse" multiple commits into one? E.g. a real patch + 2 subsequent typo fixes [09:28] uws: sure [09:29] uws: I mean, its basically uncommit -r -3; commit [09:29] uws: and then rebase replay after that [09:30] uws: note that there is a way to do all that rebase does in terms of presenting things without sacrificing history; for the case where you need to evolve a patch-branch rather than simply fake up work done [09:31] lifeless: ...which is? [09:32] * AfC guesses Robert's loom concept [09:33] Something that helps merging stuff into a branch chunks would also do the job right? [09:33] so that if history is like this: [09:34] add-feature-1, fix-typo, fix-typo [09:34] add-feature-2, fix-typo, fix-another-typo [09:34] i.e. 6 commits [09:34] that you can create a branch (preferably in place) that is like this: [09:34] add-feature-1 (add-feature-1, fix-typo, fix-typo), add-feature-2 (add-feature-2, fix-typo, fix-another-typo) [09:35] where the parenthesized commits are merged revisions [09:35] uws: this is going to sound silly, but why not just take a branch at point 0 [09:35] something like "bzr collapse -r 1:3" which will give you an editor with all commit message [09:36] so you can assemble a new commit messte from these [09:36] uws: then merge from feature-1+fix-typo+fix-typo, [09:36] uws: then merge from feature-3+fix-typo [09:36] AfC: Yeah, that's the same net effect. [09:36] you'll end up with two left hand side revisions (merges, as it happens) that you can write up to your heart's content. [09:36] but it's cumbersome [09:36] More cumbersome that screwing around with rebase and history erasure? [09:37] No, what I described a few lines back doesn't change history, does it? [09:37] it just "groups" a few revisions into a merge, and then does the same again [09:37] so that a "bzr log" will list only the 2 groups at the top levle [09:37] [as an aside, I have a slightly different problem, which is that the left hand edge merges are NOT what are significant in our project, and I'm getting rather tired of writing the same detailed log message again and again as features get merged up] [09:38] uws: {shrug} [09:38] uws: that is exactly how Bazaar operates today [09:38] uws: so I guess I'm a bit vague on which part you consider cumbersom [09:38] e* [09:38] AfC: Well, I branch a project [09:38] (one possible point that's missing: you can do a merge even if there is no divergence) [09:38] (instead of pulling) [09:39] AfC: then I start hacking [09:39] commit new feature, fix a syntax error [09:39] yup [09:39] but when my work goes back into mainline I don't want the typo fix to show up so prominently [09:40] I want to present my branch as a few self-contained revisions (which may be merge revisions containing also the tiny typo fixes) [09:40] right now it seems I can only do this with a 2nd personal "helper" branch in which I merge selectively [09:40] uws: well, you either cherrypick, thereby losing that history completely, or you merge it, and hope that most people don't pay much attention to non-left-hand-edge revisions. (`bzr log` is so biased; `bzr viz` is not) [09:41] I don't like cherrypicking that much (for the reasons you stated) [09:42] uws: is the source branch a [bzr-svn] checkout in this case? [09:42] if it is not, [09:42] then it's already capable of being the staging area for you to create the merges that are "cleaner" [09:42] if it is, then really you need a temporary 2nd branch to do the work in before bringing it back to the checkout [09:43] * AfC is ignoring the --local capabilities, which he doesn't know anything about unfortunately [09:43] AfC: Yes it is [09:43] I thought so [09:43] In that case, look at it this way [09:43] AfC: --local is just committing without having stuff in the bound branch [09:44] the bzr-svn branch [checkout == slaved to upstream] really wants to be kept pristine as a copy of upstream [09:44] next non-local commit will just push the whole bunch on top of the bound branch [09:44] well there you go [09:44] AfC: I have a trunk branch, which I don't hack on (it doesn't have a workign tree) [09:44] then I have my own branch [09:44] I keep trunk/ up to date [09:45] and then merge trunk into my own branch [09:45] uws: anyway, if this is an upstream like, say, GTK where commit permission is only grudgingly granted after long discussions, then you'll need not just somewhere else to stage your patches, but a whole bunch of somewhere elses to stage each feature. [09:45] AfC: in this particular case it's a read only bzr-svn checkout/branch [09:45] uws: yup, it all sounds sane [09:46] branched over http:// [09:46] uws: so I guess I'm confused as to why you feel uncomfortable doing the merges of N revisions at a time into your own [writable] copy of trunk vs the place where you are working [09:47] uws: let me try a different tack on this: [09:47] AfC: My trunk/ access is RO [09:47] uws: a place to do merges is a good idea [09:48] [I'm talking here not ex-cathedra as a Bazaar hacker, because I am not one; but having been leaning on Bazaar fairly heavily for almost 2 years now (as you know) some patterns have seemed to serve me well] [09:49] uws: (if I might suggest, the three branches could be named [09:50] uws: 'upstream' (that's the bzr-svn RO checkout), 'trunk' (RW bzr branch which you keep in sync by pulling regularly from ;upstream') and 'working' (or otherwise feature named branches, RW bzr) [09:50] uws: and you'd do your merge work in 'trunk') [09:50] {shrug} something like that [09:50] AfC: Yeah, I'm not a bzr hacker either. Just a regular user. I shove bzr up my colleague's throats as well [09:51] so I'd better know what/how because they ask me all the time ;) [09:51] AfC: But once I merged my feature into 'trunk' [09:51] I won't be able to 'pull' upstream anymore. Just merge [09:52] Eventually the goals is that my local patches end up upstream after review/chagnes [09:52] uws: (or, 'trunk' [bzr-svn], 'working', and feature-braches^N) [09:52] uws: realistically, aren't you maybe overthinking this a bit? You're going to be doing [09:53] $ bzr diff -r ancestor:../trunk [09:53] all the time to extract diffs to show people [09:53] and it's not until a patch is accepted that you can go and merge to a RW checkout of trunk - and that merge sums up the other stuff, no? [09:55] * AfC thinks uws is going to need a whole plethora of branches each containing a feature. They will be individually diffed against 'trunk' for review, but also will be fairly constantly merged into 'working' which is the branch with a WT which is where you are actually hacking. [09:56] AfC: All needing lots of disk space :( [09:56] uws: shared repo? [09:56] I have found myself doing this; except that since I'm doing the creative work in 'working', creating little branches for individual featurettes which may be mergeable means manually copying the changes over to the little branches, creating revisions there, and then merging back to 'working'. Messy, but at least I'm not cherry picking [09:57] gour: of course, but still lots of disk space [09:57] use treesless shared repository and a single checkout [09:57] uws: the branches storing the individual features as they grow don't need Working Trees [09:57] hmmm. idea: have branches without working trees, and have one checkout which I can "bzr switch" to the feature I'm working on [09:57] uws: branches themselves are negligible in size. [09:58] AfC: But the working tree is HUGE in this case [09:58] uws: that is essentially how I work [09:58] AfC: it's like ~600M [09:58] uws: that's fine. You only need one (maybe 2 if bzr-svn needs a Working Tree) [09:58] and > 50k files [09:58] uws: yes, that's fine. [09:58] AfC: (it doesn't) [09:58] uws: bzr switch should handle it no problem [09:58] oh, for reference: we're talking about Webkit here btw [09:59] uws: I suspect that reality is that you're going to need 2 Working Trees, then - one for hacking in, and one for doing patch prep & merging [10:00] the later would be the thing you're switching around. [10:00] Well, I've said enough. I look forward to hearing how it works out for you. [10:01] [600 MB? What on earth have they got in there?] [10:01] AfC: millions of tests [10:02] AfC: Like >300MB of them [10:04] uws: yes looms are the [partial] implementation of 'edit and manage with history and collaboration] [10:05] what's missing? [10:05] lifeless: not sure what you mean, gobject code dont get that heavy on memory io. [10:06] gour: polish [10:06] gour: helper routines [10:06] lifeless: the objects are allocated by a slice allocator [10:06] gour: and, in the core of bzr, seriously cherrypicking [equivalent to darcs] [10:06] robtaylor: so are python objects, but every ref and deref is a memory write [10:06] robtaylor: its intrinsic to ref counted systems [10:07] lifeless: uhhu [10:07] lifeless: gstreamer has refcounted objects.. [10:07] lifeless: i don;t think its something to worry about [10:08] lifeless: i thought python keeps a live count for objects anyhow? [10:08] lifeless: will something of the above happen in 1.7 time frame? [10:09] gour: if someone sends in patches :) [10:10] robtaylor: I will bet you significant amounts that gstreamer has refcounted external objects, not every internal detail [10:10] lifeless: GstMiniObject is used for everything [10:10] lifeless: refcounting happens all along the pipeline [10:11] yes, but thats still very coarse AIUI [10:11] the objects I am working with are 10's of bytes long [10:11] with millions in even only moderately large trees [10:11] lifeless: oh, something like that you just do with structs and slices [10:12] lifeless: you only need refcounting if your dealing with complex lifetimes [10:12] right, this is kindof my point :) [10:12] ok :) [10:12] How come you're so interested in GObject this week? [10:13] lifeless: ooi do you always know the size of the objects? [10:16] robtaylor: for some yes [10:16] robtaylor: something taseful will arise, I'm sure [10:16] AfC: I think a better question, is, what is robert writing [10:17] Which Robert :) [10:17] evil twisted things that shut not be spoken about [10:17] Yes [10:17] should* [10:17] AfC: Yes [10:17] ever [10:17] [note that I didn't direct the question in any particular direction :)] [10:18] That's ok. There's no way you have a monopoly on crazy ideas. I've got an R&D project going to examine what would happen if we let the Java VM manage GObject life cycles instead of letting GObject's Ref and ToggleRefs do it. [10:19] (so discussion about sizes, access patterns, and what the slab allocator is up to this month are of passing interest) [10:19] ahha! [10:20] so I'm writing another C extension [10:20] somewhat larger than our current ones [10:20] and I want to use low level C diagnostic tools [10:20] so I want no python VM [10:20] lifeless: (that's what I vaguely suspected) [10:22] AfC: that crazy R+D project sounds pretty interesting =) [10:22] * AfC imagines Robert will have more luck that him :) [10:22] robtaylor: well, it's a couple things [and I am only disucussing something so OT here in so far as it seems conceptually similar to Robert's experiments] [10:23] well, I have antlr3 running now [10:23] robtaylor: we have the whole ToggleRef thing in place to manage the relationship between our Java Proxy objects and the underlying GObjects. But it gets complicated; [10:24] and it's not as effective as I would like, because there is too much lock-step going on between the two sides. [10:24] It *works* (there are zero leaks) [10:24] [ok, famous last words. We're pretty good, though] [10:24] how does gintrospect fit into your bindings? [10:26] But I have encountered situations where not everything is cleaned up at once. The last Ref to a GObject is our ToggleRef; our Java object becomes only weakly reachable and so next GC, ta-da, we drop the ToggleRef and the GObject finalizes. [10:26] That's all good [10:26] The trouble comes that when it's not something violent like a 'delete-event', (where violent is code paths in GTK that go above and beyond about breaking references) [10:27] then it's only now that some of the child Widgets drop down to being us owning the last ref. [10:27] which means that they won't get destroyed until the *next* GC cycle. [10:27] Bah! [10:28] lifeless: (short answer, not yet) [10:29] lifeless: (longer term answer, our code generator is nicely abstracted, so the .defs data feeding it can be replaced with introspection data when it comes available. But it needs to be fairly complete before we reach that point. When we're generating the C API for GNOME libraries off of that data, then I think we'll be set) [10:29] :) [10:30] robtaylor: so anyway, it occurred to me that this lockstep'edness was occurring because the Java VM doesn't have full information about the relationships. If it did, it could see the closed sets and pow them as a group [10:31] robtaylor: I rather expect that the cost of going across the JNI boundary to reach the Java VM's reference queues instead of using GObject's internal hash tables will be prohibitively expensive, but it's been an interesting exercise so far. [10:32] AfC: I'd be very interested in having a g_objcet_ref_with_association (object, owner) [10:32] AfC: i suspect the Vala people would too [10:32] what's that command to show current revno ? [10:32] robtaylor: everyone who is proxying would, I imagine [10:32] it's not printed in 'bzr help' [10:32] *nod* [10:32] strk: `bzr revno` [10:33] AfC: anyhw, the crack project we're working on in our free cycles is http://wizbit.org [10:33] does 'revno' checks revision on remote or local tree ? [10:33]

CRACK

[10:34] robtaylor: I should call you sometime and chat with you about that. It fits in nicely with some areas I'm working in [10:34] AfC: feel free :) [10:34] strk: so, being pedantic, it will tell you about the "branch" [10:34] strk: if you do `bzr revno` it'll tell you about this Branch (assuming you're in a Branch) [10:35] damn. I have two builds from two trees. both trees give same revno, but one works in a way, one doesn't [10:35] strk: if you do `bzr revno bzr://research.operationaldynamics.com/bzr/java-gnome/mainline/` it'll tell you about bzr://research.operationaldynamics.com/bzr/java-gnome/mainline/ [10:35] strk: revnos are only meaningful per branch [10:35] strk: because you can have multiple branches, revno's are only relevant to a brnach [10:36] strk: what you probably need to inspect are the revids (though, in human readable terms, the last few log entries should tell you what's what) [10:36] strk: if you want the uuid, 'bzr revision-info' is the right command to use. But I generally would use 'bzr missing' instead, because that tells me what commits are in each [10:36] strk: `bzr revision-info` [10:36] * AfC gets out of lifeless's way [10:37] matches as well [10:37] (revision-info) [10:37] Branches are up to date. [10:37] strk: if you `cd ONE` and do `bzr missing --line /path/to/TWO` you should be told what's different [10:38] still up to date [10:38] robtaylor: anyway, I'm trying to figure out if I can replace (override) the GObject Ref mechanism. That means hijacking g_object_ref and g_object_unref, and all the ways to do such a thing are nasty. [10:39] strk: silly question, but I assume `bzr diff` shows nothing in each one [10:40] strk: you have two separate working trees ? [10:40] right (no diff, two working trees) [10:40] robtaylor: hijacking GObject's memory allocation would be a second step. That's not just crack. That's ice. [10:40] And enough on that topic. [10:41] AfC: yeah, pain :/ [10:41] after 'bzr switch trunk', altought revision-info didn't change, 'make' is doing something [10:42] this is Bazaar (bzr) 1.6rc2 [10:42] is it supposed to touch files even if nothing changed ? [10:44] (it could) [10:45] strk: bzr revision-info changes for me [10:46] strk: no, it won't touch files if nothing has changed [10:46] strk: it will touch files if they *happen* to have the same content but appear changed to bzr [10:46] it seems a regression was introduced, so I was hoping to figure which revno worked and which not... unfortunately I had the same revno back from the two branches... that's how it all started [10:47] now it's hard to tell (we don't store revno in binary modules) [10:47] and bzr viz stopped working :/ [10:48] would switching to a specific revno require online access or my local branch is enough ? [10:50] bzr diff -r 9590 -r 9591 # didn't do what I expected, did it ? [10:50] diffs between two revisions [10:51] it seems it gave me diffs from 9590 to current [10:52] bzr diff -r 9590..9591 # did it, it seems [10:54] 'lo jelmer .. Curious to why you uploaded bzr-gtk to experimental? :) [10:55] I hope for me [10:55] bzr was to experimental (I guess, as I was prompted for upgrade) but since I upgraded, bzr viz stopped working === prateeksaxena is now known as prtk [13:13] * gour finds 'shelve' command useful... === kiko-afk is now known as kiko [13:31] shelve is awesome :) [13:34] right. it keeps my history more 'sane' considering i am coming from darcs world and nice interactive 'darcs record' [13:38] "record" would be even better than shelve though. [13:39] * gour agrees [13:40] * pickscrape doesn't know anything about record [13:42] pickscrape: http://www.darcs.net/manual/node8.html#SECTION00861000000000000000 [13:43] Ah, so it's interactive commit? [13:43] yep [13:44] ..if you want [13:44] That reminds me how I got by without the shelf when using svk: it has interactive commit too. [13:44] it would be nice to have it in bzr as well [13:48] The first interactive commit-like thing I used was bzr's shelve. When I found hg only had a record plugin, I was disappointed, and it took a while to get used to, but now I hate having to go to the trouble to use "bzr shelve". [13:48] They do have different uses, of course, and I have missed shelving in hg a couple times. === ahasenack is now known as ahasenack-flying [13:50] * gour uses shelve as poor-man's-interactive commit [14:01] Peng_: install bzr-interactive [14:04] Ooh [14:05] How does bzr-interactive work? Does it add a "record" command? Does it change "commit"? [14:05] I think it adds "record". [14:17] Peng_: also you might like to comment on my tree marks concepts [14:18] lifeless: What's that? [14:18] a concept I'm exploring [14:18] I started a thread about better review support [14:23] lifeless: Thanks for suggesting bzr-interactive. :) [14:32] where do I find information about bzr-interactive? I found the launchpad page but it's a bit bare. [14:33] quicksilver: The source code, I guess. Or "bzr help interactive" after installing it. [14:33] quicksilver: There's not much to say. It adds an -i option to commit. [14:34] It also adds a record-patch command. [14:35] I found the author's blog post. [14:35] I have feeling I might consider commit -i harmful. [14:35] After all if you commit -i and commit anything less than all hunks, that suggests that you haven't tested the version you ahve committed. [14:35] That sounds like bad practice? [14:36] Hmm, I suppose you're right. [14:36] Server does not understand Bazaar network protocol 3, reconnecting. (Upgrade the server to avoid this.) [14:36] quicksilver: now hook up -i code that takes the new tree and runs automated tests on that [14:36] ^^ Why do I get this with 1.5 and 1.6 client? [14:36] there's no newer version, is there? [14:36] uws: There is. [14:37] uws: 1.6 introduces a new network protocol. [14:37] I usually use interactive commits when working on non-code files, so testing is moot. [14:38] LarstiQ: indeed; but I think you take my point. [14:38] Peng_: Ok, didn't know that. [14:38] but 1.6 is not stable so I won't upgrade the server :) [14:39] uws: OK. :) [14:39] uws: You'll have to either downgrade your local bzr to 1.5 or live with that message and the second connection. === ahasenack-flying is now known as ahasenack [14:51] quicksilver: yes, I personally tend to agree, but there are ways to mitigate that risk. [15:30] LarstiQ, quicksilver: Personally I only make the test suite pass when i'm ready to merge into the next level, so I'm not particularly concerned about the test suite passing on *every* commit. [15:30] One of the nice things about having layered branches. [15:31] jam: right, I didn't mean the *entire* suite. Just test exercising codepaths you've touched. [15:31] even that may be too much, ah well. [15:37] LarstiQ: sure, it is just my new response for partial commits, commit -i, etc, etc. [15:38] I used to feel it was a bad deal, because you were committing something untested. [15:38] But as long as you test it at the time of merging it into the next level. [15:39] hmja. [15:39] jam: you're ahead of me in feeling comfortable about it :) [15:40] LarstiQ: I have come to realize that feature branches are a *better* way of creating that perfect merge patch [15:40] rather than trying to do it without committing [15:40] Especially when I'm exploring the space [15:40] I'll do snapshots of stuff that I know I'm going to delete [15:40] just to have something I can revert to if I decide. [15:43] jam, hi :) I haven't managed to get to the packaging yet, I will try to on the next few hours [15:48] LarstiQ: I would say the biggest benefit is in development *pace*. I can snapshot as I go, and not fret *too* much about something breaking until I need everything to work [15:49] If too much breaks at the end, I can go back via the snapshots to something earlier, and tweeze the changes out from there. [15:49] So I commit small changes often [15:49] and don't wait for the test suite to finish on all of them [15:49] Though thanks to vila, I *do* tend do run the subset of tests that might be effected [15:49] -s bzrlib.tests.test_foo is great [15:49] we just need to make it shorter :) [15:50] just - instead of -s? :) [15:50] LarstiQ: well, if we could just get it to read my mind instead [15:50] then it is just '' [15:51] I think my current favorite is aliases, so that BT == bzrlib.tests and BP == bzrlib.plugins === mw|out is now known as mw [15:52] It would be clever if it picked if you from your working directory (assuming your working directory is a test directory) [15:52] Damn, what happened to my English there? [15:56] * gour is installing bzr-interactive [15:56] vi [15:58] jam: a stat to see which files got recently changed? [16:01] LarstiQ: Interesting though I'm not sure if it would be perfect correlation [16:03] hmm, any idea what's wrong with http://rafb.net/p/6VdGNy88.html ? [16:05] gour: you logged in and so are pulling from a different URL into a checkout of the http url [16:05] why not just "bzr update" [16:06] (bzr pull will update both the local branch, and the branch it is bound to, but you are bound to an HTTP branch, and thus updating it fails) [16:06] I'm guessing you've logged in, because it isn't warning you [16:06] which means that it is pulling from bzr+ssh:///... [16:06] and thus doesn't know it is the same branch. [16:07] jam, older versions of bzr don't warn you [16:07] gour, are you using 1.3.1? [16:07] (hardy default) [16:08] beuno: no, 1.7dev [16:09] ah, then it is odd [16:09] jam: hmm, i just wanted to 'update' upload plugin by pulling latest revs from LP [16:12] ..by pulling from LP to my local machine...strange [16:25] probably a dumb question, but I've got a repo on a NTFS partition mounted in linux, and I want to do a commit on it but it shows everything changed because of permission bits (presumably) [16:27] I was going to copy it to an ext3 fs and then twiddle permissions, so I used cp -r but then bzr said it was not a branch [16:27] I manually copied .bzr because cp left it behind [16:27] Is that maybe because it is in a shared repository? [16:33] Well, if your copied branch had no repository, that would cause problems... [16:33] You should use "bzr branch", and maybe "bzr merge --uncommitted" if you want to pull the working copy changes too. [16:34] I've worked around it by using cp -a on the root of the shared repo [16:35] How can I get bzr to show me which file properties have actually changed? [16:35] I tried using find to remove all permission bits, but that doesn't seem to be it [16:35] remove all *execute* bits i mean [16:56] "bzr diff filename" will show me a diff of filename's changes. How might I tell bzr to use a graphical program such as meld to show me the diff? [16:56] Uncle google didn't seem to be of much help on this one. [16:56] bzr diff --using=meld ? [16:57] pickscrape, sweeeet :-) [16:57] timnik: bzr alias mdiff='diff --using=meld' ... then run 'bzr mdiff' [16:57] thanks!! [16:57] ToyKeeper, oooh, I like :-P [16:57] thank you [16:57] Isn't the bzr alias command new in 1.6? [16:58] * ToyKeeper tries again to figure out how to split a subdir into a new branch, including only the history for that subdir [16:58] pickscrape, correct. [16:58] Just in case timnik is running 1.5 and find that doesn't work :) [16:58] you can still edit edit bazaar.conf manually though [16:59] So far, it looks like 'bzr split foo/' and then 'bzr remove-revision N' for each unwanted rev N. :( [16:59] personally I like to use what ships with ubuntu, which is 1.3.1 [17:01] found a simple solution to our xpattern bug and bzr/lp with the revision history set to 0 - repush the last revision and *poof* everything was back to the way it was. [17:08] bleh, remove-revision seems to be broken. [17:46] does bzr-svn support stacked branches? [17:46] so that there would not be the need to download large repositories [17:50] * beuno releases Loggerhead 1.6 === sm is now known as sm-work [17:52] congratulations beuno and mwhudson [17:52] james_w, thanks! :) [17:55] hmm - ok ... atleast it works [17:55] wondering how long - or if I'm missing an important point ;) [18:01] congrats [18:03] beuno: good to hear [18:04] jam, next on my list is packaging bzr. So here I go... [18:05] bzr check reports: 1 incosistent parent, is there way to determine what file/branches/projects are bad? its shared repo between several projects [18:07] hsn_: Just run "bzr reconcile". [18:07] Ooh, Loggerhead 1.6. Congrats! [18:08] Peng: i heard rumours that bzr reconsile takes hours to run [18:08] hsn_: Is your repo gigabytes in size? [18:08] about 0.5gb [18:08] hsn_: Eh. It'll probably take a while then. [18:08] hmm ... are stacked branches a good replacement for looms? [18:08] hsn_: A couple inconsistent parents aren't a serious issue. Reconcile will fix it, but you don't really need to bother. [18:08] or not really [18:09] Necoro: Are pencils a good replacement for skateboards? [18:10] Peng_: hmm - then I misunderstood what stacked branches were supposed to do [18:10] Necoro: They allow you to avoid storing the entire repo locally. [18:11] Necoro: Sort of like a lightweight checkout, only it acts like a branch and you can commit locally and everything. [18:11] ok ... but if you would make stacked branches of the "trunk" stacked branch you would end up with lightweight feature branches, right? [18:12] I just noticed that looms does not work with stacked branches - and I don't want to download this 11k-revs-svn-repo [18:12] so I'm looking for an alternative :) [18:13] and having a stack of branches seemed reasonable ... because looms are a stack too [18:16] beuno: do you want to send your email to the 'bazaar-announce@' as well. I think it is worthy and I'll "accept it" [18:17] jam, yes! I'll send it now, thanks :) [18:17] jam, sent [18:18] beuno: Did you see: https://bugs.launchpad.net/bugs/258166 [18:18] Launchpad bug 258166 in bzr "please package as non-native package" [Undecided,New] [18:18] lamont feels we are being bad packagers [18:18] jam, yeah, we talked it over, he's right, etc [18:18] we'll need to change the packaging doc a bit [18:18] beuno: also, update the docs [18:19] :) [18:19] ok ... branching fails if "A" is a stacked branch of an svn-repo and you are trying to create another stacked branch "B" from "A" [18:20] then downloading the 11k revs is the only alternative =| [18:21] jam: I wouldn't care so much if it weren't 3MB+ of tarball and my link being crap [18:22] Necoro: branching from a stacked branch only creates a stacked branch if you request it [18:22] jam: i did: bzr branch --stacked A B [18:22] so I requested it :) [18:22] but I guess the problem lies in bzr-svn [18:22] I'm surprised, as I believe it is something we implement. [18:22] But it may be something that is rough [18:23] tells me something about: bzr: ERROR: Connection closed: Connection closed unexpectedly [18:24] beuno: one thing that would be nice, try to keep a good log of everything it takes you to make a release. [18:24] I'd *really* like to see it more automated. [18:24] It takes far too much dev time to package a new release, considering we want to do 2 per month. [18:24] (rc & final) [18:25] beuno: also, it seems the dapper packaging has the old bug #249452 [18:25] Launchpad bug 249452 in bzr "bzr overrides the shell prompt settings" [Critical,Confirmed] https://launchpad.net/bugs/249452 [18:25] jam, ok, I'll try and do it this time [18:26] * Necoro just does the 11k revs pull now :) [18:26] so, we fixed our issue with the revision history being set to 1 and not being in sync, but now we're getting the revision emails all over again. All 1264 of them. [18:29] lifeless: I know you didn't like the workaround in status, but this seems to be the 3rd or 4th bug report of the status bug: bug #258358 [18:30] Launchpad bug 258358 in bzr ""bzr status" errors" [Undecided,New] https://launchpad.net/bugs/258358 [18:36] * LeoNerd discovers the branch/uncommit/commit/replay method of fixing earlier commits [18:36] 7 shades of evil, but cute at the same time [18:36] so what do you guys think about bug #258349 [18:36] Launchpad bug 258349 in bzr "Special character "ß" cannot be used in the commit message." [Low,Triaged] https://launchpad.net/bugs/258349 [18:36] should I mark it as 'invalid' because it is a limitation of cygwin? [18:41] hmm - ok [18:42] jam, I think it's invalid, as bzr can't really do anything about it [18:48] jam, btw, it seems the bzr 1.6* announcements are missing in LP [18:48] beuno: hmm... did I make them? [18:48] I think you have to do a separate announcement for a release. [18:49] And it isn't part of the official "releasing.txt" document that reminds us about all that stuff [18:49] jam, ah, ok. I just saw that 1.5 was the last one announced, so I thought it was [18:50] beuno: yeah, looks like I manually did that in 1.5 (and for 1.5rc1) I'll go ahead and do it for 1.6rc3 [18:50] I know poolie didn't for 1.6rc1 and the betas [18:52] beuno: could it be that they were automatic when being put into the ~bzr ppa, but aren't because it is the ~bzr-beta-ppa ? [18:52] jam, nah, poolie did it manually [18:53] they don't get done automagically, although that would be a cool feature [18:53] beuno: Thanks for giving me credit in the Loggerhead 1.6 release. I've really enjoyed making my little contributions, and just watching you guys work. :-) === ja1 is now known as jam [18:54] Peng_, you absolutely deserve the credits, you're part of our test suite! [18:55] Heh. [18:56] hmm - is there a way of having a diff of a branch to its parent branch sent per mail? - but not the "bzr send" way of working [18:56] just the patch :) w/o having to do "bzr diff > some.patch" and then attach this to some mail [18:57] Necoro: You mean you don't want a bundle? [18:57] Kinnison: right ... because the project uses svn - and all the bundle information is just unnecessairy [18:58] bzr send has a --no-bundle option. I think t'll still include a bit of meta data, but not that mcuh. [18:58] and "bzr send --no-bundle" needs my branch being publically available [18:58] Oh. [18:59] oh - it works, if I use "." as public branch =D [18:59] Necoro: so as you commit multiple times, you want it to keep growing? Or you don't want this to be automatically done, just as a one-time thing? [19:00] jam: just when I finished some work (bug fix for example), I want all commits in one patch sent to the m-l [19:02] Necoro: is there a reason you don't want the branch metadata included? [19:03] As then people can just "save attachment your.patch" "bzr merge ../your.patch" [19:03] because they do not use bzr [19:03] and it would just be unnecessary noise [19:03] probably annoying some guys === mw is now known as mw|food [19:06] I just noticed that git-send-email, which I took at the model for the functionality, actually needs patches as files [19:06] but I don't want to have tons of patches lying around -.- [19:07] just something like: "bzr send-this-loom --mail-to some@addre.ss" [19:07] I guess, I have to write it by myself [19:12] Necoro: 'bzr send -r thread:..-1 --no-bundle' though I guess you want to break apart the loom? [19:12] I think something like that would be more-than-welcomed into the loom plugin. [19:12] Possibly as a wrapper for the 'bzr send' command itself when you are working in a loom [19:13] (like is done for 'bzr status' and some other commands) [19:17] jam: you need to specify the public branch ... so the correct command would be: bzr send -r thread:..-1 --no-bundle . . [19:17] not the two dots :) [19:17] *notice [19:17] but I think there is still to much bzr-metadata in it [19:17] Necoro: well, you could set your public_branch location in ~/.bazaar/locations.conf as an alternative [19:18] truw [19:18] *true [19:18] Though 'bzr send' *is* meant as a way to convey bazaar changes between people (hence a public location if you don't send the metadata, etc.) [19:19] jam: yeah - BUT: this is the wrong assumption: not every project is using bzr just because one guy happens to do so ;) [19:20] so for the moment I'll go with the normal "diff && attach to mail"-procedure [19:21] and see if have some time left next month to write a nice "mail-to-non-bzr-users"-plugin :) === meteoroid is now known as getmeteored [19:31] Necoro: I might point you toward bug #227340 [19:31] Launchpad bug 227340 in bzr "Simple way to prepare patches for submission" [Wishlist,Confirmed] https://launchpad.net/bugs/227340 [19:32] which at least seems related [19:32] jam: thx [19:39] lamont, ping [19:39] beuno: can I have a couple min first? [19:39] * beuno hands a couple of minutes to lamont [19:40] If I bzr upgrade a local branch, and then push it up to an existing branch on Launchpad, will that upgrade the branch there as well? [19:41] rockstar: no [19:41] rockstar: You'll have to run upgrade on Launchpad over sftp or (in bzr 1.6) bzr+ssh. [19:42] I didn't think so. Just trying to plan my upgrade properly. the latest rc seems to have deprecated this specific format. [19:42] beuno: wassup? [19:43] lamont, so, I was looking at what I did for the 1.6rc2, and I did name the tarball .orig* [19:44] if the version in debian/changelog is FOO-BAR then you need bzr_FOO.orig.tar.gz [19:44] so did you name it bzr_1.6~rc2.orig.tar.gz, or something else? [19:44] and it needs to be in the parent directory of wherever you do debuild [19:44] which is to say, in the parent dir of bzr-1.6~rc23 [19:44] s/3$// [19:45] lamont, bzr-1.6rc2.orig.tar.gz [19:45] the - screwed me over, didn't it? [19:45] note the missing ~ [19:45] and the dash instead of underscore [19:46] once you have the orig.tar.gz as it needs to be, if you forget the -I.bzr -i.bzr it'll bitch about binary files in the diff... :-) [19:46] jelmer: don't suppose you're around? [19:49] lamont, ok, let's see how this turns out then... === mw|food is now known as mw [19:53] rockstar: Yeah. Recent changes ruined the performance of pre-pack repos, so they were deprecated. It was about time anyway, since they're old and inferior. [19:54] Peng_, yea, I knew there were upgrades needed. I also know that a few of my last attempts didn't work. [19:55] * rockstar procrastinates an upgrade [19:59] rockstar: How large is the repo? If it's small or you have a speedy connection, it's no big deal. [20:01] lamont, debuild -S -sa -i -D [20:02] is still the correct command, right? [20:02] * lamont goes looking for what -D does [20:03] jam, if LP doesn't take up too much of my time next week, I may attempt to script this, and correct the docs [20:03] I expect that -i wants to be -i.bzr OTOH, if that command successfully builds a source package, and the .dsc references bzr_1.6~rc3.orig.tar.gz, then \o/ [20:05] lamont, lintian is now a bit happier than before: https://pastebin.canonical.com/8231/ [20:05] and: dpkg-source: building bzr using existing bzr_1.6~rc3.orig.tar.gz [20:06] does debian/rules actually use quilt, or should the build-dep be dropped? [20:06] line 2 is "meh" [20:06] line 3-4 are expected [20:06] well, we don't use quilt in our PPAs, maybe Debian does? [20:07] dunno [20:07] in short, it's just saying that you claim to need quilt, but aren't seeming to use it [20:07] Hi all. One of my cow-orkers says his branch/repo reset its revno to zero. Sure enough, "bzr log" starts with revno 6193, but "bzr revno" says "15". Any ideas? [20:07] --> "meh" [20:08] lamont, heh, ok. I can either change the standards version and remove quilt, reducing the amount of [20:08] "meh"'s [20:08] chadmiller, bzr reconcile [20:08] or upload [20:08] if you change the standards version, you have to actually go read the cheatsheet to make sure you really are compliant [20:08] IOW, upload [20:08] chadmiller, before he does that... [20:08] "'bzr reconcile' seems to have fixed some things. I'm running 'bzr check' now." [20:08] since you've been so kind to help me, I'll let you decide [20:09] He made backups, of course. [20:09] chadmiller, damn. That's a bzr bug that I know exists and would like to know the cause. [20:09] 'bzr check seems to be hung however in the "checking versionedfile 0/20980"' [20:09] * beuno uploads [20:09] I told him "check" will tak3e a while. [20:09] Can you pastebin the logs ? [20:10] From the old branch, the broken one? [20:10] lamont, thanks a lot for your help, and please poke me if the debs have anymore problems :) [20:10] thanks [20:11] rockstar: I'm getting them. [20:11] rockstar: It may be big. Want it in email? [20:11] chadmiller, that would be awesome [20:12] paul at canonical com [20:12] 'kay. [20:13] jam, so, by my calculations, once I've automated everything in my head, uploading bzr to all PPA's, sans bzrtools and other interesting plugins, it takes a bit less than half of my day away. I wouldn't be surprised if doing it in full takes up a full day [20:16] beuno: right, and we need someone to do that 2x per month [20:16] Not to mention all the PQM time gardening a new release branch. [20:17] (That has gotten better, though) [20:17] jam, yeah, too much. On the bright side, it should be scriptable, because everything is really automated [20:17] Anyway, out of 20 working days, killing 2 is 10% of a dev's time spent just getting releases out every moth. [20:17] but a script to do it would take a few days work [20:17] which seems like a good investment [20:17] beuno: sounds like you get paid back in 2 months [20:18] pretty good ROI [20:18] absolutely [20:18] beuno: *and* if it is automated enough, then *I* can do it, which gives you an even better ROI [20:18] jam, heh [20:19] well, I don't really know if I'll be able to do this. I still don't have a manager, so I'm doing a little bit of everything. That may change enxt week [20:19] but I'll certainly try to do it [20:19] beuno: who do you expect to be your line manager, btw [20:20] jam, they're still trying to figure that out :) [20:20] I'm hanging around in the lp-bzr team for now, which is where I already know everybody, and can be productive *today* [20:21] and I expect to be working on LP for the next few months at least [20:22] beuno: well, you've been productive in #bzr today as well, so thanks :) [20:23] beuno: while you're around, are you aware of any good docs on METAL? [20:23] jam, happy to help! :) [20:23] pickscrape, zope's docs are pretty thorough [20:23] pickscrape, zope has the best ones I think [20:23] beuno: hey, that's my line :) (At least according to vila) [20:24] jam, very happy to help :p [20:24] beuno: ok, I'll have a look. The ones google found for me were really sparse on detail and examples [20:26] pickscrape, http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixC.stx [20:26] beuno: thanks :) [20:27] Hopefully I'll be able to make progress on the breadcrumbs tonight. I hit a wall with it not recognising my second template [20:28] pickscrape, cool! let me know if you're stuck, I'll be happy to give you a push [20:28] loggerhead is crack-ish sometimes [20:28] as rockstar :) [20:28] * rockstar is indeed crack-ish [20:28] :) Well, tal etc is completely new to me, so I'm learning as I'm going along [20:29] heh [20:29] I think I meant "ask rockstar" [20:29] but it's friday, and it's been a *very* active week for me [20:29] :) [20:29] beuno, by the way, paste has all sorts of profiling goodies. I'm going to take a whack at it this weekend. [20:30] Has the "unification" stuff been merged to trunk yet? If so I'll probably have a bit of fun with conflicts when I merge it :) [20:30] rockstar, that would be awesome [20:30] pickscrape, it has [20:30] pickscrape, it has [20:30] and you will :) [20:31] ok, I'll complete what I'm doing then before merging so I can do it all in one go. [20:31] pickscrape, it's a great way to learn about resolving conflicts [20:31] Yeah. I'm used to the svk way (which is actually pretty nice) [20:39] lamont, out of curiosity. All the other bzr releases had the .bzr dir in them, right? [20:39] only if they were packaged without an orig.tar.gz [20:40] so just the last one I uploaded? [20:40] poolie removes them? [20:40] .bzr has binary files , and .diff.gz doesn't handle them [20:40] ergo, they're not there, one way or another. [20:40] -mix 1520 : cat /home/lamont/.devscripts [20:40] DEBUILD_DPKG_BUILDPACKAGE_OPTS="-I.bzr -I.svn -I.git -i.bzr -i.git" [20:40] ah, so you can leave them, if you do the .orig bit correctly [20:41] I tend to just not worry about remembering it. :-) [20:41] how so? [20:41] .orig doesn't have a debian/ directory [20:41] and debian/.bzr is the bit that kills you [20:41] I'm confused [20:41] deleting the debian/.bzr isn't in the docs [20:42] which makes me think poolie doesn't remove it [20:42] of course, there's no reason that I can think of to ship a stale bzr-1.6/.bzr directory as part of the source, when the current .bzr directory is what everyone wanting to muck with it should be referencing [20:42] with the -I and -i options, you don't have to delete it, it becomes a -x.bzr to the diff command [20:43] I see [20:43] ok, so I don't need to add that extra step to the docs [20:43] so if you look at poolie's old source packages, you'll find that the diff doesn't have debian/.bzr in it. exactly _how_ poolie accomplished that, dunno [20:49] jam, after I finish uploading to PPA's, would you like to help me debug why bzr suddenly is eating *all* my ram + swap bringing my laptop to it's knees, to pull 1 day's worth of the LP source? [20:49] I've tried it 3 times now [20:49] and it does it every time [20:49] have to kill -9 it [20:50] beuno: sure [20:50] quid-pro-quo and all [20:50] :) [21:02] lamont, jam, just uploaded the last of 'em. Dapper with the shell fix. I'm off for ~40 minutes, and then I'll check back to fix anything that I might have overlooked, and try to debug my bzr problem if jam is still around [21:04] jam, nm about the debugging, it was bzr-search still trying to index everything [21:04] beuno: yeah, first thing I was going to recommend was "--no-plugins" :) [21:25] What's the "could not acquire lock" error? [21:29] TheEric: It means whatever you were trying to operate on was locked (i.e. someone else is using it, or was and they crashed). [21:29] TheEric: Or maybe you tried to write to something read-only, like http. [21:31] any way to override that? [21:32] There was a bit of an error that we -think- was fixed in the revision history where it was out of synch with eveything else. [21:35] TheEric: More details plz. [21:35] TheEric: Locking has nothing to do with history issues. [21:41] * meteoroid loses 10lb on the treadmill while branching a couple hundred revisions from fricking slow googlecode svn [21:41] :-P [21:42] googlecode svn is pretty terrible [21:42] (especially *because it's google!*) [21:43] i know, i was surprised.. [21:43] looks like my idea of offering professional hosted, private SCM and other things for people like Trac is not so bad.. [21:43] our svn is really fast, and soon i'll have bzr talking webdav or something fancy so i can use it as my personal primary [21:51] in what way is googlecode's svn worse that $vanilla svn? [21:52] meteoroid: have you looked at "bzr-webdav" the plugin Vila wrote? [21:52] * jam is away for a bit [21:52] bye jam [21:52] jam: yeah i haven't got the server setup yet [21:52] and i don't have 1.6 going [22:02] lifeless: it's unreliable [22:02] code imports from google code rarely complete if it's more than a few hundred revisions [22:02] (this is partly because cscvs is terrible, of course, but ...) [22:07] lifeless: well, it's terribly slow, is the problem. [22:07] 154 revisions and still maybe 75% complete [22:07] it's been over 20 minutes! [22:07] the servers are either overloaded or excessively throttled [22:07] i mean, i pushed four revisions from bzr into svn at googlecode and it took 5 minutes.. [22:08] four revisions! a few config files and a python script that downloads code from elsewhere [22:10] I don't have problems with Google Code's svn, but I guess I don't use it for anything large. [22:13] anyone here have a recommended best way to convert a very long-historied (well over 90000 revs) svn repos? I couldn't get the bzr-svn extension to work (may try again later), and it's looking like svn2bzr (dumpfile version) will end up taking like 2 weeks to make it through the whole thing [22:14] Toranin: You should use bzr-svn, and get help here if you encounter problems. [22:14] Toranin: bzr-svn [22:14] I've got one folder which is under bzr control; I've done bzr push to a private sftp repository. If I want to edit it on another machine as well, should I bzr branch sftp://wherever or bzr checkout sftp://wherever ? [22:14] Toranin: older versions will leak like a sieve (the bindings to svn were dud, new versions of bzr-svn have their own, and shouldn't leak). [22:14] some kind of fast-import based approach would be the other idea i guess [22:15] Toranin: if it does leak, just ctrl-C and resume [22:15] but yeah, bzr-svn would be the thing to try [22:15] I have the new version, but the selftests fail [22:15] aquarius: thats right [22:15] with the same assertions I see when trying it on the repos [22:15] Toranin: please do file a bug [22:15] lifeless: heh. Sorry, my question was "which of those should I use?" I'm a bit unclear on the difference :) [22:15] Toranin: what version of bazaar [22:15] ? [22:16] aquarius: branch will make a new branch; checkout will let you work on the existing branch directly [22:16] IIRC (this was a few days ago) 1.6rc1, with bzr-svn 1.4rc1 [22:16] Toranin: do you have access to ubuntu hardy? that's how i keep bzr-svn functional [22:16] i just suck it out of svn then i can talk to it from plain-jane bzr from any other box [22:16] no, I'm stuck with platform FreeBSD 6.3-RELEASE amd64 [22:17] lifeless: so if I checkout, then bzr commit commits straight back to sftp, but if I branch then bzr commit goes locally and I have to bzr push to get it back into sftp? [22:17] but I do have a jail with separate software [22:17] aquarius: exactly [22:17] so I can keep a functional bzr around without too much trouble [22:17] Toranin: so, I think you need bzr 1.6rc3 because there was a patch to bzr Jelmer put in on wednesday or so [22:17] lifeless: ok, I'm starting to get a handle on this, cheers. :) [22:17] well if you can get subversion 1.5 with its' python bindings working, you should be home free on bzr-svn [22:18] and that's the route to go, i think. [22:18] aquarius: excellent [22:18] and...if I already have the code on the second machine, and I bzr branch in that folder, will it cope with some of the files already being there? Or will it chuck some sort of horrible wobbler? [22:18] meteoroid: old bzr-svn (with svn's python bindings) on svn 1.5 gives an assertion failure and crashes the Python process [22:18] something about paths not being allowed to start with a '/' [22:19] when does it give this failure? [22:19] whenever you attempt to run any command that accesses a repository [22:19] whether remote or local [22:20] sample command? [22:20] hmm [22:20] (this was a few days ago when I last tried it) [22:20] bzr log svn+https://url/to/trunk [22:20] try something like: bzr svn-import svn+http://some-svn-repo/ [22:21] i had issues with high rev count but if you have the latest bzr-svn it should have a leaking issue fixed.. [22:22] meteoroid: let me get the latest bzr and bzr-svn as of today, and I'll get back to you with results and selftest failures if any [22:22] or to the channel anyway [22:23] aquarius: if you run bzr branch somewhere, it will make a subdirectory and put its own files within that [22:24] aquarius: you can copy your own versions over the result [22:30] lifeless: ah. The folder in question is my home folder...so I wanted to do "bzr branch sftp://blah . " [22:31] meteoroid: okay, running a svn-import on a svn+file:// of a backup repos [22:31] at 90488 revs [22:32] it's at "determining changes" now, we'll see if it gets past there before I have to leave for the evening === menesis1 is now known as menesis [22:34] right on [22:34] how much ram on this box? [22:34] you did 'nice' right? heh [22:34] i found, btw, on a multicore, that branching http from localhost was faster because apache used 30-60% of a core and bzr would stay steady around 60-80 [22:34] otherwise bzr just takes up like 60-80 wit a file:// [22:35] probably would be faster with svnserve because http is chatty [22:36] no nice on it [22:36] Toranin: You should watch the RAM usage, just to be safe. [22:36] *nods* [22:36] it's not using much [22:37] only a couple hundred MB so far, I have about 700MB of leeway in free/inactive RAM [22:38] it's spinning at "determining revisions to fetch 0/33" now [22:38] using virtually no CPU and in BSD "lockd" state [22:41] Hi! I've read http://bazaar-vcs.org/BzrVsGit#head-826d31d333758d3cd08eb5aeecd8bf77b1025373 and now I'm confused, how is that "far more flexible and powerful" than Git's alternates feature? [22:44] hi guys! === sm-work is now known as sm [22:45] I was wondering if https://bugs.launchpad.net/bzr/+bug/252212 can be fixed before the 1.6 release [22:45] Launchpad bug 252212 in bzr "can't stack rich-root-pack repos" [High,New] [22:45] pasky: well its quite different, we also have an alternates-like feature [22:46] I don't know that its "far more flexible and powerful", just a different want of structuring some things; but it is nicer IMO to be able to manage directories as directories [22:47] so what's the structural difference to alternates? [22:47] I'm sorry, I don't understand "manage directories as directories" [22:47] alternates are pointers to a separate repository [22:48] bzr shared repositories are a single repository which separate branches use for common storage [22:48] oh, I see [22:49] git can do that too :) [22:49] * lamont gets popcorn [22:50] git "has" a git-new-workdir command that does pretty much the same thing [22:50] pasky: "directories as directories" I meant to write "branches as directories" [22:51] the only catch is in the "has", since it's not part of the official command set (it's in contrib/) and it is pretty much completely undocumented [22:51] git-new-workdir looks a little raw [22:51] it also needs symlinks which are not portable [22:51] that's right [22:52] in a purely technical sense, bzr builds in the capability to do N workdirs -> M branches -> 1 history store, portabilty on windows/macosX/*nix [22:52] meh, no caffeine yet, please excuse my syntax and spelling glitches [22:52] :) [22:54] how would you feel about "Git can achieve the same functionality by a semi-official git-new-workdir extension that has however many usability and portability problems?" [22:56] meteoroid: in case this wasn't obvious to you, if you point SVN_SSH at a script that looks like 'shift; exec "$@"' you can have it run svnserve locally and talk to it directly [22:56] that's pretty neat.. [22:56] it's obvious why it works but yeh i never thought of that [22:56] i forget that svnserve is just a different name for same executable [22:56] like sh/bash [22:56] vi/vim [22:57] well, actually in this case the script gets run as "scriptname localhost svnserve -t" [22:57] and it just pops off the localhost (or whatever hostname) and then passes control to svnserve [22:57] ah sure.. [22:57] pasky: I don't think its the same functionality [22:58] that's pretty clever :) [22:58] learn something new every day.. [22:58] mine checks if the hostname is localhost and borks if not [22:58] pasky: because there is no constraint linking the workdir to the repository, git can't prevent bad gc actions [22:58] am always telling people to write their admin scripts with bash instead of perl because they will learn one-liners that are golden in an emergency [22:59] i challenge perl to have a decent one-liner with seven subcommands ;d [22:59] I go back and forth between bash and Python depending on how elaborate they get [22:59] yah i'd tend to choose python if i went over bash [22:59] I challenge perl to be readable ;) [22:59] had a new client who needed me to clean up tons of deploy scripts [22:59] and i'm like [22:59] I have an equals sign! [22:59] lifeless: the refs/ space is shared so this would only cover *quite* a corner case when you have uncommitted objects in your index for more than 14 days, and even in that case it would be usually trivially repairable [22:59] this is the same script, with variables changed in each copy [22:59] lifeless: so I don't know if that's practical concern, unless you have something else on your mind? [22:59] why not set defaults that are for staging build and then have it accept options [23:00] maybe by the time I leave I will have two, or maybe THREE equals signs on the "determining revisions to fetch" [23:00] even my bash scripts do that ;d [23:00] pasky: you get a copied index? [23:00] i mean, sure, chomp is funny sounding, and ~= is cool looking, but there is more to life ;d [23:00] lifeless: well obviously, each workdir has to have its own index [23:01] pasky: I guessed it would but confirming is useful [23:01] pasky: I'm not a git dev :) [23:01] RAM usage is creeping up, but it still looks heavily I/O bound -- <0.2% cpu use [23:01] If you wanted to change to the sentence you wrote, I'd be ok with that [23:01] so if you git add something and wait 14 days without committing and then git gc in another shared repository, the object will go away [23:02] ok [23:02] I'm sure other folk will tweak it back and forth [23:02] these things are dynamic :P [23:04] pasky: while you are here, can you answer a couple of questions about git? [23:04] sure [23:04] BTW, I'm also confused about "Git is not a realistic option on Windows" [23:04] when you fetch, and get a pack over the network [23:05] I'm now using MSysGit daily and I'd appreciate if yo ucould elaborate on that :) [23:05] It seems obvious to me that you decompress every text to get its sha1 and index it [23:05] but do you keep the pack, or unpack to single files? [23:06] we don't decompress the text, the object id is part of the header of each object record; and we keep the pack [23:06] unpacking to single files is extremely rare operation that is used pretty much only for repairing corrupted packs, I think [23:07] ok, so if someone gave you garbage, you'll only notice when you access the object? [23:07] interesting question :) let me check [23:07] I mean e.g. a bit error in an object [23:08] you could hash the entire pack [23:08] ok so I was wrong on at least one count, we do unpack to single files if there's less than 100 objects in the pack [23:09] but that doesn't prevent targeted attacks (not that they can get you to use wrong data, just to make you think you have content you don't) [23:09] (which makes sense since having many little packs is not much good, and sooner or later git gc will automatically fire up and collect the objects to a larger pack) [23:09] Can I do a bzr log -r a..b which starts at the revision -after- a, i.e. the output doesn't include a itself? [23:09] I tag all my releases with a 'RELEASED ...' tag, so I have a little script which finds the latest such tag... [23:09] LeoNerd: its half-open by default I think :) [23:10] bzr log -r `bzr-find-latest-RELEASED`.. <== includes the released tag itself [23:11] on your other question, there is a hash of the entire pack [23:11] LeoNerd: hmm [23:11] and I currently don't see your targetted attack scenario? [23:11] I vaaaaugely recall a VCS that can do -r after:somespec and so on.. is that bzr or something else? [23:11] pasky: its would be just a nuisance [23:12] (I'm still reading the code :) [23:12] pasky: take a pack, edit some delta content to nulls, rehash the pack, and then give that when requested [23:12] pasky: you'll have some unreconstructable content and no warning [23:13] Oooh.. boo [23:13] bzr can do before:tag:whatever but not after:tag:whatever [23:13] Feature request? :) [23:13] pasky: anyhow, the key question I had was about the work done during fetch [23:13] hmmm [23:13] pasky: I've read the pack creation code closely [23:13] the code is trying to confuse me [23:14] since it suggests that objects in fact are uncompressed [23:14] I would expect for correctness a full decompress [23:14] which comes as a surprise to me :) [23:14] but I guess it's so [23:14] LeoNerd: uhm, please bring up on list? [23:15] "the list"? Ooh.. a mailing list? [23:15] I suppose I could add another; I'm only on about 15 already :P [23:15] LeoNerd: yeah, we have one of those :) [23:15] Ya.. most people do [23:15] hm, so yes, we do a full decompress and verify correctness [23:16] I currently don't see the code that verifies correctness of delta-based objects but that's probably just because I'm kind of tired :) [23:16] LeoNerd: I think the bug is that log is not half-open when given a range [23:17] It is half-opten [23:17] Just at the wrong end [23:17] LeoNerd: no its not [23:17] log -r 1..2 [23:17] Most people expect that bzr log -r 10..20 should include 10 [23:17] lifeless: so thanks for teaching me more about git internals ;) [23:17] shows 1 and 2 [23:17] pasky: :) [23:17] Oh.. [23:17] Yes.. [23:17] But.. I want bzr log -r 10.. to show 11 onwards, and not 10 [23:17] I imagine most people would complain [23:17] Isn't after: easier to add? [23:18] bzr log -r after:10.. [23:18] LeoNerd: if you can define it sanely [23:18] we have a graph ;) [23:18] after:10 is 11, after:anythingelse dies [23:18] LeoNerd: well you want after:tag:foo [23:18] Yes,.. [23:18] but sure - lets raise [23:18] But tag:foo is just a "nice" name for 10, no? [23:18] no [23:19] its a nice name for revid:SOME_UUID_HERE [23:19] Ooh.. hrm... [23:19] Well, what does before: do? [23:19] I'm sure its doable [23:19] Peng_: left hand parent [23:19] LeoNerd: I'm just saying we should take a minute to discuss [23:20] Right.. [23:20] if we can tweak a fundamental to be more consistent [23:20] OK.. I'll take a peek at the ML then [23:20] e.g. merge -r x..y does not include x [23:20] then we can be simpler [23:21] https://lists.canonical.com/mailman/listinfo/bazaar <== this? [23:21] LeoNerd: yes [23:23] Aww.. I don't get a choice of English (UK) ? :P Boo [23:27] bazaar is gone from Debian apparently [23:27] ? [23:27] LeoNerd: the old C version [23:27] Ohdear... so you're right. [23:28] oh yeah, sorry :-) [23:28] Oh.. ohyes. Got me all in a panic for a moment [23:28] * LeoNerd recalls the SAS [23:28] pasky: I can't comment on windows, I put away my windows-hacker cloths some time back [23:29] lifeless: ok - I've just edited that section too to clarify a bit wrt. current state of msysgit, I look forward to seeing further edits by others :) [23:29] now my hands are off again ;) [23:31] ok ;)