[01:07] does anyone know about the current status of nested tree's is? Last references on the wiki point to the 0.15 version, saying support is incomplete [01:09] Gilgad: last I checked that feature hadn't been worked on in a year [01:10] ouch [01:10] i guess thats why i can't find anything more recient than 0.15 [01:11] It sure would be nice to have :) [01:13] agreed, i was thinking of doing something like this: http://toykeeper.net/tutorials/svnhome using bzr, but it depends heavily on svn:externals (which as far as i can tell is nested trees) for organization [01:14] yep, svn:externals == nested trees [01:14] You could do something similar, sort of, by doing a lot of one-way merges. [01:14] What is a one-way merge? [01:15] Put the config modules in different branches, then merge each into host branches. It's not the greatest approach, but it can work. [01:16] but when happens when i want to commit a change [01:16] as in, isn't the merge a one time thing [01:16] Basically, commit on the module branch, then re-merg. [01:16] merge, even. :) [01:16] hmm [01:16] I really haven't found a good way to use bzr for $HOME. [01:17] what do you use? or nothing? [01:17] At least, if I want to share parts of a config across multiple hosts and have localized changes on each. [01:17] I'm using svn. [01:17] yea [01:17] mm, aparently svn would work, but i don't have a place to set up a server [01:17] i mean, i guess there are free services [01:18] but i like that i can have my repo be just files on another system [01:18] i just use my universities unix access to store it on my space there [01:19] Any host you have ssh access to should work. [01:20] for svn? [01:20] svnserve daemon would also work, no? [01:20] note my above admission that i know little about vcs in general [01:23] Heh, I just perked up because someone said my name. :) [01:32] jml, around or busy? [01:48] pygi: just having lunch === bla5362627 is now known as pygi [01:50] jml, when you come around, please poke ;) thx [01:50] hopefully I wont be sleeping [01:51] pygi: ok if I poke you tomorrow morning my time? [01:51] jml, probably, but we should finish it then :) [01:51] yes [01:51] because Douglas needs to work on contracts [01:51] *nod* [01:51] anyway, have fun :) [02:45] If I've come across an svn:// URL that Subversion can check out but Bazaar can't, would Jelmer et al want a bug report about it? [02:46] AfC, why not? :) [02:46] HI abentley [02:46] Hm. Or it could just be that their "server" is insanely slow and underpowered. [02:47] url? Perhaps I can try? [02:47] probably wont help tho :D [02:48] pygi: svn://svn.xmlroff.org/trunk/xmlroff [02:48] ups, no bzr svn here :/ [02:48] * pygi looks into it [02:49] * AfC has to run, but if works ok for you then I'll try again from a different uplink [02:49] kk [02:54] pygi: hi === mwhudson_ is now known as mwhudson [06:39] Is there a way to get a print out of the directory structure in a repository? [06:46] ls? 8-} [06:47] (which is to say, you're probably asking either too little or too much; what's the goal?) [06:48] Do I need to set up an ssh umask to be able to share the branches that I push? Every new bracnh that I push has teh wrong group perms. :( [06:50] awmcclain: https://lists.ubuntu.com/archives/bazaar/2007q3/027560.html ? [06:51] I already set the repo branch to 2770 [06:51] repo dir [06:51] :-\ [06:51] ohhhh [06:51] let me try doing it one level down [06:52] fullermd: Oh, you're back. Yay! [06:53] fullermd: Is there a command that I can use to just list the whole directory structure of the repository? (Similar to ls, I guess, but recursive, maybe?) [06:53] Or am I asking too much [06:53] ? [06:54] Also, what's with the delay in packaging 1.10? [06:54] GPH-Laptop: possibly UDS? [06:55] spiv: drwxrwsr-x 14 clownfish dev 4096 Dec 8 16:22 andrew [06:55] jml: Sorry, UDS? [06:55] GPH-Laptop: the Ubuntu Developer Summit that's going on right now. [06:55] ah [06:55] wasn't aware of that [06:56] GPH-Laptop: I haven't been tracking the 1.10 release closely, so it might not be the case [06:56] fwiw, Gentoo Linux has got bzr 1.10 packaged. Great to see them so on top of things. [06:56] jml: Doesn't look to be much more than source and Mac OS X 10.5 [06:56] unfortunately, I'm on 10.4 ;) [06:57] GPH-Laptop: Do you actually mean the structure of a [shared] _repository_? Or do you mean of a branch? [06:58] For a branch, there's always `bzr ls` and its various options. [06:58] fullermd: Um... probably a shared repository, but either should do. [06:58] Yup, that does it. [06:58] Thanks [06:59] There's nothing in bzr to list _repositories_ as such (at least, not at the UI level), since they're not treated as semantic units. [07:03] Alright... but an up-to-date branch serves just as well. [07:04] fullermd: Any reason why directories don't have a trailing slash? [07:05] Well, the flip answer is "because that's how it was written" :) [07:05] I don't know if there was an intentional choice to not have them, or whether it "just happened" to be so done. [07:06] GPH-Laptop: any reason why they should? [07:08] Well, there's "because it's conventional". [07:08] fullermd: only in some conventions :) [07:08] Well, in the ones that are Right And Proper, of course. ;) [07:09] jml: There's no other way to differentiate between files and directories (ignoring file extensions, of course) [07:10] GPH-Laptop: not visually, no. but why is that useful? [07:12] jml: Well, it prints out a list of everything in the branch... Wouldn't you want to be able to know which are files and which are directories, without having to look to see if there are files within that directory? (What if it's empty?) [07:12] I would, particularly if I'm copying the list to paste it somewhere else. [07:13] regular ls at least has a mode for that, if not the default action [07:14] GPH-Laptop: 'bzr ls -v' prints trailing slashes. [07:14] * fullermd could really get to hate '-v' sometimes... [07:14] but it also prints "V" in front of every line... what does that even mean, anyway? [07:15] It's listed on every command, even those where it doesn't actually do anything. There's never any indication of what it _does_. And most of the things it does aren't what I considered "verbove" anyway. Blah. [07:15] GPH-Laptop: "Versioned" presumably. [07:15] GPH-Laptop: whether the file is versioned or not. [07:15] I still haven't come across a circumstance where I *care* whether a thing is a file or not. [07:16] jml: But I didn't ask it that question. I just wanted a list of files and directories. [07:16] GPH-Laptop: which question? [07:16] (which _will_ be the only option when ls is run on a branch without an [accessible] working tree) [07:16] whether the file is versioned [07:16] GPH-Laptop: are you using a Unix? [07:16] jml: Mac OS X [07:16] Yes. Other possiblities are 'I' for ignored, and '?' for unknown. [07:18] GPH-Laptop: bzr ls -v -V | cut -c 10- [07:18] GPH-Laptop: I *think* cut on OS X is close enough for GNU cut to work [07:19] wow... that was way too complicated [07:19] but yes, it did work [07:19] GPH-Laptop: feel free to file a bug report or post to the mailing list to ask for this behaviour [07:19] not that I needed it... my file structure is currently small enough that I could just add the slashes myself (thanks, though) [07:19] GPH-Laptop: I don't think anyone has wanted it before, so the current behaviour is just that way because that's all that was needed so far. [07:20] spiv: OK. I just might do that. [07:20] GPH-Laptop: it doesn't sound unreasonable, although it does sound like something that will inspire some bike-shedding... [07:20] bike shedding, hooray! [07:21] spiv: I didn't mean to start any arguments. I'm just saying what _I'm_ looking for. ;) [07:21] GPH-Laptop: sure. I'm glad you're letting us know what you want :) [07:22] spiv: I'm glad you're willing to listen. :) [07:29] jml, fullermd, spiv: https://bugs.launchpad.net/bzr/+bug/306424 [07:29] Launchpad bug 306424 in bzr "Add trailing slash to directories in `bzr ls` output" [Undecided,New] [07:29] oh [07:29] heh [07:32] OK, another question [07:33] If I branch the bzr development branch, can I run the bzr script from that branch [07:33] that is, the modified one? [07:35] GPH-Laptop: yes. [07:35] GPH-Laptop: /path/to/that/bzr should just work [07:35] jml: OK, thanks [07:35] GPH-Laptop: that's how bzr developers run unit tests and the like [07:36] Is all the code just in that one bzr file? [07:36] hell no [07:36] I didn't think so [07:36] bzrlib/ has all of the code in it. [07:36] I guess I'm just looking at Launchpad wrong [07:38] sorry if this may sound elementary, but i stumbled across bazaar in looking for revision control, i just have a simple(hopefully) question. Does Bazaar track revision numbers on a per file/per branch basis? [07:39] drew_: Per branch, I believe [07:39] but I'm nowhere near an expert yet ;) [07:40] Is Launchpad acting up for anybody else? [07:41] GPH-Laptop: not for me. [07:41] GPH-Laptop: are you looking at the branch browser or at launchpad proper? [07:41] " Sorry, there was a problem connecting to the Launchpad server. " [07:41] for example, http://bazaar.launchpad.net/~bzr/bzr/trunk/revision/3883 [07:42] right, the code browser [07:42] yeah [07:44] GPH-Laptop: ty, guess it's time to actually figure out this whole version control thing :) [07:45] drew_: Yeah. fullermd patiently helped me when I first got started with bzr... not to put any pressure on him, though ;) [07:46] It's part of my clever scheme to build up a mass army of people indebted to me, for when I decide to remake the world in my own image. [07:47] :) nah i'll fight my way through(ofcourse i'm stil adjusting to linux in general here) but a peer of mine suggested i look into revision control at home and the only experiance i have is with PDMWorks [07:47] Hm, never heard of THAT one [07:47] solidworks revision and workflow control [07:47] fullermd: I suppose you can count me in on that one. ;) [07:47] Aha [07:48] Now I have to learn Python, too... :P [07:48] ty again, guess it's time to get a scotch and see what i can break :) [07:49] * fullermd rubs his hands together and cackles. [07:49] lol [07:49] drew_: excellent idea [07:49] OK... first I have to figure out where the ls code is located... [07:49] * jml goes off to consort with enemy languages. [07:49] THEN, I can learn Python :P [07:49] GPH-Laptop: you trying to fix that bug you just filed? [07:49] jml: I was gonna look into it, yeah [07:49] * fullermd keeps on working on some perl :p [07:49] * GPH-Laptop does PHP [07:50] That's what I get paid for most of the time. [07:51] GPH-Laptop: feel free to ask me any questions [07:51] jml: I kinda just did. ;) [07:52] OK... first I have to figure out where the ls code is located... [07:52] ;) [07:52] GPH-Laptop: oh right. [07:52] GPH-Laptop: so, bzrlib/builtins.py has all of the built in commands [07:52] ah [07:52] GPH-Laptop: like 'ls' [07:52] OK [07:53] Search in it for cmd_{whatever_command} [07:53] GPH-Laptop: there'll be a class called cmd_ls or something like that. [07:53] ugh... Launchpad is being naughty again [07:53] * fullermd accidentally glances at the 'ls' code. [07:54] if non_recursive and '/' in fp: [07:54] That's efficient :p [07:54] jml: Loggerhead is being stubborn again. [07:55] GPH-Laptop: I'll pass it onto the OSAs. [07:55] jml: K, thanks. [07:55] GPH-Laptop: url please? [07:57] jml: http://bazaar.launchpad.net/~bzr/bzr/trunk/annotate/3883?file_id=builtins.py-20050830033751-fc01482b9ca23183 [07:57] It's on a URL-specific basis? [07:57] GPH-Laptop: well, it's working for me. [07:57] annotating files with complicated history takes ages :/ [07:58] this one is a bazaar problem not a launchpad problem, really [07:58] yeah. [07:58] is there a way to view it non-annotated? [07:58] you can download it [07:59] GPH-Laptop: if you want to get a local copy of the whole branch, 'bzr branch lp:bzr' [07:59] ...without having to download it? ;) [07:59] jml: Alright, I might do that [07:59] that said [07:59] GPH-Laptop: 'bzr cat http://bazaar.launchpad.net/~bzr/bzr/trunk/bzrlib/builtins.py' might get you the file though. [07:59] annotating builtins.py locally takes a few seconds [07:59] but it would be useful to have the features of ViewVC [07:59] so something funny is going on [07:59] * GPH-Laptop <3 ViewVC [08:00] jml: Nah, that's fine. I'll just do the whole branch. [08:00] GPH-Laptop: well, you can get all of those features with the bzr client [08:00] GPH-Laptop: although the colors are less pretty :) [08:00] heh [08:01] jml: Hmm... slow... [08:01] should I have run an init or something first? [08:01] GPH-Laptop: it's got a biggish history. [08:01] GPH-Laptop: no, not really. [08:01] OK [08:02] I have a feeling it's going to take a long while before I get the hang of this :P [08:02] So get used to me ;) [08:02] GPH-Laptop: once it's downloaded, you might want to do something like 'bzr init-repo bzr-branches'; 'bzr branch bzr bzr-branches/trunk' [08:02] GPH-Laptop: no worries. [08:03] bzr-branches being my current directory, or what? [08:03] GPH-Laptop: bzr-branches being a new directory that will be a shared repository of all your branches of bzr itself [08:04] GPH-Laptop: you can call it susan if you really want. [08:04] how is that related to the directory I just did `bzr branch lp:bzr`? Should I issue them in the same directory? [08:04] Heh [08:04] GPH-Laptop: so, the directory that you're in now isn't special (unless you've already done init-repo) [08:05] I may have a bit upstream... I don't recall [08:05] would that matter? [08:05] GPH-Laptop: what does 'bzr info' say? [08:05] not a branch [08:06] GPH-Laptop: ok. so it's just a boring old directory. [08:06] GPH-Laptop: you want to make a directory like ~/Projects/bzr or whatever you prefer [08:06] GPH-Laptop: that will hold all of the branches that you make of bzr itself [08:06] GPH-Laptop: but you make that directory using 'bzr init-repo' [08:06] ~/Development/bzr/bzr/ [08:06] is where it is [08:07] And, of course, it just created another bzr [08:07] GPH-Laptop: so that the branches share their revision data. [08:07] so ~/Development/bzr/bzr/bzr/ [08:07] OK, so you can make ~/Development/bzr/ the shared repo, and use reconfig to shuffle the branch you're making into it after it's done. [08:07] GPH-Laptop: heh. is that 'bzr branch' command finished? [08:07] yeah [08:07] So, something like [08:08] cd ~/Development/bzr ; bzr init-repo . ; mv bzr/bzr bzr.dev ; bzr reconfigure --use-shared bzr.dev [08:08] (or call it 'trunk' instead if you prefer) [08:08] right. what fullermd said. [08:08] (and then that extraneous 'bzr' dir can be tossed too) [08:09] and then, to work on your bug fix, go 'bzr branch bzr.dev trailing-slash-bug-306424' (or whatever) [08:09] well... the first bzr directory hold more than just Bazaar stuff... it's actually a directory of code that uses bzr... so should I do that in bzr/bzr? [08:09] Ah, in that case, yah. [08:10] so I should have ~/Development/bzr/bzr/bzr.dev/? [08:10] * fullermd nods. [08:10] OK [08:11] That'll be your local branch of the bzr trunk, using the shared repo in ~/Development/bzr/bzr/. Then other branches like ~/Development/bzr/bzr/add-trailing-slash/ can share the repo. [08:11] "bzr/bzr/bzr" sounds a bit swedish chef-like! [08:11] * fullermd swats at the fly. [08:11] lol [08:11] ok [08:12] spiv: make a dvcs called "Shantih!" and make us all happy [08:14] Or maybe "Beetlejuice" :p [08:15] And then I can run ~/Development/bzr/bzr/bug-306424-ls-trailing-slash/bzr to test? [08:15] GPH-Laptop: yep [08:15] cool [08:15] GPH-Laptop: another thing you may be interested in... [08:15] yeah? [08:16] GPH-Laptop: bzrlib has a lot of unit tests [08:16] Will I need to change them? [08:16] GPH-Laptop: you might want to add one or two. [08:16] Oh, OK [08:17] one step at a time, though ;) [08:17] GPH-Laptop: "./bzr selftest" will run all of them. [08:17] alright, I'll keep that in mind [08:17] GPH-Laptop: and './bzr selftest test_ls' should run the ls ones [08:17] cool [08:17] (which live in bzrlib/tests/blackbox/test_ls.py) [08:17] k, got it [08:18] Running all of them will take some time :p [08:20] Is there a good place for python docs (commands) like there is at php.net? [08:21] * fullermd shrugs. [08:21] heh [08:22] Start from python.org and follow likely links. There are some within a click or two. [08:22] ok [08:23] What is PyQt4? [08:25] GPH-Laptop: it's Python bindings to Qt version 4. Qt is a graphical widget toolkit, used by KDE and others. [08:25] the unit test failed because I don't have it [08:26] GPH-Laptop: I'm sceptical. [08:26] GPH-Laptop: can you paste the command you ran and the output to paste.ubuntu.com (or the pastebin of your choice) [08:28] jml: http://gphemsley.pastebin.com/d6a1a95dd [08:29] GPH-Laptop: ./bzr --no-plugins selftest test_ls [08:29] night all [08:29] igc: g'night :) [08:30] igc: good to see you back :) [08:30] thanks jml [08:30] jml: Yup, that did it. Thanks. [08:30] igc: Good night stranger. :P [08:30] GPH-Laptop: one of your installed plugins requires PyQT [08:31] interesting... how come I didn't know that before? [08:31] Alien mind control rays. [08:31] and how come I don't have it? [08:31] GPH-Laptop: dunno. [08:31] GPH-Laptop: 'bzr plugins' will list the plugins that bzr can find that work [08:32] hmm... you think it's qbzr? :P [08:32] GPH-Laptop: ./bzr selftest -s bb.test_ls will be far quicker than ./bzr selftest test_ls (give it a try) and it may even works around your plugin problem [08:33] vila: Indeed. [08:34] GPH-Laptop: the quicker part, the plugin part or both ? [08:35] both [08:35] Adding --no-plugins will also work around the plugin problem. (But I know vila gets sad when people do that...) [08:35] spiv: :-) [08:35] heh [08:36] spiv: try writing a plugin that you want to use to run selftest and you'll quickly get sad too :-) [08:36] I'm sad about being hungry. [08:36] Dangit, you had to mention hungry... [08:37] spiv: like, for example, plugging a real hpss server in the test framework :-P [08:37] or even an instrumented one :) [08:37] vila: I don't follow that example, currently there's both real and instrumented hpss servers in the test suite... [08:38] spiv: by the way, any idea about how to fix FAIL: branch_implementations.test_sprout.TestSprout.test_sprout_preserves_kind(BzrBranchLoomFormat6) [08:38] BzrBranch6('file:///tmp/testbzr-MSlMuJ.tmp/bzrlib.tests.branch_implementations.test_sprout.TestSprout.test_sprout_preserves_kind%28BzrBranchLoomFormat6%29/work/branch2/') is an instance of rather than [08:38] spiv: say you want to test an older hpss server then [08:38] (too many real, really; most of the tests that start a TCP server and a thread don't really need to...) [08:39] spiv: right, that was just *one* example [08:40] but plugging *real* servers into the test framework is still the best way I know of to check bzr compatibility [08:41] (even if I understand that you're referring to writing simpler tests) [08:41] s/simpler/more focused/ [08:41] vila: possibly by deleting the clone method from loom.branch.LoomSupport ? [08:43] jml: Oh... bzr files indent with spaces... [08:43] vila: does that test even exist in current bzr.dev? [08:43] GPH-Laptop: these days, almost all Python does [08:43] jml: Oh, really? [08:43] GPH-Laptop: well, all sane Python :) [08:43] spiv: isn't it the one you hack with jam ? [08:44] $ grep test_sprout_preserves_kind bzrlib/tests/branch_implementations/test_sprout.py | wc -l [08:44] 0 [08:45] GPH-Laptop: indent with four spaces. there's a hacking guide in doc/developers/HACKING.txt [08:45] GPH-Laptop: (and lots of other juicy docs in the same dir) [08:45] jml: Oh. Probably should have looked for that first. [08:45] vila: there's not test_sprout_uses_bzrdir_branch_format [08:45] s/not/now/ [08:45] 8-) [08:46] GPH-Laptop: docs are for looking at second :) [08:46] What do you think I should do... add the trailing slash by default or add another option? [08:46] heh [08:46] vila: and it passes [08:46] I'd be in favor of it just being there always. [08:46] GPH-Laptop: add it by default. [08:47] vila: (I'm still suspicious of LoomSupport.clone, though...) [08:47] spiv: great ! Looks like I should update the bottom thread in my loom ! [08:47] The comment talks about updating the nick too [08:47] For even extra fun and bikeshedding, add a * on executable files too :p [08:47] (why doesn't ubuntu ship with wireshark by default?) [08:47] fullermd: ! [08:47] (the lack of something like that has made me very cranky in the past) [08:47] fullermd: definitely would want that in an option [08:47] fullermd, GPH-Laptop : Don't forget the '@' for symlinks ! [08:48] fullermd: not in default behaviour [08:48] See? Instant argument; just add fullermd! [08:48] --decorated --color... definetly bikeshedding when color becomes an option :) [08:48] jml: possibly because default installing software with a history of exploits that allow executing arbitrary code makes people nervous [08:49] heh [08:49] jml: so... anything besides slash in default? [08:49] "I want my bikeshed to be suffixed with the @ character!" [08:50] Adding the / is probably a safe thing to have on it. I can't offhand think of anything it would hurt... [08:50] spiv: Don't be such a rogue :p [08:50] GPH-Laptop: no. [08:50] GPH-Laptop: just '/'. [08:50] Adding @ at least has some consistency with adding /; they are both signifiers of the inventory entry type. * doesn't have that distinction. [08:51] The only case I know of where *not* having the final '/' hurts is Apache [08:51] At some point the answer is "if you want a custom tree formatter, there's an API you can use..." :) [08:51] True. OTOH, (1) the '/' doesn't harm anything I can think of offhand ('cd', 'ls', etc) you'd paste it to, where '@' would. [08:52] And (2) there's no case [on POSIX] where a trailing '/' could validly appear, so you could always sed it away if you wanted, whereas a trailing @ could be significant. [08:52] [in the filename I means] [08:52] I'm using wireshark to track some machine-local traffic, how do I filter so I only capture one direction? [08:53] jml: filter on src port? [08:53] Specify src/dest port. [08:53] (or dst port) [08:53] how do I do that? [08:53] That's how the TCP stack distinguishes them, after all. [08:53] With much clicky-clicky. [08:53] spiv: yeah, there's a sense in which you just restated my question :) [08:54] "and src 123" [08:54] hmm... I think I want a *capture* filter, not a display filter [08:54] (they have different syntax, yay!) [08:54] Oh. Display filter would work too... [08:54] "tcp.srcport == 1234" looks likely. [08:55] (I clicky-clicked on the "+ Expression..." button, expanded the "TCP" filters, etc etc... [08:55] ) [08:56] (I'm sure you'd have been as distressed as me if I hadn't closed that paren) [08:57] spiv: good grief! I wonder what the alternative UI design was :) [09:01] jml: Is there any special protocol for commit messages in my local branch/ [09:01] ? [09:01] spiv: ./bzr selftest -s bt.branch_implementations.test_sprout -v not failing anymore ! Hurrah ! :-) [09:03] GPH-Laptop: not at all. [09:03] GPH-Laptop: generally, you just want to make them helpful. [09:04] GPH-Laptop: also, if you haven't used a dvcs before, you want to commit way more often than you are used to :) [09:07] jml: I think I'm pretty much done [09:07] it was pretty simple [09:07] but how come it seems like the unit tests aren't all being run? [09:07] that is, [09:07] some of the test lines don't give errors when I forgot to fix them [09:07] GPH-Laptop: 'bzr di -r submit:' should generate you a diff, I think. If you pastebin it I can take a look. [09:11] jml: http://gphemsley.pastebin.com/d1454f2dd [09:12] oh wait [09:12] I think I have a little optimization to do [09:12] hang on [09:14] GPH-Laptop: looks fine to me. If you do 'bzr send' once you're done, that will prepare a merge directive (a patch on steroids) and attach it to a message, you can then send it to the mailing list. [09:14] GPH-Laptop: the HACKING guide has some more info about that. [09:15] jml: http://gphemsley.pastebin.com/d2ef5b771 [09:17] I dunno if I'd reuse outstring like that... but that's stylistic quibbling. [09:19] fullermd: Well, it is the outstring... isn't it? [09:19] No, it's a filename. It doesn't replace outstring, it replaces fp, so I'd call it 'fnstr' or something like that, and replace the requests for fp with it. [09:20] send it to the mailing list! [09:20] that way, stylistic quibbling will get the patch landed :) [09:20] heh [09:20] ok [09:20] Hey! We have to run the gauntlet of the IRC bikeshed before we can run the ML bikeshed! [09:21] I edited the NEWS file... anything else I have to do before sending it? [09:22] is there some way to force bzr to use paramiko over openssh? [09:22] BZR_SSH=paramiko ? [09:23] jml: Does the merge directive include my commit messages? [09:23] GPH-Laptop: yes, it does. [09:25] luks: you are my hero [09:27] jml: OK, so now I just e-mail it? [09:27] Or should I attach it to the bug? [09:27] GPH-Laptop: yeah. put [MERGE] at the start of the subject, and include text that human beings will read [09:28] GPH-Laptop: (assuming you are using bzr send) [09:28] GPH-Laptop: and send it to the mailing list. Include a link to the bug as well. [09:28] I did send -o [09:28] is that OK? [09:28] GPH-Laptop: sure. just attach the output to your email [09:28] and do I attach it to the bug? [09:29] GPH-Laptop: no [09:29] OK [09:29] GPH-Laptop: if you want, push your branch to Launchpad (bzr push lp:/bzr/) [09:29] GPH-Laptop: and then link that branch to the bug. [09:36] jml: It says invalid branch name [09:36] GPH-Laptop: use a valid one, then *wink* [09:37] What name did you try? [09:38] GPH-Laptop: it's easier to just mail it :) [09:38] spiv: bzr push lp:gphemsley/bzr/bug-306424-ls-trailing-slash [09:39] missing ~ [09:39] GPH-Laptop: your username needs to be prefixed with a ~ [09:39] oh [09:39] so bzr push lp:~gphemsley/bzr/bug-306424-ls-trailing-slash [09:39] * GPH-Laptop nudges jml [09:39] jml: tsk tsk :P [09:39] * spiv wanders off [09:39] but really, isn't pushing the whole bzr just for one patch an overkill? [09:40] * GPH-Laptop shrugs [09:40] Sometime soon we should update the branch format of bzr trunk so that pushing bzr branches to launchpad will use stacking. [09:40] may as well learn the process [09:40] how do I switch to a specific revno ? [09:41] strk: bzr pull --overwrite -r REVNO, usually [09:41] sorrry [09:41] * spiv really wanders off [09:47] jml: OK, posted to the mailing list, but awaiting moderation [09:49] Branch available @ https://code.launchpad.net/~gphemsley/bzr/bug-306424-ls-trailing-slash [09:50] spiv: thanks! [09:53] GPH-Laptop: thanks [09:53] chefan: is [09:53] GPH-Laptop: I don't have moderation privileges, but I'll ping poolie or someone similar tomorrow. [09:54] jml: OK [09:54] then I'll head off to bed [09:54] GPH-Laptop: ok. g'night. [09:55] jml: g'night [11:54] GPH-Laptop: moderated === Mario__ is now known as pygi [14:49] can I safely remove .bzr/repository/obsolete_packs? or is there a command to prune the cruft from the repo? [14:50] * lamont checks to see what bzr pack buys him [14:51] lamont: You can empty the directory, but I don't think you can delete it. [14:52] lamont: Anyway, there's no real reason to. It'll be cleaned out (and filled with new packs) the next time the repo is auto-packed or you run "bzr pack". [14:52] neat. bzr pack brought me from 808MB clear down to 1150MB [14:53] lamont: Right. When a pack is no longer needed, it's moved to obsolete_packs instead of being deleted outright, in case something goes wrong. [14:53] if will be cleaned up and new obsolete packs will be added [14:53] otoh, .bzr/repository/packs went from 574920->574904 (woo!!) while obsolete_packs went from 233MB->574MB [14:53] *it [14:54] lamont: When it auto-packs, some packs will be compressed down into one, and the old ones will be moved to obsolete_packs. When you run "bzr pack", *everything* will be compressed down to one pack, so obsolete_packs will have a copy of the entire repo. [14:54] right [14:55] is there a way to tell bzr that I actually do backups of the machine and to quit saving me from myself by bloating said backups with extra copies of everyting? [14:56] Heh. [14:56] Can your backup software exclude obsolete_packs? [14:56] it could [14:56] (I mean, exclude the contents of it. The directory itself needs to exist.) [15:13] lamont: sounds like you'd just hit a extreeme autopack anyhow; obsolete_packs' contents are automatically pruned [15:13] lifeless: I manually did 'bzr pack' to see if it would help. [15:13] which, uh, not so much [15:13] lamont: yes, I saw [15:14] for obsolete_packs to have been at 250MB it must ave already just packed 50% of your archive [15:16] well... total of 11 files in the archive [15:16] 42MB, 1.1MB, 1.1MB, and < 10k [15:17] so 575 MB of .bzr, and another 50MB total in the tree. [15:17] you're versioning a 422MMMB file? [15:17] sure. iz histyory [15:17] ot [15:18] it's also not very compressable, since it's already,uh, bit-indexed data [15:18] I stand corrected. bzip2 takes it down from 42.2MB to 28.0 MB [15:19] the tree has a whopping 36 commits, and no branches [15:20] ok [15:20] so at the 30th commit it autopacked [15:20] that gave you te 250mb thing [15:20] then 6 more commits that didn't autopack [15:21] the 40th would have trimmed wiped obsolsete_packs and then moved the 10 most recent files into there when autopacking again. [15:21] ok [15:21] every 10 or so then? [15:37] lamont: it allows no more than 10 packs with a given revision count, rounded up to the next base10 digit [15:38] lamont: e.g. 10 of 1, 10 of 10, 10 of 100 etc [15:38] lamont: so log backoff [15:38] ah, ok [15:38] hrm.. why no bzrtools 1.10-1 backport for dapper? [15:39] because you haven't done one yet? [15:39] s/you/poolie et al/ [15:40] or will bzrtools 1.9.1-1~dapper1 "just work" with bzr 1.10-1? [15:40] dunno, where did the dapper binary comefrom [15:48] lifeless: jam did the upload it would appear [15:48] besides, I don't have write privs to the ppa :-p [15:49] lamont: file a bug, surely you should be able to :) [15:49] heh [15:49] ah. iz funnier when read that I should surely be able to file a bug. [15:53] lamont, lifeless: I haven't been packaging dapper because it needs different settings from all of the other packages [15:53] most of them are just "dch && bzr commit && bzr builddeb" [15:54] jam: we still need/want dapper... and pushing it back to y'all is specifically because it requires a merge instead of a smack... [15:54] wc -l /home/lamont/bin/build-package [15:54] 300 /home/lamont/bin/build-package [15:54] ^ I already have a bitchslap script [15:58] lamont: so why no concern over bzr-svn? Which has never been packaged for dapper [15:58] because that machine is running hardy. [16:03] Ok, https://bugs.launchpad.net/bzr/+bug/304023 [16:03] Launchpad bug 304023 in bzr "Autopack fails with err 17 "File Exists" on windows" [Undecided,New] [16:03] I've traced a fail and a success, and it looks like the success should be failing :-) [16:04] jam: and bzr should require more than just smackery for dapper, too. py-support vs py-central [16:04] lamont: that is already handled by someone else [16:04] "has been handled" [16:04] and yes it does [16:05] right [16:05] building the "bzr" package is automated [16:05] building bzr and bzr-svn still requires me to do a lot of manual steps [16:05] because they aren't built in the same way [16:05] bzrtools and bzr-svn are generally built from the debian package [16:05] yeah - bzr-svn just needs hardy, bzrtools needs dapper/hardy [16:06] * awilkins has a roughly automated build script for either, maybe it could be done for both [16:06] and the debian package doesn't support dapper [16:06] My script is Powershell though, and rather specific to my environment at present [16:06] because of py-central versus py-support [16:06] (on win32 at any rate) [16:06] yep [16:07] also, we run into weird problems with multiple-targets and "bzr builddeb" if you build from a bzr tree rather than from a tarball [16:07] because it rebuilds the tarball [16:07] which causes the md5sum to change [16:07] which causes it to fail to upload [16:07] etc [16:07] which is partially why I do it manually [16:08] as I build a tarball for the first time, and then re-use that tarball for all the others [16:08] anyway, *right now* I'm on win32, which is a real pain for building packages :) [16:09] If you are stressing that getting bzrtools-1.10~dapper1 is very important for you I can do something about it [16:09] lamont: What is your specific need/urgency/etc ? [16:27] jml, fullermd: Are you around? === barry is now known as barry-lunch === bac is now known as bac_uds [17:49] lifeless: brisbane-core uses more disk space right now, right? But that's because compression hasn't been optimized yet, and it will become significantly better than the current stuff, right? [17:59] Peng_: yes, its more disk space for the inventories [18:00] Thanks for the confirmation. [18:00] Peng_: massively less uncompressed [18:00] What? [18:00] That it's much smaller when not compressed? [18:01] Peng_: the inventories inv development4 are about one 20th the size of the inventories in --1.9 *before compression* [18:01] Peng_: but --development4 doesn't delta compress the inventories, just gzips, at the moment [18:02] How good should they be when they're delta compressed? [18:02] better than 1.9, but more than that I can't say [18:03] we have a feedback loop to do to tune them - the inventories may change to be more compressable, for instance [18:03] poolie, hey, could I poke for a sec? :) [18:03] The inventories are much smaller when uncompressed, but what does that buy me as a user? On disk, they're always compressed. [18:04] Peng_: bzr spends less time comparing the inventories between two revisions, so fetch, log -v, and other such commands have less work to do [18:04] lifeless: Ah, that sounds good. [18:04] hello pygi [18:04] Would memory usage be improved too? [18:04] Peng_: yes [18:04] ongoing svn->bzr switch saga... [18:05] Peng_: e.g. mysql-server has a 1.7MB inventory, on average (in 1.9). So diff requires assembling 3.4MB of text, parsing it, then doing a full dict comparison between the objects [18:05] i've read the Bazaar User Reference, and i can see how to add a client-side post-commit email hook, but i'd prefer to do the email-sending via a single server-side post-commit hook i think [18:06] the developers all have login accounts on the server, and we use bzr+ssh to commit/push [18:06] Peng_: in split-inv, we read a tree on demand, so we may only read 30 or 40 k of data - total. [18:06] is that possible somehow? if so where's it documented? ;-) [18:07] seb_kuzminsky: it is possible; s piv made it so, I'm not 100% sure what-all is needed :) [18:08] hm [18:08] also a post-commit hook to poke the buildbot would be nice [18:09] seb_kuzminsky: spiv will be online in about 4 hours [18:09] ok thanks lifeless [18:09] seb_kuzminsky: but generally, try just insalling bzr-email on the server and see what happens :) [18:10] i tried that, now when i "bzr up" in my checkout (bound branch) i get this warning message: [18:10] Errm, BTW, sorry about not getting around to the bzr search index thingy yet. I have been busier than usual, but mostly I'm just goofing off and being lazy. :\ [18:10] /usr/lib/python2.5/site-packages/bzrlib/plugins/email/__init__.py:57: DeprecationWarning: bzrlib.branch.BranchHooks.install_hook was deprecated in version 1.5. [18:10] Branch.hooks.install_hook('post_commit', branch_commit_hook) [18:10] Peng_: no worries [18:10] bzr 1.10rc1 [18:10] seb_kuzminsky: did you install bzr-email via package? [18:11] bzr-email 0.0.1~bzr5 (Debian Sid's standard .deb) [18:11] maybe i should bypass debian and grab bzr & friends from lp [18:11] oops, typo, that' bzr-email 0.0.1~bzr25-1.1 [18:11] whatever that means ;-) [18:12] "bzr plugins" doesnt show a version number for email [18:14] right the debian package is old [18:14] file a bug there asking for a new version to be packaged :P [18:15] ok will do [18:16] now, for yourserver, you can probably just ap-tget source bzr-email [18:16] grab the bzr-email upstream (bzr branch lp:bzr-email) [18:16] drop the newer source on top of the debian source package, and rebuild it [18:17] sorry, i had the "testing" version installed, there's a newer one in sid [18:17] the sid one is "bzr34" [18:17] from august sometime [18:18] i'll try that [18:21] looks like it's pretty close to top-of-tree bzr-email, it's just missing some test suite fixes === evarlast_ is now known as evarlast [18:24] with bzr-email r34 (from Sid) it no longer gives an error when committing :-) [18:27] hm, the "bzr help email" only talks about configuring client-side post-commit email-sending hooks [18:44] ok i think i'm thinking about this wrong [18:44] we've been using subversion, but we're switching to bzr [18:44] i'm basically trying to replicate our existing svn infrastructure using bzr [18:45] the sticking points are server-side post-commit hooks [18:45] one for sending email on commit, and another for prodding the buildbot [18:45] this seems to be not well supported in bzr currently [18:45] so bzr admins must be using some other mechanism to accomplish something similar [18:46] in terms of workflow, we're using something like one of the "Centralized" flows, or "decentralized with shared mainline" [18:46] how do others do this? [19:12] seb_kuzminsky: how did you go? [19:13] seb_kuzminsky: re: bzr-email docs, when the server runs the mail hook the *server* acts as the client === RoninX341 is now known as etank [19:13] lifeless: i'm not there yet, but still trying :-) [19:14] the bzr-email hook runs in the server's copy of the branch, i get that [19:14] but where does it get its configuration from? from the user who's running bzr, right? [19:14] you can configure it in branch.conf [19:15] hm [19:15] * seb_kuzminsky is rereading the docs [19:18] jml, fullermd: Are you around? [19:18] so it's ok to edit .bzr/branch/branch.conf? the .bzr/README told me not to [19:18] jam: What about you? You around? [19:19] GPH-Laptop: absolutely not :) [19:19] heh [19:19] jam: Just wondering if you saw my response to your e-mail? [19:20] I did [19:20] I wasn't sure what poolie's response meant [19:20] I would probably still be more in favor of writing out the plain fp if --null is given [19:20] I don't think he fully understood [19:20] I know I was wrong in thinking that it would give @, etc [19:20] seb_kuzminsky: we're a little unclear about things; yes its ok to edit .bzr/branch/branch.conf [19:21] okay then :-) [19:21] * seb_kuzminsky edits [19:21] I'll go ahead and respond to the email so it is documented :) [19:22] ok, thanks :) [19:24] jam: Also, any idea why I got an e-mail about not having voting rights? === abadger19991 is now known as abadger1999 [19:24] from Bundle Buggy [19:25] I believe when you replied to me, it didn't properly "quote" my BB:resubmit vote. [19:25] I'm not 100% sure ,though [19:26] It *looks* like your mail client is indenting the response, but not prefixing it with ">" [19:26] Ah [19:26] Alright, I'll change to unformatted [19:26] you can thank Gmail for that ;) [19:26] lifeless: now the server's .bzr/branch/branch.conf says this: [19:27] post_commit_to = seb@highlab.com [19:27] jam: So, am I to make a change and resubmit? [19:27] and "bzr hooks" shows post_commit as bzr-email [19:27] We need 1 other person to approve it. [19:27] seb_kuzminsky: that sounds good [19:27] The change is small enough that someone can do it for you [19:27] i'm not setting post_commit_mailer, so it should default to /usr/bin/mail [19:27] but if you do it, it is easier on us :) [19:27] seb_kuzminsky: yes [19:27] i can send myself email that way [19:27] but when i commit, i get nothing [19:28] jam: Alright. Same way? bzr send -o? [19:28] should be fine [19:28] jam: Can I just reply to that e-mail? [19:28] as long as you attach a patch you can just reply [19:28] okey doke [19:29] BB should notice and mark the patch as superseding the previous one [19:29] lifeless: my commits are happening (i can pull them) [19:30] but the mailserver logs on the bzr server machine show nothing going out, and the mailserver logs on the receiving side (highlab.com) see nothing coming in [19:30] seb_kuzminsky: what bzr client and server versions do you have ? [19:30] the server is 1.6.1, with bzr-email r34 [19:31] er, the server is 1.10rc1, with bzr-email r34 [19:31] sorry [19:31] the client is 1.6.1 [19:31] I think you need a newer client [19:31] let me check [19:33] lifeless: why should the client version matter? isnt it the bzr on the server doing this work (the client commits on a bound branch) [19:36] seb_kuzminsky: older clients do more things via the VFS than via RPC calls [19:36] hell jam [19:36] i'm sorry poolie, I didn't mean to upset you :) [19:36] lifeless: gotcha [19:37] seb_kuzminsky: so 1.6 looks like it should be ok [19:37] seb_kuzminsky: I'm not sure whats wrong, digging [19:38] so i have a bazaar install which is doing annotates (at least) REALLY slowly [19:38] hella jam dude [19:38] all the c extensions are built now, though it's possible they're not being used for some stupid reason [19:38] how can i debug this? [19:39] lifeless: i committed in a bound branch on the server, and it sent out the email [19:39] mwhudson: how slow is slow? And what version of bzr? [19:39] We had a fix recently [19:39] mwhudson: press C-\ in the middle of the annotate and look at where it is [19:39] and what he said [19:39] bzr 1.9 [19:39] seb_kuzminsky: ah! [19:39] jam: ah, maybe it's just relative age, indeed [19:39] the slow one is tiocsctty [19:39] no [19:39] 1.7.1rc1 [19:39] (fricking x clipboards) [19:39] mwhudson: so bzr 1.6 introduced a regression [19:40] where we weren't using the stored values [19:40] we fixed that in bzr 1.9 [19:40] jam: ok, that went easily then [19:40] (glad i asked!) [19:42] is there a preferred way to install a newer bzr on Intrepid? backports doesnt have anything. a PPA maybe? [19:42] yes, the "bzr" ppa [19:42] thanks mwhudson [19:43] seb_kuzminsky: ok, its because bzr-email uses the post_commit hook [19:43] jam, i started on a namedtuple-like object [19:43] and am trying to get it to pass tests in dirstate.py [19:43] currently just written in python [19:43] it certainly looks better [19:43] seb_kuzminsky: could you please file a bug, that it should support [optionally] using post_change_branch_tip as well, with an option to enable that [19:43] lifeless: instead of the post-tip-change hook [19:43] lifeless: ok will do [19:43] we'll have to see if it's possible to make a C version comparably fast to Py_Tuple [19:44] seb_kuzminsky: it can't just swithc over, because 'pull' locally shouldn't usually email :) [19:44] sounds interesting [19:45] jam, poolie: Any idea why all packages aren't available for 1.10 yet? [19:45] GPH-Laptop: what packages are you looking for? [19:46] poolie: I would imagine you could get close, with the exception of anything that is folded into the interpreter directly [19:46] poolie: the other question would be what the overhead of using the named arguments instead of the offset [19:46] lifeless: is it similar to this: https://bugs.launchpad.net/bzr-email/+bug/250934 [19:46] Launchpad bug 250934 in bzr-email "bzr-email should support email on push" [Wishlist,Triaged] [19:47] seb_kuzminsky: oh, identical - thats fine [19:47] jam: Mac OS X 10.4 [19:47] domo arigato mr ubottu ;-) [19:47] heh [19:47] jam, good question [19:48] jam: Hey, by the way, looks like I made a boo-boo on my last commit message. [19:48] Since i believe it will be implemented as "name => offset => get" there will obviously be *some* overhead [19:48] i might leave this angle of getting the python impl to pass and instead write up the C version and do some microbenchmarks [19:48] GPH-Laptop: the Mac installers are built by the community, so someone just has to wake up and do it. [19:48] jam: It kinda expanded my "`bzr ls`" to be the contents of the current directory. [19:48] jam: Ah, OK [19:49] jam, what do you mean by "name => offset => get" [19:49] * Peng_ points out that there are already namedtuple implementations out there. [19:49] Is there a command to change the commit message? [19:49] GPH-Laptop: No. [19:49] GPH-Laptop: bzr uncommit; bzr commit -m "new message" [19:49] I -- yeah, what he said. [19:49] alright [19:49] should I resubmit again? [19:50] you can't really change one after-the-fact [19:50] but you can regenerate the commit [19:50] if it is important to you, you can email it to me [19:50] If it's just a typo, it's not worth fixing (you should look at bzr.dev's history...) [19:51] Peng_: It kinda contains the contents of the directory instead of just the name of the command ;) [19:51] Peng_: in C? [19:53] Alright, I'll be back later. [19:53] GPH-Laptop: Heh, nice. [19:54] Peng_, there is http://svn.python.org/projects/python/trunk/Objects/structseq.c but it's not exposed in python [19:54] jam: Alright, new patch sent. [19:54] adieu [19:55] poolie: Ah... Never mind, then, I gues.s [19:55] it would be nice if there were [19:55] i thought that 2.6 namedtuples [19:55] Peng_: IIRC 2.6 does have a namedtuple class [19:55] but it is *really* crummy [19:55] would do this directly, but in 2.6.0 they're slower than objects [19:56] it is a pure-python class [19:56] and does things *really* weird [19:56] like using "eval()" [19:56] after thinking about this a bit more, i'm not convinced they should be tuple subclasses [19:56] or more precisely, "should provide the tuple protocol" [19:56] jam: Yeah, it's pure Python, and uses exec. [19:57] the reason we *use* tuples is because they are very fast to create [19:57] but we could use Py_StructSeq, unless we can do something faster [19:57] so named tuple breaks that [19:58] so being able to index things by ints, or iterate them, or take the length, when they're not conceptually sequences, is a bit of a bug source [20:00] lifeless: i installed bzr 1.10 on my client & still no email when i commit, is that expected from the bzr-email hook hooking in the wrong place? [20:01] seb_kuzminsky: do you mean commit or push? [20:06] jelmer: ping [20:10] seb_kuzminsky: I've uploaded draft code to mail on push/pull for you, to http://bazaar.launchpad.net/~/bzr/bzr-email/trunk [20:12] poolie, ups, sorry, I was out to eat :) === elmo_ is now known as elmo [20:26] np [20:33] lifeless: wow, thanks for the draft code!! [20:33] lifeless: the client has a heavy checkout (a bound branch), and i did commit in there, and it didnt email me [20:33] i'll try again with your new code, thanks! [20:43] lifeless: aww yeah!! === thumper_laptop is now known as thumper [20:43] thank you [20:56] seb_kuzminsky: my pleasure === sdboyer is now known as sdboyer|finals [21:34] I'm currently using one big bzr repo for all my website projects. I'm a few days down the road now and 3 sites in and it's already pretty slow to work out commits. Is it possible to split these 3 directories into their own repos (keeping, if possible, ignore settings and revision info from the existing repo) [21:35] is it a big repo or a big branch? [21:35] I doubt the repo is making a significant difference. [21:35] Well, some, but.. [21:36] yeah I'm probably using the wrong terminology... I typed bzr init. made 3 directories inside with all the site files in each of those and that's where I am =) [21:36] Oh, one big branch. [21:38] Peng_: does that make a difference to what you said? [21:42] Oli``: Yes. Committing requires the entire working tree to be scanned for changes, so obviously the size of the branch matters. [21:42] But that probably doesn't happen if you run "bzr commit some_file", and you might be experiencing slowness for other reasons too. [21:42] Oli``: What version of bzr? [21:43] 1.10 [21:43] Ubuntu PPA, I believe [21:43] Oh. [21:43] I was hoping it was some really old version, so upgrading would make everything much faster. :P [21:43] Oli``: generally, we'd say one branch per project :) [21:44] lifeless: yeah I was being lazy to see if I wanted to stick with bzr [21:44] Oli``: if they are all one website, one branch is fine, but if they are for different VHosts it reallu doesn't make sense to use one branch [21:44] Oli``: bzr commits should not slow down noticably under about 5000 files [21:44] hmm.. they're each only about 30 files each =\ [21:45] Oli``: Would any of the files happen to be gigantic? [21:45] Oli``: are you committing .iso files or similar ? :) [21:45] nope. python source files, jpeg images (small, sub-200k) [21:45] css, javascript, nothing scary [21:45] Oli``: can you do 'time bzr st' [21:47] Oli``: are you using a checkout against a remote machine, or a local branch? [21:47] Oli``: oh, also 'bzr inventory | wc -l' [22:01] LarstiQ: both but --local seems pretty slow too [22:01] sorry I had a phone call [22:01] 0.844s was the real result for time bzr st [22:02] bzr inventory | wc -l = 152 [22:04] Perhaps I'm imagining things (or expecting things to run at light-speed) but for the sake of correctness, I probably aught to split things up while I'm only dealing with 3 projects... [22:04] Is it going to be more hassle than its worth trying to keep the current history? Should I just juggle things around and create three new branches? [22:07] Oli``: Well, you might be able to use "bzr split" to spin off each directory into its own branch, though they'll all contain the full history up until this point. [22:07] I think. [22:08] * jml beats combine-thread repeatedly [22:18] Oli``: [22:18] Oli``: 'time bzr commit -m 'unchanged' --allow-unchanged' [22:19] no such option --allow-unchanged [22:19] but --unchanged exists [22:19] 1.1s [22:20] Oli``: that is a bit slow. How did you install bzr? [22:20] from the ubuntu repo.. then upgraded to the PPA version [22:25] Oli``: 'python -c "import bzrlib._dirstate_helpers_c" [22:33] igc: woohoo - welcome back :) === mark1 is now known as markh [22:34] revision-info should take a -d argument [22:58] jml, in 10 minutes? [22:58] pygi: sure. === beuno_ is now known as beuno [23:09] i'm trying to use bzr 1.10rc1 to provide read-only anonymous access to my repo [23:09] i'm starting it from inetd like this: [23:09] bzr stream tcp nowait nobody /usr/bin/bzr bzr serve --directory=/data/bzr --inet [23:09] seb_kuzminsky: the easiest way is just to put the repo up on http ;) [23:10] lifeless: i had a feeling you'd say that :-) [23:10] seb_kuzminsky: easier for folk beind firewalls and so on [23:10] it's an internal server [23:10] the only user will be our buildbot [23:11] all the devs access it via bzr+ssh [23:11] so the firewall is not an issue for us [23:12] when i telnet to the bzr port on the server, inetd starts bzr like i tell it to, but then the bzr server says: [23:12] No handlers could be found for logger "bzr" [23:12] That's just a warning.. [23:12] if i say "bzr ls bzr://server", it says: [23:12] Server does not understand Bazaar network protocol 3, reconnecting. (Upgrade the server to avoid this.) [23:12] Server does not understand Bazaar network protocol 2, reconnecting. (Upgrade the server to avoid this.) [23:12] bzr: ERROR: Generic bzr smart protocol error: Server is not a Bazaar server: Received bad protocol version marker: 'No handlers could be found for logger "bzr"\n' [23:12] Heh. [23:12] both client and server are 1.10rc1 [23:12] Oh. I guess the warning gets in teh way. [23:13] bzr likes to log to ~/.bzr.log. If it's being run as some user that can't, I guess it will emit the warning. [23:13] oh i see [23:13] i'm running it as nobody [23:13] i'll try running it as me, hold on [23:13] Can you set the environment variable BZR_LOG (to a writable file, or /dev/null to suppress logging)? [23:14] IMO, that's a bug that the logging warning breaks the smart server.. [23:14] sounds like a bug to me ;-) [23:14] if i run it as me it works fine [23:14] i'll see if i can convince inetd to do like you suggest [23:14] do you want me to open a bugreport? [23:15] I think so (if there isn't already one!) [23:15] even "bzr serve -q" gives that error [23:17] Peng: i think there's no way to tell inetd to doctor the environment of the programs it runs [23:17] i could write a wrapper... [23:18] Ah. I don't know what you should do, then. It would be a really trivial wrapper. [23:18] https://bugs.launchpad.net/bzr/+bug/129030 [23:18] Launchpad bug 129030 in bzr "Bzr inetd smart server requires write access on the user's home directory" [High,Confirmed] [23:19] Oh, nice. [23:19] Less than 1.5 years old! :P [23:20] https://bugs.launchpad.net/bzr/+bug/106117 [23:20] Launchpad bug 106117 in bzr "bzr serve should log somewhere other than ~/.bzr.log" [Low,Confirmed] [23:23] those two look related to this problem, i dont see any other bugs that seem related [23:24] lifeless: you may be interested to know that I've been able to tweak the old Inventory deserialization to the point that fetching 1.9 => chk for mysql seems to be spending 78% of its time in CHKInventory.create_by_apply_delta [23:26] also, your page cache helps a *lot* [23:26] jam: thats cool [23:26] jam: how fast is it? [23:26] if only apply_inventory_delta re-opens the base tree each time [23:26] lifeless: I got to 34k revisions after 15k seconds [23:27] 2/sec? [23:27] approximately [23:27] I just stopped it because I wanted to do an lsprof now that we are further along [23:27] so, we need to make create_by_apply_delta faster :> [23:27] jam: pick three reviews you need and link em here please [23:27] I'm also seeing "52.009MB => 13.017MB" [23:28] my update to your commit builder patch: http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C493C0839.10808%40arbash-meinel.com%3E [23:28] The follow-on interdiffering serializer patch: http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C493C0958.9010704%40arbash-meinel.com%3E [23:29] The rest of what I've been playing with is not in a mergeable state. But if you get those, then I have a patch which merges the new code from bzr.dev back into the chk branch. [23:29] Which resolves some conflicts, etc. [23:30] Since you approved the FIFO code, I can go ahead and offer a bzr.dev patch using that for XML deserialization [23:30] that is at least worth reviewing for conceptual merit [23:31] lifeless: Anyway... I'm thinking that flattening the trie will actually help the create_by_apply_delta a lot. [23:31] I don't have much better answers, as the time is partially spent in "serialize" [23:31] jam: k [23:31] and I've already worked out that merge revisions are pretty much always going to get collisions [23:32] jam: so, parameterised key-transforms ++ [23:32] I think that that is a good thing to do [23:32] I think we should consider/do a C serializeer and parser very soon [23:33] Peng: works fine with the little wrapper we talked about, with BZR_LOG=/dev/null [23:33] seb_kuzminsky: :) [23:33] i also added a comment to one of those bug reports, and suggested merging them [23:34] lifeless: well, as significant amount of time is in the Index code [23:34] 100s / 300s for converting 100 revs [23:34] (though from scratch, so nothing is paged in already) [23:34] (under lsprof) [23:34] jam: ok, index tuning to do too then [23:34] :) [23:35] 279k calls to _KnitGraphIndex._get_entries [23:35] which seems like a bit much versus only 100 revisions [23:36] I'd add a tracer for that [23:36] 25k calls to get_parent_map => 194k calls to _get_entries [23:37] meep [23:37] 17k calls to get_build_details => 54k calls to _get_entries [23:37] get_entries is an iterator, so that is how many records we are *reading* not the actual number of calls [23:38] but even 25k calls to get_parent_map is 250 calls per revision [23:39] I suppose some of that may be the "_walk_to_common_revisions" code [23:39] which has to go pretty far back [23:39] aaahhhhh: https://launchpad.net/bzrbuildbot :-) [23:39] but there *are* 16.5k calls to "add_records" which hints that we are adding 165 pages per revision [23:40] jam: what project? [23:41] mysql [23:41] And I'm guessing 50-75% of those are collisions [23:41] hm, but they have no code or anything :-( [23:42] lifeless: oh and one more. http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C493EF306.6000906%40arbash-meinel.com%3E [23:42] It is a trivial update to the earlier LRUCache update [23:46] is there a bzr 1.10 package for lpia architecture? [23:47] Gwaihir: I'm not sure, it will depend if the ppa builds lpia automatically I suspect [23:47] Gwaihir: should be [23:47] it usually builds i386, amd64, lpia [23:48] jam: all reviewed [23:48] lifeless: thanks [23:53] looks like the package is present, but if I add the sources.list entry it complains that it's not possible to find the lpia architecture [23:53] lifeless: quick question... if we are walking in topological order. will a merge revision actually usually follow the right-hand parent? [23:53] anyway... thx, found the package [23:54] jam: rephrease/more detail please [23:54] putting together a paste, just a sec [23:55] http://paste.ubuntu.com/83214/ [23:55] If you have the simple merge graph [23:55] and you topo_sort [23:55] lifeless: the idea is that mysql is merging the 5.1 branch into 6.0 [23:55] thanks again lifeless and Peng_, see you later [23:56] but the InterDifferingSerializer code will see the 5.1 as the "basis" versus 6.0 [23:56] which causes us to create a delta of all of 5.1 versus 6.0 [23:56] jam: topo_sort has no preferennce between B and C [23:56] DCBA and DBCA are both valid IIRC [23:57] lifeless: what about: http://paste.ubuntu.com/83217/ [23:57] I'm also more concerned with the output of "tsort.topo_sort" than the definition of "topologically sorted" :) [23:58] Anyway, my point is that C=>E and E=>G may be small changes, but B has lots of changes [23:58] and if we use all of C, E, G as the base [23:58] then each delta includes the changes from B [23:58] which is why we are getting so much redundancy in the conversion [23:59] arg..... python2.4's collections.deque doesn't have a ".remove()" attribute