[00:00] mwhudson: Looks indeed like I was getting the assertion because of actually closing a connection before data came out of it. [00:02] mkanat: oh right [00:42] bzr missing returns a shell exit code 1 if there is branche divergence? [00:43] phoenixz: that sounds right [00:44] spiv: ah, since it was not documented in bzr help missing.. I was already wondering about this behaviour [00:44] we should doc it [00:44] Similar to how diff will return non-zero if there are differences. [00:44] The docs should say so, though. [00:45] spiv: what manual? [00:45] spiv: bzr help missing doesnt have it documented.. [00:46] spiv: http://doc.bazaar-vcs.org/bzr-0.10/bzr_man.htm also doesn't show [00:46] phoenixz: bzr help missing probably should, and maybe other places too. [00:46] Wow, 0.10 is seriously old. [00:47] Is that really the version you are using? [00:47] phoenixz: by "should" I mean, "probably doesn't yet, but that is something for us to fix" [00:47] spiv: eh, no, its just a manual I quickly looked up :) [00:50] lifeless: nice page about pmtu [00:51] the historic problem is what i thought it was, but the auto adaption is new to me, and clever [00:51] also " Just remember: The glass is neither half full nor half empty, it is merely the wrong size. " sounds like you :) [00:54] but him spelling 'microseconds' as 'uS' is like nails on a blackboard [00:56] ;) [00:56] http://en.wikipedia.org/wiki/Siemens_(unit) [00:58] lifeless: more to the point: if you suspect bad window behaviour with streaming, it would be interesting to capture the packets and graph/print/analyse the window flags [01:02] poolie: yes, spm has tools to do this [01:02] it seems like we should be able to do it at our end? [01:03] tcmpdump + tcpflow + xplot ftw [01:03] garh. s/tcpflow/tcptrace/ [01:03] rly tcmpdump? [01:03] man. I so can't type today... tcpdump :-) [01:04] wireshark does the window graphing; but I find the above more versatile and ... obvious [01:05] poolie: eg: http://tcptrace.org/manual/node12_mn.html [01:08] hi poolie [01:08] hi spiv [01:56] mkanat: are you on ubuntu one? [01:56] mwhudson: Nope. [01:56] oh, this log chunk is only 28k [01:57] mkanat: what's your email address? [01:57] mwhudson: mkanat at everythingsolved [01:57] dooot coooooom [01:57] ♫ [02:00] mkanat: you should have mail [02:00] Sweet. [02:00] Indeeed. [02:19] Hello, [02:19] I'm interested in squashing some documentation bugs [02:20] I need some advice though [02:21] First, where should I pull a branch down from? bzr or bzr-alldocs? [02:21] igc: ^ [02:21] and should I just pull one down and hack away? or should I talk some things over with a maintainer first? [02:22] rubbs: hi [02:22] rubbs: which docs did you want to fix first? [02:22] igc: hello are you Mr. Clatworthy? [02:22] rubbs: I am [02:23] igc: cool I'm Pat Regan, I was the newbie on the mailing list who expressed intrest... [02:23] the first one I was thinking was bug 59608 [02:23] Launchpad bug 59608 in bzr "'bzr ignore' undocumented behaviour and misleading tutorial" [Medium,Confirmed] https://launchpad.net/bugs/59608 [02:23] but I'm thinking it might have already been taken care of. [02:24] rubbs: most of the doc is maintained inside the main bzr code base [02:24] mkanat: fwiw; that's an extract from a fail that starts from 20091118-05:21:13.665; next restarted @ 20091118-05:42:53.336. We have others :-) lots of others! but that's the smallest to start with. [02:24] mkanat: and hi, btw :-) [02:24] spm: Thanks! [02:25] spm: Hello. :-) [02:25] rubbs: so you want to grab lp:bzr [02:25] Ok, got one grabbed [02:25] rubbs: are you using explorer or the command line tool? [02:25] mkanat: fwiw, if you need any further assist; ping me or a general 'losa ping' to summon myself or one of my fellows [02:25] igc: mostly commandline, but I've got qbzr tools installed too [02:25] spm: Awesome. [02:25] rubbs: cool [02:26] rubbs: the doc for each command is inside bzrlib/builtins.py [02:26] well, most commands at least [02:26] igc: ok [02:26] look for cmd_ignore (say) [02:26] spm: I'm hoping that I can reproduce the problem locally, but if I can't, then those logs are going to be critical, for sure. [02:27] sure. at this stage all that's beeen done is a purely random IP s/r. [02:27] s/r = search and replace? [02:27] rubbs: the tutorials are under the doc/en directory [02:27] igc: k, found it [02:27] sorry - yes. [02:28] spm: No problem. :-) [02:28] igc: ok, found those too. [02:28] rubbs: have you submitted a merge proposal using Launchpad before? [02:29] igc: no I haven't. This would be my first ever contribution to anything really. [02:29] rubbs: no problem. We're here to help [02:29] great! [02:29] rubbs: the basic summary is ... [02:29] (1) make you changes [02:29] mkanat: fwiw, had another restart just a few ago. this one actually gave us a debug return: http://pastebin.ubuntu.com/322088/ so you can see some of the requests... hang. fwiw. [02:29] (2) commit [02:30] (3) push the branch to Launchpad [02:30] (4) submit a merge proposal [02:30] spm: So these are happening pretty frequently then. [02:30] igc: ok, that makes sense. Not much different than a centralized with local commits workflow then [02:31] mkanat: :-) you *could* say that. that codebrowse is referred to by us sysadmins as codebounce, is another clue ;-) [02:31] LOL [02:31] Interesting that there are so many /atom requests for exactly two projects right before the hang. [02:31] right [02:32] where it gets fun is when our nagios check url gets hungup as well. [02:32] Hahahaha, omg. [02:32] rubbs: I need to grab some lunch right now. If you have questions, spiv and many others can help so just ask [02:33] bbiab [02:33] igc: great thanks for all your help [02:33] mkanat: sometimes some requests that usually take a few seconds hang around for minutes [02:33] mkanat: i have basically no idea why [02:33] mkanat: note that our loggerhead access branches over http [02:33] mwhudson: In terms of the port being open, or what? [02:33] not the local filesystem [02:33] Ohh, interesting. [02:34] So there's going to be a lot more latency than on my systems. [02:34] I didn't even know loggerhead could do that. [02:34] but i've never pinned this down to a real problem [02:34] mkanat: well, not much more latency, it accesses the branches over gigE (i think) to apache serving static files [02:34] * mkanat nods. [02:34] There's still pretty good latency in general over the http protocol. [02:35] mkanat: as to it being possible, bzr is awesome sometimes :) [02:35] open branch, give it to loggerhead [02:35] loggerhead doesn't care about where the branch is from [02:35] That's pretty awesome. [02:35] Yeah, bzr's architecture seems pretty sweet, generally, from the outside. [02:35] thanks [02:35] :-) [02:36] heh [02:37] Hmm, on the memory leak one, I'm actually not currently getting it to go over a certain fixed size. [02:37] I'll have to try other things. [02:38] * mkanat is also doing a Bugzilla release simultaneously, right now. [02:40] mwhudson: I was noticing that a few things seem slower than necessary. [02:40] mwhudson: Though I can't quite pin that down either. [02:40] * mkanat just got a pause on mine, too, even on localhost. [02:40] Was pretty brief, though. [02:51] mwhudson: Okay, I can at least see which threads are hanging, from the logs. [02:51] mkanat: cool [02:51] mwhudson: I can see the "Getting information for" but no "Rendering" for certain requests right before the hang. [02:51] mkanat: are they building revision caches? [02:51] mwhudson: Yeah, two of them are. [02:51] I'll check the second hang. [02:51] cool [02:53] The second one's more confusing. :-) [02:53] There's a lot happening right before that hang. [02:56] mwhudson: And yeah, I see what you mean about the long requests. Getting information for RevisionUI: 201.69120788574219 secs [02:56] mwhudson: Here's an interesting thing. All requests are fast shortly before the hang. [02:56] I mean, *until* shortly before the hang. [02:57] so "something" happens, and then suddenly requests are slow, and then we're in a death spiral? [02:57] sounds about right [02:57] mwhudson: Yeah, that seems like what's going on. [02:58] mwhudson: And it's never rendering that takes a long time, it's always getting information, from what I can see. [02:58] mkanat: now, please tell me what it is that happens [02:58] :-) [02:58] LOL [02:58] mkanat: my /theory/ is that it's basically thrashing [02:59] too much going on at once, too many threads competing for cpu, performance falls into the toilet [02:59] it would be good to confirm/deny [02:59] mkanat: if you want to enhance logging, we can get new code into production pretty fast for this [03:00] (<24 hrs) [03:00] mwhudson: Okay, awesome. [03:00] mwhudson: I might want to do that for the memory leak if I don't get anything. [03:00] mwhudson: Just like a "process increased by X size after this request" sort of thing. [03:00] mkanat: go wild :) [03:01] we could even try getting meliae dumps i guess [03:01] but they will be, uh, moderately large [03:01] Hahahaha. [03:01] Yeah, I would imagine. [03:02] I think it might be better to just narrow down where it's happening first than try to look through a memory analyzer or profiler for the whole process over like, days and days. [03:03] from my side, i view the hangs as a much more serious and mysterious problem than the leak [03:05] Okay. [03:05] I'll focus on that. [03:05] * mkanat had just started to anyway. [03:05] And the htdig that I'm running against my local repo to try to reproduce the memory leak could go on for hours or days before I get anything, anyhow. [03:06] mwhudson: BTW, as far as a cache that everything could access, memcached seems like a reasonable possibility too. [03:06] * mkanat hasn't played much with CouchDB though. [03:06] mkanat: yeah, possibly [03:07] mkanat: a disk backend would be plenty fast enough though [03:07] Anyhow, back to analysis. [03:07] mwhudson: Okay. :-) [03:07] mkanat: a more serious problem is the serialization of the graph [03:07] mkanat: we basically deserialize the graph in one lump [03:07] and that's crack, it would be really good to stop doing that [03:08] mkanat: i guess the memory leak problem will in all likelyhood come back into prominence for us if we fix the hanging problem :-p [03:10] mwhudson: Wow, yeah, I imagine that kills performance for huge projects. [03:10] * mkanat nods. [03:10] mkanat: i marshal the data and gzip it [03:10] mkanat: loading it for launchpad takes ~0.2s [03:10] so it's not terrible [03:11] Okay. [03:11] but still crack :) [03:13] I can make it slower if you want. >.> [03:13] mwhudson: If I see one thread do "Getting information" on an identical request three times in a row with no Rendering, does that mean the connection broke before it rendered? [03:13] mkanat: not necessarily [03:14] it means the requests are piling up :( [03:14] mwhudson: Hmmm. Maybe I'm missing a bit on the architecture here. How does a thread get multiple "Getting information" requests without rendering the previous requests? [03:15] mkanat: er [03:15] mkanat: can you point me to a line number in the logfile? [03:15] mwhudson: INF [20091118-05:42:04.440] [1084594512] loggerhead.~munin-custom-plugins/munin/munin-plugins-tomcat: Getting information for ChangeLogUI: 3.7736661434173584 secs [03:15] mwhudson: That's the line. I have the log file a bit hacked up at the moment. [03:15] mwhudson: At least, that's where it starts. [03:17] mkanat: the requests are being handled by different threads i think [03:17] mwhudson: Oh, are the numbers in brackets not thread ids? [03:18] INF [20091118-05:42:07.532] [1093282128] loggerhead.~munin-custom-p... [03:18] ^^^^^^^^^^ thread id doing the logging [03:18] mwhudson: Yeah, that's what I thought. [03:18] * mwhudson looks a bit closer [03:18] mwhudson: I know that all those in a row aren't the same thread, but if you highlight the thread id, you'll see that it makes several information requests and doesn't render them all, and it doesn't really do it in order either. [03:19] mwhudson: I can investigate this on my own too, if I'm taking up too much of your time. [03:19] mwhudson: I'm perfectly capable of figuring out everything by digging through the code. :-) [03:19] mkanat: that's pretty whack [03:19] Yeah! [03:19] That's what I'm saying! :-D [03:22] mwhudson: Another hung thread does the same thing. [03:22] 1088797008 [03:23] mkanat: i would _guess_ that this perhaps means that the client is no longer listening [03:23] mwhudson: Yeah, some of those "Getting information" requests take so long, there could be a timeout. [03:23] (we run loggerhead behind apache, which might make a difference here) [03:23] mwhudson: I was just about to ask. [03:23] mkanat: oh right, yes, so you should know this: our ProxyTimeout is 20s i think [03:23] (maybe 30) [03:24] mwhudson: Ah, okay. :-) [03:24] mwhudson: So all these bad threads are getting SIGPIPEd or something. But apparently they keep on living. [03:24] well python ignores sigpipe [03:24] but you should get an error writing to the socket sure [03:24] * mkanat nods. [03:25] (and i think you do, sometimes) [03:25] I've seen it in my own logs, yeah. [03:25] maybe one or more of: paste, apache, python, linux, the universe is screwing us here [03:25] LOL [03:25] Yeah, it's possible. [03:26] mwhudson: So python ignores the broken socket, and the thread then...? I guess I should go look at the code at this point. [03:26] mkanat: if you want to enhance logging, we can get new code into production pretty fast for this <== actually TBH, us losas will fall all over each other to speedily get ANY changes in [03:26] spm: Hahahaha, okay. :-) [03:26] mkanat: what i would have written by now if i had an infinite amount of time would be a stateful log parser [03:27] mwhudson: I could probably write that pretty quickly. That's a Perly sort of job. [03:27] And I've written so many state-machine parsers now... [03:27] mkanat: most request go through a predictable pattern (starting to process, using branch url, ..., rendering) and it would be cool to be able to say how many threads at a particular time were in a particular state [03:27] mwhudson: Oh, that would be interesting for sure. [03:27] and also find threads that don't go through that pattern [03:27] mwhudson: I'll see if I can put together a little script here. [03:28] mkanat: that'd be awesome [03:28] then maybe we can fling existing logs at it rather than having to ship them to you and see if any interesting patterns show up [03:28] wfm [03:29] mwhudson: Well, I don't know how consumable by the external world said parser will be, but if it's going to be so consumed, I will consider that. :-) [03:29] mkanat: we don't have to tell anyone else about it :-) [03:29] lol, okay. [03:30] It'll be easier than parsing text stack traces. :-) [03:30] (That's the last stateful parser I wrote.) [03:31] should be [03:32] mwhudson: BTW, what log is this that I'm getting? Because it looks different than my normal loggerhead logs. [03:33] mkanat: the entry point we use and all the log setup is in the launchpad-loggerhead branch [03:33] mwhudson: Ahh, okay. [03:33] So this will be a launchpad-loggerhead log parser, then. [03:34] Not for the standard loggerhead logs. [03:34] yes [03:34] Works for me. [03:34] some of the goodnees in launchpad-loggerhead should probably be moved to loggerhead [03:34] not sure that the log setup counts as goodness mind... [03:34] I dunnow, these logs are more readable, at least. [03:42] OK, dumb question. I've just made some changes for some documentation, how do I push it to LP so I can ask for a merge review? [03:43] bzr push lp:~username/project/branchname [03:43] * rubbs slaps forehead. should have remembered that. thanks [03:47] Ok, so I've uploaded the branch. And I see where to click for a merge proposal. Is their any sort of standard way of going about this? Should I talk it over with people or just post and let people see it? [03:48] Sorry for all the newbie questions, I've just never done this before. [03:48] rubbs: feel free to just propose it [03:48] rubbs: no, please ask any questions, that's totally fine [03:48] spiv: great thanks! [03:48] rubbs: if you're unsure you can ask here or on the mailing list before proposing [03:49] spiv: great! thanks for being patient. I've always good help from this channel. [03:49] rubbs: but generally a merge proposal is a great venue for a conversation about a branch :) [03:49] spiv: great to know [03:51] Hey folks, I have a working redmine setup on my web server. I am using it to display my repository status. If I have nothing on the server then it's fine to do a push, and everything works... however I can't then redo a push because I get told transport does not support update; and that branches have diverged. How do I handle this? I just want to put up a copy of my repo, at whatever state it's in, with it's revision history. Do I have to delete t [03:53] distatica: you got cut off [03:53] what point? [03:53] "to delete t" [03:54] But you probably don't want a working tree on the server. [03:54] Do I have to delete the directory completely on the server and push again every time?Do I have to delete the directory completely on the server and push again every time? [03:54] The revision history is all present in the .bzr directory. [03:54] then I'm not sure what I want to do, just upload the whole directory via scp? [03:54] If you want to upload a copy of the current state of the tree to a server, the bzr-upload plugin is a good way to do that. [03:54] distatica: just "bzr push" [03:55] spiv: thanks for all your help. I've done a merge proposal. [03:55] igc: thanks for all your help too. [03:55] distatica: and probably "bzr remove-tree" once on the server to get stop the warnings [03:55] spm: Are those log times in UTC? [03:55] that's what I'm using, for the first time, but then I have to login and delete or else my client complains [03:55] hmm [03:56] mkanat: good Q; that server is on BST; but that may == UTC atm. looking.... [03:56] I'm curious about how you created the copy of the branch on the server in the first place though, "bzr push" to a remote host won't create working trees. [03:56] mkanat: yes. atm, that's UTC [03:56] spm: Okay. [03:57] spiv: I use --create-prefix with push, that does it doesn't it? [03:57] No, that's something else. [03:57] That's about whether you can push to a/b/c if the directory a/b doesn't exist yet. [03:58] bzr push --create-prefix sftp://name@host.net/~/public_html/code/myproj [03:58] that's what I use, myproj doesn't exist. [03:58] then in redmine, I point it to there for the repo. [03:58] That seems fine (although if code/ exists then --create-prefix is redundant but harmless) [03:58] code can't exist [03:58] because if it does, I get the errors [04:00] oh interesting [04:00] if I use that full line, it works [04:00] if I just do 'bzr push' it doesn't. [04:00] I thought push just used my last information.. [04:01] It uses the "remembered" location. [04:01] I'm confused [04:01] The first time you push a branch, it'll remember that location. But an already remembered location won't be overwritten unless you specify --remember [04:02] oh, how can I see what I'm attemptign to push to? [04:02] bzr will tell you when it is using a remembered location, it'll say something like "Using saved push location: ..." [04:02] You can also run "bzr info" [04:03] aha [04:03] that's it, pushing to another directory, heh [04:04] oh beautiful, now everything is working. Thank you very much. [04:06] Not a problem. [04:16] rubbs: oh, I almost forgot: please fill out the contributor agreement: . I don't remember if it's a requirement for docs rather than code, but if you don't object then it's probably simplest. [04:33] spiv: to check if ~FOO has signed, are you started at ~FOO and their groups, or at the group we care about? [04:38] lifeless: I look at ~FOO and check their groups, but I also check the wiki page [04:44] mwhudson: I have the parser, now it's just a matter of output and what we do with the parsed input. [04:45] mkanat: cool [04:46] mkanat: well, how about "what state are all the threads in when codebrowse was restarted" ? [04:46] mwhudson: Yeah, that can be done. [05:14] mwhudson: Here's the fully-parsed log that you sent me: http://pastebin.ubuntu.com/322153/ [05:14] mwhudson: It doesn't include lines that don't involve some sort of action. [05:15] mwhudson: It lists threads in reverse time order, but then the actions within the threads in forward time order. [05:16] mwhudson: I did it all by creating objects, so changing the output format should be pretty easy. [05:17] mkanat: cool [05:17] mkanat: my brain has stopped working for the day, btw :) [05:17] mwhudson: Hahahaha, no problem. [05:18] mwhudson: It seems to at least possibly hold up your theory. You can see that a lot of threads built a revision graph cache as one of their last actions. [05:19] mwhudson: Though I suppose those completed, so that doesn't help. :-) [05:19] mkanat: yeah [05:23] mwhudson: Code's here: bzr://bzr.everythingsolved.com/loggerparse/trunk FWIW. [05:24] cool [05:24] i'll look tomorrow :) [05:24] * mwhudson runs away from the computer [05:24] Okay. [05:24] LOL [05:24] night mwhudson! [05:24] Night mwhudson. :-) [05:41] Hey folks, I've been working on a little problem for a bit now, could use some advice. When I redirect from one of my controllers I get the error that headers are sent. I've checked now for whitespace and debug statements and have solved those. I am using Searchable Behavior, and I have various models to be searched (LocalListing, Classified, etc) [05:41] I have one search controller with one action (currently) to handle the request. If the $type and $query vars (and corresponding post vars) are empty I redirect to /search/ this is where my error occurs. I have narrowed this as close as var $uses = array('LocalListing') located in my search controller. I understand that I should include my controllers model name in that array, however I don't have one. Commenting out this statement fixes things (e [05:42] distatica: Are you sure this is the right channel? [05:42] It should be noted, when debug=0 the problems disappear. [05:43] oh goodness [05:43] sorry [05:43] no worries :-) [05:47] Besides lp, are there any publicly-available bzr hosting solutions? [05:48] JohnAlbin, sourceforge does, and I believe savannah as well [05:48] bzr hosting? like launchpad? [05:49] JohnAlbin, and anything that support sftp/ftp can be used (although a bit slower than the smart server) [05:49] depends what 'like launchpad' [05:49] means [05:50] I wasn't really sure, I thought John was looking for a place to host bzr projects. I use sftp+redmine as well, and that works on many web hosts. [05:50] oh geez [05:51] I completely missed the lp, I'm on a role. :/ [05:51] thought it was a nick [05:52] * JohnAlbin is googling savannah and redmine, atm. [05:52] thanks! [05:53] redmine you have to run though, it's not hosted. You need a web host that will let you do a little compiling and supports ruby [05:54] ah, ok. === JohnAlbin_ is now known as JohnAlbin [06:29] spm: Can I get more logs from around restarts? [06:30] spm: It's hard to say that something is a pattern with just two logs. :-) [06:30] But I see a few patterns. [06:30] mkanat: heh. no worries. will do; what are you after; cause the others are possibly quite large? [06:30] spm: Well, mostly I'd just like to see the last five minutes before the hang. [06:31] s/crash/hang/ [06:31] oki; that's easy. will round up to nearest 10 I 'spect; easier on my aching regexified eyes [06:31] That's fine. [06:33] oki, gimme a few and I'll grep that for you [06:34] Okay. :-) [06:36] Also, wow, loggerhead is not coping with all the requests it's getting. [06:36] DEB [20091118-05:42:40.758] [47447192702192] paste.httpserver.ThreadPool: Added task (14 tasks queued) [06:37] harumph. file size == 0. messed something up.... [06:47] spm: If you'd rather have it crash than hang, there's a max_zombie_threads_before_die option for Paste that might help. [06:48] oh man, if you can belt paste into being a bit more sane that would also be good [06:48] (or suggest a better container) [06:48] Yeah, there's also hung_thread_limit. [06:49] paste is really not expecting threads to be cpu bound though [06:49] and the default zombie_thread_timeout is like 1800 seconds [06:49] crash/hang - all equally bad from our perspective. no real preference [06:49] hung_thread_limit might help--it's supposed to be used to kill threads when they do a job for longer than X seconds. [06:49] Though that would screw with building the revision graph. [06:50] mkanat: indeed [06:50] mkanat: we kill threads after 300 s [06:50] ~ish [06:50] 300s of inactivity [06:51] A workaround for the hang might be to set hung_thread_limit to 300s. [06:51] Although you might still get 300s hangs. [06:51] i think we do? [06:52] [mkanat@es-compy loggerhead]$ grep -R hung_thread_limit * [06:52] [mkanat@es-compy loggerhead]$ [06:52] mkanat: not loggerhead [06:52] launchpad-loggerhead [06:52] mwhudson: Ohh. [06:52] mkanat: and in fact we sometimes do recover from the hangs [06:53] mkanat: but far too slowly [06:53] way too slowly [06:53] Ahh, okay. [06:53] and usually die "harder" within the next 30 mins or so fwiw. unscientific observation [06:53] mkanat: i had this vague idea that you could push off the revcache generation, not just caching to another process [06:54] then you could just kill threads after 30s and be fine with that [06:54] mwhudson: That would be a good workaround, yeah. [06:55] mwhudson: What's weird is that everything gets slow as soon as the revcache generation starts, and then it's all slow after that, even though they've been built. [06:55] I'm mostly just musing aloud, I'm still investigating. [06:55] mkanat: hm [06:56] Hmm… looks like SourceForge is on 1.10. Guess I'll use lp. :-) [06:57] mwhudson: It's only RevisionUI that builds the graph, right? [06:57] mkanat: no [06:57] basically any branch access will [06:57] mkanat: look at history,py [07:00] mwhudson: Thanks. [07:12] * spiv is done for the day [07:13] g'night spiv! [07:22] What I really wish I could get is a traceback of every thread when it's hung. [07:23] that... that's achievable. gdb attach dump goodness I assume? [07:23] spm: Well, it's in Python, so it won't be quite the same. [07:24] spm: Unless gdb can give me a python traceback. :-) [07:24] mkanat: it can! mwhudson ^^ we use your magic .gdbinit on that one? [07:25] spm: Really? Because that would save me all the trouble of log analysis. [07:25] really? in that case, no we cna't. :-P [07:25] mkanat: http://pastebin.ubuntu.com/322211/ [07:25] spm: lol [07:25] stick this in .gdbinit [07:26] oh [07:26] or do you want this on prod? [07:26] mwhudson: Yeah, on prod, when it's hung, before it's restarted. [07:26] spm: in your court i guess [07:26] all the bits are there i think [07:27] The log analyzer unfortunately can't tell me which threads are actually still attempting to fulfill their requests and are just in a wait state during the hang. [07:27] Because I can't tell the difference between "client gave up and went away" and "thread is waiting for data". [07:28] mwhudson: wfm; lets try that then. [07:28] mkanat: next batch of logs enoute anyway. fwiw. [07:28] spm: Okay, cool. [07:28] I'll see if I can make it hang locally. [07:33] bbs [07:37] spm: How do you know when there's been a hang? It seems like the restarts happen sometimes just seconds after the last request to the system. [07:38] mkanat: 1stly we'll get a nagios check fail [07:38] times out - from memory [07:39] will try the thread-debug trick - see if that dumps anything useful [07:39] often that also hangs tho [07:39] try a local manual nagios check - 10secs limit - that time out == considered dead. restart. [07:40] Hmm. [07:40] Okay. [07:40] is one of those... greatest good for greatest numbers cases. [07:40] * mkanat nods. [07:40] it sucks for those whose sessions we just KO'd; but.... [07:42] So the hang itself likely happens long before you actually kill the process. [07:43] It may in fact not even be hanging, just becoming really slow. [07:43] I have a theory, even. If building the revision graph is really taking 4-5 minutes for each thread.... [07:43] And we get 5 busy threads building revision graphs, then paste won't spawn any more threads. [07:43] sure. from our perspective the difference is ... not that significant tho [07:44] hang vs slow as in [07:53] mkanat: we got one! attaching now. [07:53] spm: Awesome!! [07:53] well.. no, but yes :-) [07:55] Hahaha. :-) [07:57] argh. what's the easy way to attach to a process; do the bt/pydump goodness without having to page all the time? [07:57] Oh... [07:57] * mkanat tries to remember the command. [07:57] spm: Maybe if your output isn't a terminal it just won't ask you to page at all? [07:57] hrm. tricky.... [07:58] gargh; we're about to lose codehosting anyway - doing a h/w upgrade on it. 2 mins.... [08:00] mkanat: oki; my bad; I'll do some docco reading and be ready for the next one. [08:00] spm: Agh, okay. :-) [08:03] mkanat: max, may I make you known and introduce you to mthaddon, tom, he's another LOSA and normally starts around this time of the day/night/wherever [08:03] Great. :-) [08:03] Hey mthaddon. [08:03] o/ [08:06] mkanat: btw re bug 156453 i think the problem is likely to be connected to the insane number of branches our loggerhead sees [08:06] Launchpad bug 156453 in loggerhead "production loggerhead branch leaks memory" [Critical,Confirmed] https://launchpad.net/bugs/156453 [08:07] mwhudson: Could be, though I ran on a limited number of branches (five) and still saw a leak. [08:07] mwhudson: If you see the leak faster than me, it could be that there is more than one leak. [08:17] everything ok with LP? [08:17] bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/.bzr/branch/branch.conf: Unable to handle http code 503: Service Temporarily Unavailable [08:23] BasicOSX: ahh. I didn't update the topic here. my bad. Codehost is offline for a h/w update. ~ 4 hours unf. === spm changed the topic of #bzr to: LP Codehosting offline for H/W update 0800-1200 UTC | Bazaar version control system | 2.0.2 and 2.1.0b3 have gone gold! time to build those installers | try https://answers.launchpad.net/bzr for more help | http://bazaar-vcs.org | http://irclogs.ubuntu.com/ | Current pilot: spiv [08:53] where can I find info about bzr branch formats? google search just returns crap :P [08:56] RenatoSilva: what kind of info you need? [08:59] bialix: I-have-no-idea kind :) [09:02] cool [09:20] I find the drawings in the Workflows chapter of the User Guide (command line) not as clear as they might be. Where can I give some feedback on the documentation? [09:36] oh that's why nothing works [09:36] rogererens: launchpad is down for a hw upgrade atm, but the mailing list at https://launchpad.net/~bzr-doc would be a good bet [09:38] o_O [09:38] * JohnAlbin looks at the channel topic. [09:38] wait. is LP codehosting down right now? [09:38] yes, the topic says so :p [09:39] I assume that's why I'm getting this error: "ssh: connect to host bazaar.launchpad.net port 22: Connection refused". bah. [09:40] yes [09:41] * JohnAlbin starts watching http://twitter.com/launchpadstatus for updates [09:43] LarstiQ: thanks! [09:48] why does everyone uses twitter [09:48] *use [09:49] mwhudson: Okay, pretty much figured it out. No idea what to do about it yet, that's Phase 2. :-) Phase 1 was figuring out what the heck was going on, for sure. [09:54] mkanat: cool [09:54] mkanat: what is going on? [09:54] mwhudson: You were pretty much right, except that it doesn't actually hang. [09:54] ok it's just severely degraded? [09:54] mwhudson: Generating the revision graph for a very large branch simultaneously several times in various threads slows loggerhead to a crawl. [09:54] Yeah. [09:54] mkanat: btw [09:55] mkanat: where are you? [09:55] mwhudson: Mountain View. [09:55] i'm sure you should sleep at some point [09:55] * mkanat shrugs. :-) [09:55] oh not too insanely late i guess [09:55] My girlfriend's still at work, I'd probably be waiting up for her anyway. :-) [09:55] time for me to zzz anyway [09:56] mwhudson: Anyhow I suspect that just opening a few revisions on a launchpad branch that hasn't been graphed yet will cause it. [09:56] launchpad itself, bzr itself, mysql -- those seem to be the only ones large enough to cause it. [09:56] I'll send off an email about it to you and Francis. [09:56] thanks, sounds like a good result for day 1 [10:09] bialix: can't find anything about branch formats in bzr docs [10:13] RenatoSilva: bzr help formats ? [10:14] * bialix still does not understand what RenatoSilva looking for [10:14] RenatoSilva: what you looking for? [10:15] definition of formats? [10:15] or understanding what's under the hood? [10:16] mwhudson: Welcome. :-) [10:19] bialix: I am just one that has no idea about it and is curious about all those weird format specs [10:20] bialix: bzr help formats tells about rich-root but does not explain or points the user to somewhere else [10:20] bzr help current-formats [10:20] bialix: in general, it just says 2a ig good and you should be using it, it's not new to me [10:20] bzr help other-fromats [10:20] bialix: I have run bzr help current-formats already [10:21] RenatoSilva: bzr core devs think that understanding of deeper internals is not for mere mortals [10:21] bialix: I'm still reading it but it doesn't seem to include any explanation of what is rich-root [10:21] so there is no detailed spec on repo format [10:21] compare to git where you need to understand all internals first you even start using it [10:21] bialix: the format names are out of order, if there should be any [10:22] rich-root is repository format variant which store unique id for root of your tree [10:22] RenatoSilva: open .bzr/checkout/dirstate file and look at it [10:22] bialix: e.g are B+trees in 1.9 an improvement (included by all further formats), or an specific feature of that format? [10:23] RenatoSilva: in bzr you need to remember that there is 3 different beasts: branch, repository and working tree [10:23] that's complicate understanding a lot [10:23] rich-root is the "feature" of repository [10:24] RenatoSilva: if you really want to understand all gory details you need to deep into .bzr/ directory, inspect files there and then try to read the code which handles it [10:25] B+trees index introduced in 1.9, yes [10:25] it may be using in all later formats, e.g. 2a [10:25] bialix: ok I just suggest to order help current-formats [10:26] they are sorted for me [10:26] bialix: ok, so each entry in the help explains improvements for later use, not specific features (it's not a format shop, it's a log) [10:26] it's format zoo, not format shop [10:27] you may call it a log [10:27] does not really matter [10:27] I mean, I thought it was a menu showing each format, so that you choose which one fits your needs with their special features, but it's clear now [10:28] bialix: sorry it's ordered, except 2a is displayed 1st [10:29] RenatoSilva: http://pastebin.com/d78d7b288 [10:29] RenatoSilva: 2a is the one you should use [10:29] bialix: in the first place that's what I wanted, and overview of the current formats etc [10:29] RenatoSilva: there was decision helper from lifeless: use either default format or what your upstream use. if you're using bzr-svn -- use rich-root [10:30] lifeless: I have big doubts [10:30] bialix: I just thought I would find it in the docs, not bzr help [10:30] bialix: so, thanks :) [10:30] most docs generated from help [10:30] bialix: about 2a? I saw your comment about merge, but thats a working tree thing, not repository layer [10:30] it seems these topics are not found their way to docs yet [10:30] lifeless: wt thing? [10:31] the same id for '' issue [10:31] sorry, different id for '' [10:31] Bug 484706? [10:31] Launchpad bug 484706 in bzr "merge 2 unrelated branches in rich-root format cause path conflict for the same file-id" [Low,Confirmed] https://launchpad.net/bugs/484706 [10:32] bialix: about your paste, I see 2a in the top, and yours is missing it [10:32] yeah [10:32] RenatoSilva: this is from bzr 2.1.0b3 [10:32] bialix: which removed 2a from the help? [10:32] RenatoSilva: lol [10:32] I dunno [10:33] 2a listed as default [10:33] but yes it hould be there [10:33] but yes it should be there [10:33] time for filing a bug? [10:34] ghaa! 2a now listed in other-formats [10:34] bialix: 2.0.2: http://pastie.org/705698.txt [10:34] I think it's a bug [10:34] lifeless: does 2a will not default format in 2.1? [10:34] even if not default (o.O), I think it should be there [10:34] bialix: I don't think we'll change the default for a while now [10:35] bialix: so 2a should still be the default [10:35] bialix: do you have a plugin that changes the default perhaps/ [10:35] ? [10:35] RenatoSilva: please, file a bug about this topics? [10:35] oh [10:35] yes [10:35] I am [10:35] sorry guys [10:35] my bad [10:36] that plugin also removes the 2a text? [10:36] its a side effect [10:36] current-formats is dynamic [10:36] cool [10:36] why would it remove it, for what reason [10:37] just because it is not default? but none of them are default except one of course [10:37] RenatoSilva: I have plugin format1 which forces usgae of pack-0.92 as default format [10:37] and they're all listed there [10:37] RenatoSilva: I have plugin format1 which forces usage of pack-0.92 as default format [10:37] bialix: 0.92 is a very old format I suppose [10:37] yes, but I need it [10:37] for my work [10:38] some our machines have installed bzr 1.2 [10:38] bialix: but the plugin should not remove the 2a text, should it? [10:38] bialix: 1.2 oohh [10:38] RenatoSilva: no, plugin does not working with help text, but the text itslef generated dynamically [10:38] bialix: is it you that sends some msgs twice, or is your irc client? :) [10:38] so there is some side effects [10:39] it's me [10:39] bialix: so it it a bug or not? [10:39] no [10:39] it's not bug in bzr [10:39] *is it, ok so cancel my report [10:39] at least it's not worth to file it. [10:39] imho it is a bug, but ok [10:39] resolution on this bug would be: bialix is dumb [10:40] it's bug from plugin, so maybe I should fix it in my plugin [10:40] ah ok [10:41] * RenatoSilva is curious about checking what formats his local branches are using [10:41] bzr format is not a command :( [10:41] bzr info maybe, lmt [10:42] oh, why is it 0.92 here too? [10:42] branches not auto-magically upgraded [10:42] I have other one here 'unnamed' o.O [10:42] you have to upgrade each branch manually [10:42] bzr info -v [10:43] unnnamed -- means a mix of different fomats of branch/repo and wt [10:43] bialix: but 0.92 sounds like I created the branch in the time of bzr 0.92 (?) [10:43] 0.92 was default format until bzr 2.0 [10:43] why? [10:43] so any branch created by default in this format [10:44] why? what whay? [10:44] why it was default? [10:44] maybe for backward-compatibility reasons [10:45] oh I see, and it's fine to break it in big releases (2.x), nice :) [10:45] yep [10:46] furthermore it's backward-incompatible break [10:46] bzr info -v: Format: control: Meta directory format 1, working tree: Working tree format 6, branch: Branch format 7, repository: Packs 6 (uses btree indexes, requires bzr 1.9) [10:46] once you upgrade to rich-root (2a) you can't go back to poor-roots [10:46] is there any rich-root explanations for dummies? :) [10:47] lol [10:47] bialix: about bz info, can't get format 1,2, 3,4... [10:47] RenatoSilva: most likely you have 2a branch ion shared repo which is 1.9 [10:48] or something like that [10:48] I'd expect to see the format names displayed in help rather than ordinal specs [10:49] what is ordinal specs? [10:50] the names, format 1, 2, 3, 4 [10:50] bialix: Format: control: Meta directory format 1, working tree: Working tree format 6, branch: Branch format 7, repository: Packs 6 (uses btree indexes, requires bzr 1.9) [10:51] it's internal [10:51] they are internal names [10:51] formats like pack-0.92 or 2a is combine names [10:51] s/is/are/ [10:52] because you have sum of 3 formats (Mets directory format 1 is not changed for years) [10:54] bialix: in LP there's a section in the branch "Repository format: Packs 6 (uses btree indexes, requires bzr 1.9)" [10:54] it's eq to 1.9 format [10:55] wouldn't one be interested in the "storage formats" like displayed in bzr help current-formats? [10:55] rather that this specific internal info? [10:56] heh [10:57] this is question not to me [10:57] the strings you see are hardcoded now forever [10:57] you can see them in .bzr/branch/format [10:57] .bzr/repository/format [10:57] .bzr/checkout/format [10:58] rhey are identify of specific format [10:58] I mean in LP [10:58] well, I dunno [10:59] * bialix -> lunch [11:00] thanks for help bialix === mthaddon changed the topic of #bzr to: Bazaar version control system | 2.0.2 and 2.1.0b3 have gone gold! time to build those installers | try https://answers.launchpad.net/bzr for more help | http://bazaar-vcs.org | http://irclogs.ubuntu.com/ | Current pilot: spiv [11:09] lp-users-editable bzr wiki is recent? [11:17] hello [11:19] I proposed to merge a branch of mine into bzr. I got some comments, changed the code and pushed the updated branch. What should I do now to make to tell the reviewers (and launchpad) that I updated the branch? [11:20] I'd resubmit the merge proposal and/or subscribe the reviewers to the branch (try also #launchpad) [11:23] hi guys, i'm getting a bunch of NoSuchRevision exceptions when trying to diff local trees which are checkouts from an SVN repository [11:24] is there any way to resolve these, or failing that just remove all the Bzr metadata from the SVN repo and start afresh [11:28] lifeless, still around? [11:36] hi all [11:36] i have a question on bazaar explorer [11:37] when i hit the "Commit" button on the toolbar [11:38] the "Commit" window pops up [11:38] which is "always on top" [11:38] why is that? [11:38] i am used to inspecting the diff while i am preparing to commit [11:39] in order to write details about the commit in the "Message" area [11:39] with the "Commit" window always on top i have to scroll it in order to see the diff window which is rather annoying [11:40] anyone willing to help? [11:40] is there any way to change this behaviour? [11:40] boogiepets: there is diff button in commit window [11:41] boogiepets: are you using explorer + bzr-gtk [11:41] ? [11:41] yes, exactly [11:41] sorry, I dunno then [11:41] are you mysqler? [11:42] nope [11:42] the "Diff" button is indeed there [11:42] then install qbzr and use it as your gui widgets for explorer [11:42] but when i press it, the diff window pops behind the commit window [11:43] hmm [11:43] we have one bug report in qbzr about such weird behavior [11:43] hmmmm, okay i'll try qbzr although i was getting quite fond with bazaar explorer [11:43] there is still no understanding what's going on [11:43] exactly the same thing? [11:44] commit window "alwasy on top"? [11:44] boogiepets: explorer will use qbzr widgets [11:44] lemme find bug report [11:44] soorrrrry [11:44] just a mo [11:44] i am using nautilus and bzr-gtk [11:44] i am in Ubuntu 9.04 environment [11:45] boogiepets: in Explorer: Tools -> Options and then select Suite -> qbzr [11:46] bug 421039 [11:46] Launchpad bug 421039 in qbzr "Diff windows launched from qci are always in the background" [High,Confirmed] https://launchpad.net/bugs/421039 [11:46] boogiepets: ^ [11:47] check if you encounter the same bug, please [11:47] add the comments there about your system and library versions' [11:47] OK, for me that was "Edit -> Preferences" [11:47] and qbzr was already selected [11:47] will be nice if Gary can figure out what's the problem [11:48] i see that gtk provides a different window on commit [11:48] boogiepets: ok, so you're using qbzr in fact [11:48] but i like the qbzr one more [11:48] yes correct [11:48] yes, bzr-gtk and qbzr are 2 different plugins [11:48] allright, installing the various things got me confused [11:49] so i am using qbzr at the "Suite" option [11:49] i'll check the bug report now [11:49] ok, bbl [12:04] ok, posted comment on launchpad [12:04] would really like to see this fixed [12:04] thanks bialix [12:04] see ya [12:54] hey guys. [12:54] i'm trying to use bzr as a way of keeping graphics work, collections of photos that people drop onto a public samba share, in sync with my local copy on my windows graphics station. [12:55] i've just added 34 meg of stuff to the repo, and syncing up to the public shrae, which i'll trigger an update on when it's finished so the files on the public share are synced. [12:55] the problem is that it takes FOREVER! [12:55] 34 megs will transfer on our network in under a minute. [12:56] NET||abuse: how long is forever? [12:56] I've been waiting a good 10 minutes at this point. [12:56] NET||abuse: and what version of bzr, and what transports? [12:56] and i'ts only 36% in Build phase: Adding file contents [12:57] on windows bzr 1.18.1 [12:57] transports? network shares, smb [12:57] is that what you mean? [12:57] NET||abuse: hmm, I guess that gives me enough info [12:57] * LarstiQ was after sftp://, bzr+ssh:// etc [12:58] in `bzr push bzr+ssh://host/path/` [12:58] it's a dapper drake ahh :) [12:58] but it seems you're treating it as a local filesystem [12:58] which will mean it creates a workingtree [12:58] in windows it's bzr push P:\graphicdesign\sitedesign\ [12:58] though i'm using hte tortoisebzr interface right now :) [12:59] ok [12:59] NET||abuse: what format is it in? `bzr info` will tell you [13:00] standalone tree (format: pack-0.92) [13:00] NET||abuse: ok, you might want to try 2a [13:00] NET||abuse: and if you don't need the working tree, getting rid of that will help a lot [13:01] well, the idea is that other people on the network can drop files into the network share, which is a working copy, then on the share working copy, i just do a nightly bzr add, bzr commit and then on my local copy, i do a bzr pull [13:02] or bzr add; bzr commit; bzr merge; bzr commit; bzr push [13:02] NET||abuse: ok, so you absolutely need the working tree then [13:02] and one final bzr up on the share again . [13:02] NET||abuse: are you the only one who interacts with it via bzr? [13:02] yeh. it's to keep stuff on my graphic design station in sync with what's on that share, so other pople have access to what i've produced [13:02] at the moment yeh. [13:02] ok [13:02] i'm the only bzr user. [13:03] i just check for new stuff being dropped in periodically. [13:03] NET||abuse: then please try `bzr upgrade --2a` and see what the effect is of that [13:03] if it's still slow, why needs figuring out [13:04] hehe, i seem to have accidentally duplicated my directories.. haha,, i had p:\garphicdesign\sitename.com then i did bzr push with the tortoisebzr gui, and it pushed to p:\graphicdesign\graphicwork\ which created a new branch, that's weird... [13:05] LarstiQ, that would be more of a reason it took so long, it actually branched the whole repo of 1.43GB, not just the 34MB of new images i added. [13:05] i just didn't realise it was doing that. [13:05] still,, what's the advantage of the 2a version? [13:05] is it just hte archiving schema? what does it do better? [13:09] NET||abuse: the important part here being a more efficient storage, let me look up the link [13:09] hmm, cool. ok. [13:10] why does it not create that format by default? is my bzr version on windows just too old? [13:10] it creates it by default from bzr version 2.0.0 [13:12] ah,, but my windows bzr install is only bzr 1.18.1 [13:12] http://bazaar-vcs.org/Benchmarks?highlight=%28benchmark%29 is what I was thinking of iirc [13:12] NET||abuse: right, but 1.18 can read and write 2a [13:13] but it hadn't been made the default yet [13:13] so when the switch was made, there were a couple of older clients that could handle the format too [13:13] ahh, ok [13:14] might see if i can get a 2.x client version for my windows box then. [13:14] my linux laptop is ubuntu karmic, which is packaged with 2.0.1 , is that the most recent stable? [13:14] NET||abuse: it is right now, 2.0.2 is on it's way to release [13:15] cool. [13:15] have to say, it's getting better than when i first used it. [13:15] or at least i'm getting more comfortable with it.. [13:15] that's the idea with software development ;) [13:15] switching from svn is tricky :) [13:16] in terms of changing your mindset on how things should work. [13:16] * LarstiQ nods [13:16] i use bzr mostly for my personal projects now, in work we are still svn centric, the main projects are svn + trac versioned. [13:16] have to say, svn is good in that your certain it's going to work. [13:17] i've had a few bugs during bzr usage, but mostly they're solved with things like updated repo formats, or i just ask someone in here :) [13:18] svns maturity (and thus 3rd party support) is certainly a feature [13:19] aha,,, i imagine bzr or git will probably make it's way to primary use in our office soon. [13:20] right, i need lunch :) [13:21] oh, one more thing, i need a good workflow for managing web dev projects, i design sites and code php or python, [13:21] at the moment i develop locally, tracking in bzr, then push the branch up to a working copy on my server, then update the working copy on the server and just cp -rf ./dir1 /var/vhosts/sitexyz/ [13:22] for each directory of stuff that needs copying.. [13:22] how to extend bug tracker support for commit --fixes? [13:22] i'm wondering about a better deployment management strategy. [13:22] NET||abuse: I'd use bzr-upload [13:23] NET||abuse: http://bazaar-vcs.org/BazaarForWebDevs http://bazaar-vcs.org/BazaarUploadForWebDev [13:23] how to extend bug tracker support for commit --fixes? can I define new prefixes? like bzr bugs fb=http://foo.bar [13:24] RenatoSilva: yes, see `bzr help bugs` [13:31] thanks! [13:36] but why bugzilla_squid_url = http://www.squid-cache.org/bugs [13:36] why not be free to create a template like [13:37] bugs_prefix = http://www.anyone.org/this_work/this_way?bug_id=%s [13:38] so that you bzr commit --fixes=prefix:123 [13:38] RenatoSilva: as `bzr help bugs` says, you can do that with bugtracker_prefix_url = http://www.anyone.org/this_work/this_way?bug_id={id} [13:40] LarstiQ: oh! didn't read it all after this part: "If your bug tracker can't be described by one of the schemes described below then you can write a plugin to support it." [13:41] RenatoSilva: the sentence before that: along with a template mechanism for other bugtrackers with simple URL schemes. [13:42] RenatoSilva: maybe that should be "this will cover most bugtrackers"? [13:42] why would not that template mechanish doesn't work with some bug tracker? [13:43] s/mechanish doesn't work /mechanism work [13:43] RenatoSilva: because some are convoluted and you can't just plug in a bug number [13:44] ah. Do you know one? [13:45] RenatoSilva: not off the top of my head, I may have repressed knowledge of such a beast [13:51] Hrm, didn't qbzr display branch nicks before the most recent version? [13:55] the truncation of branch names in the tree is also less than welcome === jam1 is now known as jam [14:07] Hm, the branch nicks were lost in a refactor merged yesterday [14:11] Hi! I've got a thing here that feels like a bug, but I'd like your opinion on it. It's about file system encoding. [14:13] I'm running trac-bzr as a fcgi process, and it seems that locale information (LC_CTYPE in particular) don't get passed along. So python has no reliable clue about the current filesystem encoding, i.e. sys.getfilesystemencoding() doesn't give the 'UTF-8' it should. Not bzr's fault so far. [14:14] Now when bzr does list directories, e.g. in transport.local.list_dir, the os.listdir tries to convert byte strings to unicode, but fails on non-ascii chars. For these names, it returns raw 8-bit strings. list_dir applies url escaping to these, and the end result is a bunch of url-escaped utf-8 names. Fine so far. [14:16] Trouble starts when I use one of these names to e.g. clone a transport for a subdir and listing that subdir. In that case, the url gets decoded to a unicode name using utf-8, resulöting in the correct unicode name. Feeding that name to os.listdir causes a UnicodeEncodeError, as the name isn't ascii, and python doesn't know how to convert it to ascii. [14:17] So I wonder, shouldn't the url given for a local repository on a byte-oriented filesystem (i.e. *nix) be byte-oriented as well, instead of unicode-oriented? [14:18] There is a simple correspondence between 8-bit decoded urls and 8-bit filesystem names. And any name returned by the python os module can be easily reverted to its 8-bit form using sys.getfilesystemencoding(). [14:18] What do you think? Bug? Feature request? Or simple misconfiguration, as python should know the file system encoding? [14:54] Out of curiosity: is there some document anywhere about how to set up bzr access over ssh in a safe and secure way? Like http://svnbook.red-bean.com/en/1.4/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth for ssh? What's e.g. launchpad doing to keep people from writing all over their system? Custom in-house plugins, or something available to the public? [14:57] Is "bzr serve --directory=/some/dir" guaranteed to restrict access to said directory? [15:03] maxb: hello [15:03] hello [15:04] can you elaborate on "the truncation of branch names in the tree is also less than welcome"? [15:04] maxb: can you test my fix for Bug 485133 [15:04] Launchpad bug 485133 in qbzr "Reference to undefined name 'revids_load' in log.py" [High,In progress] https://launchpad.net/bugs/485133 [15:04] ? [15:05] 1: I'd rather see my long branch names in full, even if they are long [15:05] 2: I will try later, but I don't really know what I did to provoke it in the first place, so it may be difficult [15:06] maxb: I've added truncation long ago on 20 symbols [15:06] we can move this into config [15:06] Indeed, I have no idea why I only just noticed it [15:06] but I can suggest you where in the code you can change the limit [15:06] Also, it only seems to apply to branch names, not tag names, which is a bit inconsistent [15:07] about nick and tags and bugs: this is indeed regression from garyvdm [15:07] Gary! [15:07] yes, only branch names truncated, because I had evidence of 120 chars long nick [15:08] btw, this is branch nicks, not branch names [15:08] so you can do: bzr nick "my very very very very very very very long nick" and guess what happnes [15:09] maxb: you can change branch nick with `bzr nick` command [15:09] yes. But equally you can do: bzr tag my-very-very-very-very-very-very-very-very-very-very-long-tag [15:10] tags is psecial [15:10] sorry [15:10] Surely a certain amount of "you're doing it wrong" applies if you need names -that- long..? [15:10] tags is special [15:11] maxb: truncation done in loggraphprovider.py around line 367 [15:11] tag = bi.branch.nick [15:11] if len(tag) > 20: [15:11] tag = tag[:20]+'...' [15:12] LeoNerd: Arguably there's a certain amount of "you're doing it wrong" if you're using CVS, but we are :-) [15:12] but yes, we're not very consistent here [15:12] maxb: Oh.. is this for cvs->bzr branch conversion? [15:12] yup [15:12] Heh.. :) Might have guessed... [15:14] maxb: really? [15:14] scary [15:14] Yes it is, that is why I am attempting to drag my team kicking and screaming out of the dark ages and to bzr [15:18] maxb: about truncation: I won't mind if you file this wish as bug report [15:32] MvG: "bzr serve --directory=/foo/bar" does guarantee to not serve outside of /some/dir [15:32] hi jam [15:32] jelmer: if you are around... "bzr branch lp:bzr-svn" still seems to be broken for me... [15:32] hi bialix [15:33] I don't know if you and mwh, et al sorted out a plan for fixing it? [15:33] jam: thx! [15:34] jam: I'll have a look [15:34] MvG: as for trac-bzr, it definitely needs to know the fs is utf-8 [15:34] I don't know how to tell it that, though. [15:35] jam: Found out, at least for my case: reconfigured my mod_fastcgi to set the LANG environment variable. [15:35] I guess it's not worth the effort to work around a possible misconfiguration on the bzr side. [15:36] MvG: it is hard to do, because we are relying on the underlying python implementation for a lot of things [15:36] It would be possible, but probably would require case distinctions for different os. [15:37] Never mind, and thanks for your opinion. [15:37] MvG: arguably it would be nice if python defaulted to UTF-8 as the fs rather than ASCII on platforms that didn't give other indications. [15:38] In some cases yes, in others no... [15:38] jelmer: I'm not sure if you followed mwh's discussion of how it happened [15:38] but basically, your dev focus used to be a mirrored branch [15:38] so all your lp branches are stacked on it [15:38] Oh, and by the way, jam, thanks for approving my trac-bzr team membership! [15:38] when you changed it to hosted, then the newly created branch got stacked elsewhere, and things got circular [15:39] MvG: np, you've been doing a lot of work there anyway [15:39] jam: Do you know how the trac-bzr development usually works? Can I simply start triaging bugs or committing changes, or should there be some kind of review or similar? [15:41] MvG: I think trac-bzr is pretty 'loose' in changes [15:41] I don't know that anyone is actually maintaining trunk [15:41] well, actively maintaining [15:42] In that case I'll start merging my minor fixes soon, and try to get some kind of review on my quoting branch once I've got my latest ideas coded... [15:42] There seems to be a team mailing list, but I couldn't find any messages in the archive. Is that because there were none, or is lp broken? [15:43] https://lists.launchpad.net/trac-bzr-team/ [15:44] I really should remove myself from that team, it's not like I actually know the code anymore [15:44] MvG: I believe it is because there were none [15:46] mzz: I'm sure you know it better than *I* do :) [15:46] jam: you might be surprised! [15:46] mzz: since I've never read it at all... [15:47] at best we would be equal :) [15:48] I don't even remember if any code I wrote is in this incarnation of the plugin [15:48] oh! trac-bzr hackers here! [15:49] quote so. [15:49] MvG: good luck with your changes though. At the time I actually hacked on this getting trac to play ball was not fun. [15:49] (I'm hoping it has improved) [15:50] I'm only touching the most prominent issues so far. [15:50] Nothing seems impossible yet... ;-) [15:51] I'm still using old version of trac-bzr with trac 0.10.5 [15:51] with bzrlib from bzr 1.5 [15:51] then something becomes broken [15:51] I really hope that I can upgrade my trac setup soon [15:52] MvG: does new improvements to trac-bzr will require upgrade to trac 0.11? [15:52] mzz: but now that you mention it, get_previous is causing me trouble lately (https://bugs.launchpad.net/trac-bzr/+bug/484983) and as that code seems to be from you in large parts, do you think you can remember your intention there and explain it to me, so I can fix it properly? [15:52] well, I can try [15:52] bialix: good question. Don't have a trac 0.10 around, so I wonÄ't be able to test with 0.10, so I can make no guarantees... [15:53] do you consider 0.10 support important? [15:53] If so, it might be worth a branch... [15:53] MvG: Trac 0.10 is very widely deployed [15:54] Because I assume not all my changes will play nicely with 0.10. If I start fixing the Wiki macro (https://bugs.launchpad.net/trac-bzr/+bug/484640) using genshi, that's for sure. [15:54] MvG: I'm guessing that's incredibly evil code I wrote to hack around a performance problem, but let me read my changelog entries and see if I remember anything [15:54] I won't object to upgrade to 0.11 and support only it if it helps to make trac-bzr better [15:54] Launchpad bug 484983 in trac-bzr "BzrDirNode.get_previous broken" [Undecided,New] [15:55] just in 2007 when I've installed it on my work it was difficult to use 0.11 on Windows [15:55] MvG: anyway, if the trac-bzr is not going to be released soon, maybe it makes more sense to concentrate on 0.11 only [15:55] Launchpad bug 484640 in trac-bzr "Branches wiki macro is defunct" [Undecided,New] [15:55] gioele: Don't see a "release" soon. There are quite a number of open bugs, and judging from the fact that the ones I encountered weren't already reported for the most part, I assume there's a lot of work ahead. [15:57] MvG: go ahead and forget my remarks about 0.10.x ;) [15:57] But as there is such an active trac-bzr discussion here at the moment: how would you like this syntax for changesets: [branches,name,42] to refer to revno 42 or the branches/name branch? The key ingredient is the substitution of / by , as trac doesn't like slashes in revnos. [16:00] MvG: did you spot http://bazaar.launchpad.net/~trac-bzr-team/trac-bzr/trunk/annotate/head%3A/HACKING#L50 ? [16:01] mzz: not yet. [16:01] MvG: it is likely trac changed substantially since I wrote that function and just removing it is now sane [16:04] MvG: I think I wrote that for two reasons (and it's actually doing two different things depending on how it gets called): to quickly get a reasonable "previous" link when browsing changesets, and to generally be faster than going through get_history by only loading a single changeset instead of the complete branch history [16:05] how do I show a diff from one specific rev to another? [16:05] but I'm still re-reading [16:05] Adys: bzr di -rfirstrev..secondrev [16:05] thanks [16:08] hello amanica_ [16:09] MvG: after skimming get_history I suspect you're right and get_previous can just be killed, but do poke around a bit to make sure performance isn't stupid anywhere [16:10] mzz: It's the part about "avoiding get_history" for which I don't understand how it works, and which would affect performance. [16:10] Right now it does use get_history, I guess. [16:11] MvG: iirc if you just remove the function the default implementation calls get_history [16:11] hi bialix [16:11] how are you? [16:11] not bad thanks, almost recovered from flu [16:11] you? [16:12] MvG: I think I wrote a specialized implementation mainly (perhaps exclusively) for performance reasons: bzr ended up doing something involving loading lots of trees that was slow, and I thought I could get away with loading a single known revision by id instead, which was much faster [16:12] amanica_: too much work, too little time for hacking [16:12] MvG: but that's years ago, get_history probably got smarter, and it's usually calling into a completely different bzr repository now [16:12] You mean different repo format? [16:12] MvG: so if removing get_previous works *and* performs reasonably, I'm pretty sure that's the right thing to do [16:12] bialix: yup, me too. also trying to catch up to the bzr mailing list [16:13] MvG: yep [16:13] I'm not sure my setup is suitable to seriously test performance: I have only a limited number of commits, and quite a number of other factors influencing performance. [16:14] MvG: again, it's been *ages*, but I think the point was that there were a couple of trac webui pages that called get_previous to get something like a "previous changeset" link, while get_history was only called for pages like a log view page (that actually displays more than one log entry) [16:14] maxb: several of your reported bugs in qbzr just fixed. thanks for reports! [16:15] otoh I'm pretty sure your idea can't work: give a revid, to find the previous rev where that thing changed, you have to do one of two things: [16:15] either take the previous revision of the whole branch, find the last modified revisoon of every child, and take the latest of these, [16:15] or take preceeding revisions one after the other in reverse chronological order until you hit one that touches the dir in question or its content. [16:15] Both involve some kind of loop which I don't see in your implementation, but which might be faster than a full get_history. [16:15] MvG: so get_history ended up calling into a bzr api that efficiently extracts a lot of history (in batches) (which made the revision log page a lot faster) while get_previous avoided that. [16:16] MvG: but at that point I was much more interested in getting it fast than in making sure all links everywhere in the webui behaved consistently. [16:16] mzz: Still is that way, and the proken "Previous Chang" link is what got me started to investigate. [16:16] MvG: and since that time the entire thing got a lot smarter about caching etc (I think all of BranchCache was added later) [16:17] MvG: so if it performs acceptably on branches with a nontrivial amount of history you should just kill the function, I think. === ubott2 is now known as ubottu [16:17] OK, thanks mzz, I'll have another look now, with this info at the back of my head, and will see if I can work out a good fix or will simply drop the method. [16:19] MvG: just make sure you test on a nontrivial branch (few 100 revisions), if what I remember about this is correct that matters [16:19] well, mattered :) === bac is now known as bac-lunch [16:20] MvG: and don't worry about "other factors affecting performance", this was an order of magnitude thing, anything less than that is not worth specializing get_previous for [16:21] it's *supposed* to do the same thing as get_history, anything else is me cheating [16:22] and now you've made me remember about http://bazaar.launchpad.net/~trac-bzr-team/trac-bzr/trunk/annotate/head%3A/HACKING#L85 :( [16:29] mzz: I already made close aquaintance with that __del__ method: https://bugs.launchpad.net/trac-bzr/+bug/484324 [16:29] Launchpad bug 484324 in trac-bzr "memory leak due to uncollectable BzrRepository" [Undecided,New] [16:29] MvG: yeah, I think I saw that one in my bug mail :( [16:29] I guess I should have a read through HACKING, see what it says and what might need updating when I commit stuff. [16:31] Had a close look at get_history. Looks like that's really what is needed, and in case the caller closes the generator after retrieving a single result, the performance impact shouldn't be too high. [16:34] MvG: at the time I wrote get_previous there *was* a noticable performance impact. But I suspect that's simply no longer the case (since someone who cared more about the revision log view than I did at that time optimized it, or I did it myself later) [16:35] mzz: Considering your useful input here, I'd hate to see you leave the team, as you stated somewhere up there. [16:35] MvG: as for the __del__ method: I wonder if you could create a (non-proxy) weakref every time you add a branch with a callback that closes that branch. Although I'm not sure where to store that weakref (on the branch would probably work, but that's ugly) [16:36] MvG: actually, I think you could give your LockedBranches a weakref callback (triggered by the BzrRepository owning it going away) that calls unlock instead of using __del__ [16:36] I'm not sure I understood you correctly, but I fear this might cause branches to get collected while I still have use for them. [16:37] any benefit in the weakref callback over the del as I implemented it in LockedBranches? [16:37] MvG: it's not __del__ :) weakrefs don't break the cycle collector like __del__ does. [16:38] __del__ doesn't break a thing is it's not in a cycle. Therefore my new approach works. [16:39] MvG: the practical difference would be that LockedBranches.unlock gets called immediately once the owning BzrRepository goes away, independently of any other (cyclical) references LockedBranches is involved in. [16:41] MvG: so it seems a bit safer, since if anything manages to form a cycle involving LockedBranches you'll be back where you started if it uses __del__. [16:41] but hey, I added the original __del__, I can't complain no matter which way you go here :) [16:42] * MvG is reading up on weakref callbacks [16:43] they're easy. Sec, lemme branch [16:44] mzz: I guess what troubles me most is that the weakref on the repo object would /form/ a cycle, even as it's one with a weakref in it so it can be broken, and there shouldn't be a del method. [16:45] And I'm not sure if the callback gets executed if the object owning the weakref becomes collectable before. [16:45] I.e. whether my LockedBranches might get finalized without the callback being ever triggered. [16:46] Any objectsions to me updating the trac-bzr trunk repo to 2a format? [16:46] would allow stacked branches... [16:47] MvG: heh, only I can't test this because I don't have trac installed [16:50] Hi all [16:50] MvG: weakrefs are always safer than __del__ as far as cycles goes. If LockedBranches gets finalized before its BzrRepository the weakref wouldn't get called back, but that can't happen unless someone screws with BzrRepository._locked_branches. [16:51] jelmer: Ping? Would you have an hour or so in the coming days? I'd like to get bzr-git finished for git push, and I have the frustrating feeling we're *almost* there but not quite. [16:51] Lo-lan-do, hi [16:51] Lo-lan-do: Yeah [16:51] :-) [16:52] mzz: Why can't that happen? After all, both become collectable at the same time. [16:52] jelmer: When would it be convenient for you? [16:53] MvG: see lp:~marienz/trac-bzr/bug484324 (untested!) [16:53] Lo-lan-do, now would be good I think [16:54] Yay [16:54] MvG: the BzrRepository has a strong ref to its LockedBranches, so the LockedBranches refcount won't go to 0 before the BzrRepository [16:55] Lo-lan-do: Is now good for you as well? [16:55] jelmer: Sure. Shall we move to private? [16:56] yeah [16:56] The BzrRepository refcount won't go to 0 "the normal way" either, because it's part of a cycle. Does the cycle collector really work with refcounts and all that? Or simply clean up all parts of a detected cycle and everything reachable only from it? And how about future python implementations? [16:56] I just don't feel safe here, it's relying a lot on implementation details. [16:57] At least feels that way to me, as I'm still relatively new to Python. [16:58] MvG: __del__ is just way scarier as far as implementation details goes than weakref is, because weakrefs don't get access to the object that just died. [16:58] I had the impression __del__ gets access just before the object dies. [16:58] Which is why __del__ causes trouble in cycles: Python refuses to break the cycle as long as any __del__ might rely on any part of it. [16:59] MvG: __del__ is capable of "reviving" the dying object, which makes it quite icky. If you can structure so you can use a weakref instead of __del__ that is normally preferable. [16:59] weakref is all right for me, but relying on the callback seems bad. [16:59] MvG: how so? [17:00] As I pointed out, I'm not confident the callback will get executed at all. [17:00] I see no spec clearly stating it will. [17:00] MvG: can you describe a way to make it not execute? [17:00] MvG: preferably one where __del__ *will* :) [17:01] Write my own python interpreter, and do so in such a way that the gc first collects all unreachable objects, then finalizes them all, keeping track of weakrefs, and then calls callbacks only if their owners are still alive... [17:02] I guess current standard python implementations don't behave this way, but unless it's specified that no python is allowed to behave this way, I don't feel safe. [17:02] I know __del__ is guaranteed to be called before the object gets collected, and that all outgoing references of the object will stay intact. [17:03] That's a clean and reliable promise, and one I can work with. [17:03] MvG: where are you seeing any guarantees that __del__ gets called that don't apply to weakrefs? [17:03] there are *very* few clean and reliable promises as far as __del__ is concerned. [17:03] "It is not guaranteed that __del__() methods are called for objects that still exist when the interpreter exits" [17:04] also "Circular references which are garbage are detected when the option cycle detector is enabled (it’s on by default), but can only be cleaned up if there are no Python-level __del__() methods involved" [17:05] OK, you made a point there. [17:09] mzz: I guess I have an idea that might make me feel safe as well: ensure that the object containing the weakref stays reachable until the callback gets executed. [17:09] Will code that later, gotta east something first... [17:09] MvG: you already have that. BzrRepository has a strong ref to LockedBranches. [17:10] But BzrRepository itself isn't reachable any more. [17:10] MvG: no, but that's the whole point. [17:11] MvG: let me turn that around. With your current code if LockedBranches manages to go away before the BzrRepository does your __del__ would run too early, so you'd also be broken. [17:12] So as BzrRepository isn't reachable, and it's the only one with a reference to LockedBranches, and as it doesn't have a __del__ method so it isn't expected to run any code, then I'm not sure I'd consider LockedBranches reachable. [17:12] No, only if the BzrRepository were to /use/ the branches later on. [17:13] So the order of finalization doesn't matter, as long as neither one is going to run any other code. [17:13] Gotta go, will be back later on... === amanica2 is now known as amanica === LeoNerd is now known as LeoNerdTest === LeoNerdTest is now known as LeoNerd === bac-lunch is now known as bac === fenris__ is now known as ejat [19:32] Greetings All. My company uses Bazaar internally, but we're going to be enhancing and contributing to a project that is otherwise versioned in Git. The thinking is we'd produce numerous internal revisions in Bazaar, culminating in the occasional upstream patch. I was wondering if anyone had any tips for this sort of a workflow? Our current plan is to checkout a working copy of our project from our shared Bazaar repo, and then clone the Gi [19:32] project into a subfolder of that working copy. Work the subfolder primarily with bzr, but upstream updates and such can fetched with git. I'm not sure if we'd want to bzr add the .git repo, or bzr ignore it? [19:33] ibrandt: or use bzr-git [19:34] * Tak agree [19:36] ibrandt: http://bazaar-vcs.org/TrackingUpstream [19:36] ibrandt: you may want to look at "Converting and ignoring history" [19:37] it talks about cvs, but I imagine it would be about the same for git [19:37] Ah, okay. Thanks! I'll read up. [19:40] ibrandt: and linked off from that, http://bazaar-vcs.org/BzrForeignBranches/Git [19:45] Anyone here run qbzr on debian lenny? I have backports; and the launchpad site in my sources.list, but when I try to install it says that I need python-central 0.6.11 but 0.6.8 is installed. I could just remove python-central and attempt to download and install 0.6.11 but this can lead to more problems; wonder if someone knows a better route to take. [19:48] distatica: I would guess that the dependency isn't a strong one, but just whatever recipe was copied when they made the package [20:04] moin [20:07] jelmer: +1 to adding gagern to bzr-trac? [20:09] lifeless: I think you mean trac-bzr :-) (bzr-trac is an unfriendly fork) [20:09] $garh [20:09] lifeless, no objections here, although I'm not really involved with trac-bzr anymore [20:09] me neither [20:09] but I figure two not involved people saying yes is better than noone saying no [20:10] lifeless: I agree, I think it would be hard to find people actually involved atm [20:10] MvG: hi [20:11] lifeless: hi as well! [20:11] Oh, you been talking about me! :-D [20:11] MvG: yah [20:12] jam already approved my team mambership... [20:12] just wanted to say that trac-bzr doesn't really have anyone caring about it in terms of 'maintainers' [20:12] so don't block on reviews [20:12] if you don't get a review for a branch in (say) 2 days, I think you should land it. [20:13] glad to hear that. [20:13] Should I request reviews over the launchpad merge request thingy? [20:13] yup [20:14] gladly. [20:14] hmm, lets see if trunk has any subscribers [20:15] I'm thinking about a branch for 0.10 compatibility. What do you say? [20:15] hah, the owner isn't subscribed. \o/ thumper: <- when can we do this search and fix? [20:16] lifeless: I'll get back to you shortly? [20:16] thumper: :P [20:16] MvG: I have no opinion. I don't know where trac is at, lifecycle status, userbase that will want bzr for trac 0.10 etc [20:16] lifeless: a call [20:17] 0.10 is widely deployed, and 0.11 introduced some serious changes. [20:17] MvG: https://code.edge.launchpad.net/~trac-bzr-team/trac-bzr/trunk/+merges you might like to review the branches that are need review and not from you [20:17] good idea. but tomorrow - its getting late around here... [20:18] MvG: no rush [20:18] MvG: just saying :) [20:18] :-) [20:19] I guess I'll add a bunch of branches of my own tomorrow. [20:19] MvG: considering the reality of trac deployment, I'd vote for a 0.10 branhc [20:19] MvG: unless you keep trunk 0.10 compatible that is [20:19] either works, whatever is least hassle [20:20] MvG: and good night ;) [20:20] LarstiQ: Have no 0.10 here to test, and I believe that with respect to url quoting and stuff there might be a lot of changes, so I doubt I'll stay compatible. [20:20] Thus branch and backport as much as feasible, but no more. [20:21] * LarstiQ nods [20:22] jam: Sorry for the delayed response, helping my son do a puzzle. So how should I proceed then? I tried installing qbzr via the tar and sudo python setup.py install; however when I run bzr I get: Unable to load plugin 'qbzr' from '/usr/lib/python2.5/site-packages/bzrlib/plugins' [20:22] MvG: I run a 0.10 trac, though not actively with bzr. If you ping me I can test though. [20:22] distatica: can you run "bzr -Derror" so you can see what is failing? [20:22] Like, do you have pyqt and other such dependencies installed? [20:23] Yeah, but I might be missing something I didn't notice. [20:23] or the wrong package was installed. [20:23] LarstiQ: Thanks for the offer. Will ghet back to it when I have two more commits or so in my quoting branch. === mwhudson_ is now known as mwhudson [20:23] MvG: k [20:23] distatica: it could be version skew, depending on what version of bzr you have installed, too [20:23] however, when I run bzr -Derror it just prints the help, bzr -D error says error is a command not found [20:24] hmm [20:24] By the way, how would you deal with the questioon of backwards compatibility? If I change the revno format, do I still have to accept old IDs? [20:25] distatica: no space between -D and error [20:25] distatica: try "bzr -Derror qbzr", or howewer you're supposed to run qbzr [20:26] MvG: in general I'd say yes, but that needs more thought for the specific change [20:26] * LarstiQ goes to bed [20:27] * MvG too [20:27] Thx! [20:28] hmm, that error just shows me that it's not starting, and that it fails when trying to call qbzr [20:29] Lo-lan-do: with only qbzr you can run each command seperately, see http://bazaar-vcs.org/QBzr [20:30] distatica: There's probably some log in .bazaar [20:30] one file, ignore [20:33] Oh, it's ~/.bzr.log, sorry [20:38] hi, where i found how export repo with python? [20:39] the python api [20:40] hersonls: I think you can only export a branch at a time see: bzr help export [20:40] I think it would be nice to be able to export a repo though [20:41] amanica, i need ceate a python script to export without bzr comand, understand? [20:41] aah ok [20:41] I may not be able to help now, mabe somebody else can [20:42] you can maybe look in builtins.py [20:42] there you can see how the "branches" command finds branches, and also check there how the "export" command exports them. hth [20:43] amanica, ok [20:44] amanica, i belived have documentation for this [20:45] hersonls: define "export" [20:45] do you want just the files on disk [20:45] similar to "bzr export ../foo.tar.gz" or "bzr export ../to_dir" [20:45] or are you asking to have the history? [20:46] amanica: and 'bzr branches' is in bzrtools, not core (yet) [20:46] similar to "bzr export ../foo.tar.gz" or "bzr export ../to_dir" [20:46] jam: whoops, I thought it made it into the core already [20:47] hersonls: then you'll want to look at 'builtins.py' for the "cmd_export" code [20:47] I think it is generally "Tree.export('path')" but I haven't looked in a long time. [20:50] jam, amanica hey [20:51] >>> from bzrlib import export :) [20:51] export(tree, dest, format=None, root=None, subdir=None, filtered=False) [20:51] tanks [20:51] cool [20:52] amanica, tanks [20:53] np [20:58] is there a 2.1.0b3 release branch? [20:59] or just a tag on the 2.1 branch? [20:59] hello all [20:59] mwhudson: i think the plan is now that it's just tagged on the 2.1 branch [20:59] (i should probably know this already but well) [20:59] okidoke [21:05] mwhudson: 2.1 branch [21:05] at least, I'm trying it out [21:06] Can .bzrignore files contain comment lines (in order to explain why some paths/files are ignored)? [21:06] jam: cool [21:06] rogererens: with # [21:06] of course i remembered the odd push -r behaviour again... [21:06] mwhudson: pushing something older than target does nothing? [21:07] jam: no much odder than that [21:07] jam: https://bugs.edge.launchpad.net/bzr/+bug/484516 [21:07] Launchpad bug 484516 in bzr "bzr push -r $revspec ../foo creates branch with working tree from tip, not that of $revspec" [Undecided,New] [21:08] ah, yeah that's pretty strage [21:08] strange [21:08] I think afc argued that we should never update the wt w/ push [21:08] as it was "inconsistent"... [21:08] I don't ever use it [21:08] as cd ../target ; bzr pull works just fine [21:09] i was using this to create a new branch at a tag [21:09] i guess bzr branch . ../target -r tag:whatever works too [21:11] mwhudson: yeah, I think it is a bug and should certainly be fixed, just never run into it because I don't use 'push' to do that sort of thing [21:12] jam: # to start a comment line; is it also possible to have inline comment? adding # to the end of line seems to wreck the regex [21:12] rogererens: I think only a separate comment line [21:12] jam: thx [21:12] yeah, we have: [21:12] if not line or line.startswith('#'): [21:12] continue [21:13] but nothing about pulling a # comment out of the middle of the line [21:15] so if there isn't a 2.1.0b3 release branch, is there a 2.0.2 release branch? [21:15] mwhudson: there is, but we're switching to just using a tag on the 2.0 branch when 2.0.3 comes out [21:16] well, I guess *I*'ll be switching to that unless I get punted as RM [21:17] * jam realizes I've been approaching RM all wrong. I should be extolling the virtues of how wondrous it is to be RM, so someone will take over for me :) [21:19] lol [21:28] how do I abort a merge (that had conflicts)? [21:29] revert? [21:31] sounds like it would have worked if I hadn't helped it along first.. OTOH, it wasn't quite where I wanted it anyway, so I'm now back to thinking that I know where I am [21:53] hi all [21:53] I read in bzr planet that the bazaar documentation is now translated in japanese too... do you know how to contribute to translate it (in Italian)? [21:56] jelmer: is there a bug tracker for bzr-svn? can't remember [21:56] servilio: launchpad.net/bzr-svn [21:57] jelmer: just there, lapsus mentis, sorry [21:57] jelmer: but just to check, I've just installed it and didn't complain about subvertpy not being available [21:58] it is not listed as a dependency in setup.py === abentley1 is now known as abentley [21:58] is this intentional? [21:59] I'd like to have bzr version control on my server and access it from my laptop. I have bzr installed on both server and client. How to tell bzr to create a project and store files on the server? [21:59] stefano-k: Well... I don't know if there is any documentation on it, but if you get a copy of lp:bzr you can probably mostly figure it out. [21:59] Heh. [22:08] what's the best bzr gui client out there? [22:10] nivya: bzr-explorer [22:12] hi jam [22:16] hi poolie [22:16] hi, nm, i sent you mail [22:19] poolie: I might ask you to run a snapshot for me. I'm trying here, but it seems to get stuck in the "waiting-for-shutdown" state. [22:20] I'll give it a bit longer [22:20] I wonder if I need to change the admin password back [22:20] I doubt it., but maybe [22:32] jam, doesn't it proceed automatically from that state? [22:32] Heh, branching MySQL without a format conversion took an hour and 200 MB of RAM. [22:32] ie request the snapshot, then os shutdown, snapshot, instance shutdown or reboot should happen automaticalyl? [22:33] Peng: locally? over the network? [22:34] poolie: Over the (not overly fast) network. [22:34] k [22:34] there is a lot of data there [22:34] if you set debug_flags=hpss it will print some stats at the end [22:34] poolie: he's comparing it to w/ a conversion [22:35] which took hours 200+MB and didn't finish [22:35] well, downloaded 300-400MB IIRC [22:35] and IIRC it takes at least 5-600 MB to download all of mysql in 1.9 format [22:35] drops to around 200 in 2a [22:37] poolie: Yeah, but it also puts a ton of information in .bzr.log, no? I'd love to see the stats, but not the other stuff. [22:43] morning [22:43] hi jam, poolie [22:43] hi igc [22:44] Currently, pulling revisions 1001-2500 with a conversion is stuck after downloading about 250 MB. [22:48] Peng: cpu high? [22:50] hi igc [22:51] lifeless: No, it hasn't done a damn thing in hours. Most of it has been swapped out by now. [22:51] hi jam - how the trip back? [22:51] was [22:51] igc: trip back went smooth. Long, but smooth [22:51] and not as long as the way out :) [22:51] lifeless: Eventually it'll exit saying "Connection closed". [22:52] I guess LAX was a bit of a pain 2-hr layover and I had maybe 5min before boarding because you have to go through security again [22:52] jam: FYI, the 1.14 repo is 475 MB. [22:52] jam: No clue how that translated to bandwidth. [22:52] Peng: which branch? [22:52] lp:mysql ? [22:52] jam: mysql-5.1. [22:52] IIRC mysql/6.0 is bigger [22:52] I think that's lp:mysql. [22:53] Peng: sounds about right [22:55] Peng: du -ksh mysql/.bzr is 629MB here, w/ 5.1 and 6.0 present [22:56] * Peng looks up -k [22:56] Oh, neat. [22:59] Peng: it is an old habit. I used to work on Unix boxes that have 512byte blocks rather than 1k blocks [22:59] and having to divide by 2 all the time was annoying [22:59] like os x 10.2 ... [22:59] uhm [23:00] -k changes the rounding figure [23:00] jam: The 6.0 branch is pretty old. [23:00] using it will give wrong answers if the fs is 512 byte blocks [23:00] lifeless: it gives the right answer to "how many kb are there" [23:00] it gives the wrong answer for "how many blocks are used" [23:00] jam: it gives the wrong answer to how many kb are there [23:01] by file-count * block-size-error [23:01] lifeless: it gives a much closer to how many 'kb' there are than du without it on 512 byte blocks [23:01] :0 [23:01] :) [23:01] sure for 100s of files it may round each one incorrectly [23:01] still much easier to parse as a human [23:01] jam: (It hasn't been committed to since 2009-05-16, and accessible since 2009-10-29.) [23:01] that was before -h [23:02] Peng: sure, I'm not sure where 6.0 series development really is [23:02] jam: or -b I guess [23:02] lifeless: yeah [23:02] peng: but I'm sure its active since guilhembi has been reporting bugs for using bzr w/ 6.0 development [23:03] jam: There are some recently-modified branches on https://code.edge.launchpad.net/mysql-server. I just got 5.1 because I didn't know which were most important. [23:04] Peng: I'm pretty sure 5.1 is their focus, though I thought they released 5.4? [23:04] 6.0 was sort of like py3k, IIRC [23:04] 'the future stuff' [23:05] Python 3 got released. :P [23:05] jam: 5.4 branch hasn't been touched in 17 weeks. [23:05] Peng: there are releases of 6.0, for what mysql considers releases [23:05] (Note: I know nothing about MySQL.) [23:05] I don't think there is a General Availability, but I don't really track it [23:06] mysql-server/cluster-6.4 was touched just yesterday [23:06] anyway, I'm glad you got the data [23:06] its time for me to EOD [23:09] jam: Yeah, but I wanted to look up WTF it was before getting a copy, and didn't feel like doing so right then. :P [23:15] hey, if i have several projects in a directory, and i use bzr-init to create a shared repo in that directory, whats the best way to add the subdirectory projects to the new shared repo? [23:16] bjp: they are already branches? [23:16] bzr reconfigure --use-shared IIRC [23:17] yes [23:19] cool [23:29] jam: ping [23:43] bialix: He might've left about 15 minutes before you joined. [23:43] perhaps [23:43] * bialix sighs