[00:01] hi poolie [00:04] Hey, how come there's a VCS flamewar going on on Slashdot and no-one mentioned Bazaar so far ? http://bsd.slashdot.org/article.pl?sid=08/06/04/1749233 [00:06] because we actually do stuff? [00:07] :-P [00:09] Heh. Begins switch to subversion. [00:10] It is a step up from CVS, I suppose (although someone points out all the core devs use Perforce [00:10] its worse than cvs in many ways [00:10] its user model particularly [00:10] however, it scales better than cvs [00:11] But it's easier to work with svn than cvs in a dvcs, I believe. So it's a step up in that respect :) [00:11] RAOF: not at all [00:11] cvs these days has atomic changesets believe it or not [00:12] lifeless: So my lack of exposure to bzr-cvs is due to my lack of exposure to cvs? [00:12] no, its due to old cvs data still being a pillock ;) [00:12] Right :) [00:12] bzr cvsps-import does exist and do a decent enough job though [00:13] (my point being that you could just cleanup the tree and go from there) [00:13] oh, also don't forget cvsup - distributed cvs ;) [00:13] poolie: call over ? [00:14] lifeless: not quite yet [00:14] bbiab === mw is now known as mw|out [00:54] -> doctors, back, well, later [01:29] I would like to create a bzr trunk on a private server to backup my home folder. Can anyone point me to some docs on how I might do that? [01:32] Zelut: http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html#branching-a-project [01:33] I don't think bzr is a very good solution for backing up your whole home dir [01:34] bob2: well mainly what I'm looking for is archiving and tracking my .folders, and upon a fresh install just being able to branch my ~ and be done. === BasicTheProgram is now known as Basic [01:34] storing all your config files and documents etc works well, though [01:34] bob2: seems simpler to branch that and get my .ssh, .gnupg, etc than manual backup/restore each time. [01:36] I'd be weary of putting ssh and ngupg private keys in, but I do version all my dotfiles [01:36] bob2: kind of like /etc/skel I guess, but just requires branching. [01:36] er, wary [01:38] I've been using bzr with LP but I'm unsure how to create a trunk on my own machine is the main problem. [01:39] Zelut: bzr init path/to/branch [01:40] mwhudson: lets say I've got a folder locally that I want to push to a remote server and then be able to branch from remote in the future, what else do I need? [01:40] bzr init in the folder [01:41] bzr add to add the contents of the folder [01:41] bzr commit to record these files [01:41] bzr push to the server [01:41] that's it [01:41] I swear I had done that before but all I have on remote is .bzr with no contents. [01:42] that is indeed what push does [01:42] unless it is pushing to a local directory [01:42] you can a) leave it, since you can still branch from that remote one fine, b) manually 'bzr co' in the remote dir after each push or c) install the 'up-afte-rpush' plugin that does b automatically [01:43] so I could branch from remote and get those files, even though they are not listed there? [01:43] (https://launchpad.net/bzr-push-and-update) [01:43] yup [01:44] interesting. I figured I had done something wrong because I didn't see anything on remote. [01:45] well how 'bout that. bzr co and its all there. bzr is some magical voodoo :) [01:51] is there a preferred method of defining bzr whoami? .bashrc or..? [01:52] using bzr whoami [01:53] I mean, does 'bzr whoami joe hacker ' define it long-term or per-session? [01:53] it writes it to ~/.bazaar/bazaar.conf (so per-machine) [01:54] perfect. [01:59] spiv: if mhammond comes up here in the 16th do you think you'll be free? [02:02] poolie: yes [02:11] poolie: has there been a change in plans? [02:13] jml, he can't get a meeting room at the hotel that week [02:14] so we can either meet at my house or postpone it [02:14] ahh ok. [02:14] jml, were you wanting to come for most of that time [02:14] poolie: yeah, I was. [02:15] spiv, jml, how would the week of the 23rd be? [02:15] poolie: pretty god. [02:15] good. [02:15] * jml smiles [02:18] poolie: that's fine too [02:44] back [02:44] hi lifeless :) [02:46] hi [02:48] oh you're back already? time flies [02:49] got lucky, only 10 minute wait [02:54] that is lucky [02:55] in fact, if you had witnesses, I'd suggest sending an email to the Guinness Book of Records :) [03:12] for that doctor its amazing [03:12] usually 2-3 hours === thumper_laptop is now known as thumper [03:31] lifeless: yes, please do (continued from -ops) [03:31] O:) [03:31] terrible man [03:32] lifeless: although my personal motto is "non universim sed singulatem fretus," which has a far more lapidary tone. [03:33] Sempre utor ubi-bracae perhaps [03:41] also mneptok whats with the no-idling attitude? [03:51] lifeless: channel rules [03:52] lifeless: i have no idea what caused their creation, though. [03:54] lifeless: Any thoughts on whether it is kosher to mutilate the in-memory inventory of a DirStateRevisionTree? [03:55] I.e. to feed it to apply_inventory_delta? [03:56] mmm [03:56] so what we do is try to either modify the dirstate, or the inventory, but never both [03:56] the inventory is re-flattened on unlock() if it has been modified (as checked by a flag in WorkingTree4) [03:57] thats for the wt; uhm for a rev tree [03:57] the in memory inventory is cached [03:57] if you modify it, other callers asking for it will get the same modified inventory. This could be bad. [03:59] Half of igc's branch speed gain comes from using the existing InventoryEntry objects, rather than re-calculating the data from the TreeTransform and working tree. [04:00] Is there a way to do this safely? [04:00] this is new clone ? [04:01] or build tree? [04:01] This is build_tree. [04:01] where is the dirstate rev tree coming into the picture? (I would have thought we grabbed a repository inventory ...) [04:02] The dirstate rev tree is the basis tree of the branch we are branching from. [04:03] When that revision isn't available as a basis tree, we do use a repository-backed RevisionTree. [04:05] If the source branch has a working tree that we can use, we use it to retrieve files from disk instead of the repo, which I've benchmarked as faster. [04:06] ok [04:06] so what do we need from the inventory - do we have an iterator we can use without upcasting from dirstate to a full inventory in the first place ? [04:06] (making an inventory is slow in the first place) [04:07] I realise I'm not directly answering the question. To directly answer it - add a private method to detach the inventory from the dirstate rev tree, then you own it can do $whatever you want to. [04:07] We are using iter_entries_by_dir which I don't believe creates a new inventory. [04:08] But if the cost of generating an inventory is in constructing the objects, then it's just as expensive. [04:09] Which is an unavoidable cost. [04:09] Given the input requirements of apply_inventory_delta. [04:11] abentley, lifeless: the meta-question I had while profiling local branch creation was ... [04:11] the major cost when I looked deeply at inventories was simply creating xK objects and stitching them together [04:11] given a pristine local mirror, can you reuse the source dirstate to get the target one fast [04:12] both apply_inventory_delta and set_parent_trees suck when run on an OOo tree [04:12] igc: pristine shouldn't matter. [04:12] in principle you can copy the dirstate basis column to an output dirstate with a iterator and filter (to remove renamed/deleted/added rows) duplicating entries to create current-disk values [04:13] igc: apply_inventory_delta should be good because it generally has to deal in 10's of objects not 10's of K of objects [04:14] lifeless: on branch, the delta is the whole 100K entries [04:14] lifeless: apply_inventory_delta is used by build_tree when creating inventories from scratch. [04:15] yes, I can see that. to me this comes back to 'python is slow, whats the best way to work around it' [04:15] subprocess.cmd('cp -a') [04:15] some benchmarks might be good to check I actually drew the right conclusions (e.g. create a 100K inventory 50 times) [04:16] abentley: I mean of the python primitives we have available' [04:18] * igc lunch [04:19] I can tell you that when building emacs, WorkingTree4._get_inventory is 2% of total runtime, and apply_inventory_delta is 3%. [04:19] That's according to kcachegrind, of course. [04:19] righto, step 1 - gather stats :P [04:19] how big is emacs btw ? [04:20] 400M [04:20] Sorry, 105M [04:23] With my current patch, actually reading and writing the tree files dominates. [04:23] that's good [04:24] I was seeing 20-25% on the iter_changes over the accelerator tree [04:26] That's bad. I haven't changed anything that should have affected that. [04:29] abentley: there's a mozilla repo in http://people.ubuntu.com/~ianc/benchmarks/repos/bzr/ that I was profiling against fwiw [04:29] it's a good size without being crazy [04:38] igc: Thanks. I'm pulling that down. [04:38] I also worry that we might be optimizing for the wrong case. We tend to benchmark against hot cache. [04:39] But when branching, the branch source is likely to be cold cache. [04:43] I would expect branch source and repository to both be cold [04:43] abentley: you know you can drop caches right? [04:43] Yep. [04:59] abentley: I agree that cold cache is the more important time [05:00] igc: Which have you been testing? [05:00] hot cache is important though: it's what most people benchmark the tools on, and it highlights what we have most control over [05:01] io patterns aside [05:01] I've been using hot cache [05:12] What would cause our extensions to get compiled with -Wall? [05:17] CFLAGS=-Wall [05:18] Pieter: It's not set. [05:20] abentley: see /usr/include/pythonX.Y/config/Makefile [05:20] distutils gets some flags from there [05:20] jamesh: Thanks. [05:20] including -fno-strict-aliasing and other necessary ones [05:20] Turned out that wasn't the problem after all. [05:21] It was the lack of libc6-dev... [05:21] actually, that should have been /usr/lib/pythonX.Y/config/Makefile [05:44] Pieter: apologies for not getting to your fastimport/export questions/improvements - knee deep in the stacked branches reviews right now. Will do soon though. [05:54] spiv: ping [05:57] lifeless: pong [05:57] oh, ringing you :P [06:36] lifeless: oops, my cheek mashed the "hang up" button [06:37] lifeless, poolie: all the stacked branches reviews/tweaks sent to the ML now [06:41] ml: see test_branch_shallow_branch_also_shallow_same_reference() in the patch [06:41] jml^^ [06:42] igc: has this changed from lifeless's branch of two weeks ago, or is this a difference between API and UI? [06:44] mwhudson__, I know your day is about to finish, so these are the benchmarks against loggerhead trunk, your zpt branch, and my zpt branch, for the same 36k diff: trunk, real 1m38.033s, 400mb+ RES mem. Your zpt, real 0m35.243s, 220mb RES mem. My zpt, real 0m23.116s, 120mb RES mem. [06:45] so it's more like a 8x improvement to the current trunk [06:46] I can still shave a few seconds/mb off of it once I finish refactoring some un-needed operations, and it's missing tests. But it's looking good :) [06:47] jml: it doesn't look like the UI controls this so I'm guessing it done under the API - will dig [06:47] * gour just read latest from bzr ml [06:48] igc: the patch I sent you for clone() addressed just this behaviour. [06:48] having gnome on bzr, won't be bad... [06:48] igc: it's possible that I'm confusing things, given my relatively shallow (no pun intended) knowledge [06:48] jml: I can't apply your patch yet sorry - I think it needs abentley's policy stuff first? [06:49] igc: yeah, that makes sense. I was working against abentley's branch. [06:49] igc: I've sent it to him to apply. [06:50] gour: I wonder how they decide [06:50] igc: if he bounces me, then I'll redo it for bzr.dev once your patches have landed. [06:50] * beuno is off to bed [06:51] Pieter: me too, but it's better that bzr become ready if something can be done with 1.6 release taking into consideration their needs [06:52] see http://guadec.expectnation.com/guadec08/public/schedule/detail/81 [06:52] jml: That patch seems like it could do serious harm. [06:53] seems a bit odd to rush a feature so that some party may perhaps choose bazaar [06:54] abentley: can you please elaborate? [06:54] jml: If I branch, I expect to have everything I need. [06:55] Pieter: I'm not rushing the feature - I've been hacking towards all the bits coming together for months [06:55] If I push, the resources I have locally may not be available to all users. [06:55] Pieter: I'm trying to ensure its not stuck in trunk with 3 weeks to go at a point where it may be extremely relevant for discussion [06:57] lifeless: sure. if stacked branches go into 1.6 and everything can be polished a bit, i do not object waiting for 1.6 some week more [06:58] Pieter: also, to invert things slightly, it would be strange not to work on the things that our users seem to want most :P [06:59] abentley: are we talking about my patch or the UI2 patch? [06:59] otoh, having big(ger) party using bzr is very good for bzr 'cause new workflows and/or user-cases are explored leading to bzr improvement in general [06:59] jml: Your patch. [06:59] s/bzr impr./bzr's impr. [07:00] It causes stacking without user intervention, no? [07:00] abentley: it preserves stacking without the users intervention [07:00] Tomato, potato. [07:01] jml: preserving stacking is surprising, it doesn't fit our current behavioural model [07:02] abentley: ok. I don't pretend to have a deep understanding here but it seems like a good idea for 'BzrDir.clone' to clone [07:03] lifeless: given that I wrote the patch based on your guidelines I'm more than happy to withdraw support for it if you no longer think it's a good idea, conditional on me understanding why. [07:03] oh - clone() should clone() for sure [07:03] abentley: bzr branch uses sprout [07:03] lifeless: push uses clone. [07:04] abentley: yes; hmm [07:04] so the case that identified this was 'how does launchpads hosting service clone a shallow branch most appropriately' [07:04] (without rewriting clone()) [07:05] lifeless: paramaterize clone to preserve stacking? [07:06] lifeless: Alternatively, does push *need* to use clone? [07:07] well clone fits push much better than sprout IMO [07:07] actually, this is high up the merge stck [07:07] Neither of them is exact [07:07] I'm going to head-down and finish the current patch [07:07] then I will have many more cycles to think [07:07] lifeless: fairy nuff. [07:08] jml: I can adjust the patch so the behaviour is optional. Does that appeal? [07:09] abentley: it fits my use case, certainly [07:09] abentley: the deeper bzr model issues I can leave to the experts :) [07:09] done. [07:09] thanks. [07:22] jml: Your patch's stacked_on selection will be overridden if there is a configuration directive. Is that what you expected? [07:23] abentley: no, it isn't. [07:23] i.e. if the user has a .bzrdir/config with a default_stacked_on set, your patch has no effect. [07:24] Okay then, I think we can simplify the patch. [07:25] abentley: what jml wants is to be able to do - in the puller: [07:25] if (we dont have the branch) [07:25] local_branch = remote_branch.bzrdir.clone(options) [07:25] and thats about it [07:27] lifeless: Yeah, I have a fairly good idea of the use case. I just wasn't sure whether that was a deliberate choice. [07:27] abentley: :) [07:42] jml: Some examples of how BzrDir.clone doesn't clone: [07:42] 1. if the target has a shared repository, it always uses it [07:42] 2. if the source is in a shared repository and the target isn't, it creates a target as a standalone branch [07:42] 3. it doesn't create remote working trees [07:42] Perhaps clone is simply misnamed. [07:42] abentley: hmm. [07:43] abentley: the evidence is certainly mounting [07:47] jml: As another example, when you branch a subversion branch, bzr-svn doesn't create a Subversion repository. [07:48] It's really more like a mimeograph than a clone. [07:48] branch uses sprout though [07:48] so that other example isn't one ;) [07:49] lifeless: Sorry, "push from" [07:50] abentley: can you actually push from a svn branch though? I didn't think they existed on disk, only conceptual branch references [07:52] lifeless: I haven't investigated. But I would assume push -d will specify a subversion branch. [07:52] oh interesting [08:09] ok i'm starting to merge the external reference patch [08:26] what would cause a NotBranchError when using bzr-svn on a previously working repository? [08:26] * igc pick up kids [08:28] i'm callin it a week [08:28] 5:30 time to crack a beer I think [08:29] cheerio lifeless [08:29] might see you online :P [08:29] otherwise tuesday [08:29] once i finish cleaning this up [08:29] btw mark is confirmed for the week of the 16th [08:29] uh [08:30] if you want to reply on tuesday to my mail re scenarios that would be cool [08:30] if only to say +1 [08:30] sure [08:47] igc: i think you forgot the attachment? [08:47] lifeless: if you're still around, abentley has suggested using a path in branch.conf vs a new branch format [08:48] is that the plan for making stacked branches production? [08:49] poolie: thanks. fixed. [08:52] lifeless: abentley had a bunch of other good feedback as well that I found today (post my review overnight). I think we should include most/all of his suggestions. [09:00] igc: if I understand the proposal correctly, its a bad idea, it will break, badly [09:01] its definitely not the plan - a new branch and repository format is required [09:02] Hi all. [09:02] Does anyone happen to know whether the Fedora Core 8 subversion packages contain the necessary patches for bzrsvn to work? [09:02] igc: however abently proposed using a branch.conf key rather than a new *file* for storing where things are stacked [09:02] igc: and that was a good idea [09:02] uws: the bzr-svn test suite can detect them [09:03] lifeless: ah - ok. Here was the thread: https://lists.ubuntu.com/archives/bazaar/2008q2/040079.html [09:03] uws: install it, run bzr selftest svn [09:03] igc: I'm really just passing through [09:03] igc: this can wait till tuesday [09:04] lifeless: enjoy your beer. I'm off to cook dinner. Have a good weekend all [09:05] lifeless: Installed Subversion version does not have updated Python bindings. See the bzr-svn README for details. [09:05] lifeless: Too bad :( [09:05] lifeless: I'll have to update/compile svn myself. Would you suggest the latest stable 1.4 release + the patch, or svn trunk instead? [09:08] bzr is quite ok at http://live.gnome.org/DistributedSCM [09:09] uws: svn-1.5rc9? [09:18] gour: http://bzr-mirror.gnome.org/ [09:19] uws: ohh, nice. it means it's a serious candidate [09:19] uws: there is a faq about this, bazaar-vcs.org/svn I think [09:20] lifeless: you mean http://bazaar-vcs.org/BzrForeignBranches/Subversion?highlight=%28bzr-svn%29#python-subversion-1-5 ? [09:20] lifeless: It only lists the patch, but doesn't suggest which one to use [09:25] uws, gour: bzr-mirror.gnome.org is my baby if you have any questions about GNOME and bzr... [09:27] Jc2k: Ah. haven't used it personally yet [09:27] though I use bzr mostly, my gnome development happens using svn for now [09:27] Jc2k: i do not use gnome myself (only xmonad + xmobar), except some gnome apps, but would like to see gnome adopts bzr [09:27] dunno what the jhbuild support for this is [09:27] gour: /me too :) [09:28] uws: thats my other project ;) [09:28] * gour hopes that this overly-complex-easy-to-shoot-oneself-in-the-foot VCS won't prevail [09:28] Jc2k: rock on :) [09:28] git-mirror.gnome.org is also coming by the way.. [09:29] i've never used git. it [09:29] 's interface is horrible [09:29] its* [09:29] agreed [09:29] i mirrored about half of GNOME in 2 days, then realised it was wrong [09:29] i don't care about the kernel hackers' opinion that much [09:29] i have to start from scratch [09:31] so i have a few questions actually [09:31] there are a few thing the GNOME GIT people do, and are likely to whine about if they can't with Bzr [09:32] (regardless of whether they are good ideas or not) [09:32] is there an equivalent to git rebase --interactive [09:33] Jc2k: nope, it needs someone to spend some time on the rebase plugin [09:33] james_w: i guess its not something that a bazaar code newb such as myself can really approach, either? [09:34] Jc2k: actually, I think it should be possible. [09:34] oh? [09:35] I would hope that the rebase itself would be demonstrated by the existing code in the plugin, and it would just be a case of coding the interactive stuff, which hasn't got a lot to do with bzrlib [09:35] I may be being optimistic, but we would certainly help you if you wanted to give it a go. [09:36] i was wondering if it was maybe better as bzr-refactor as i don't think hacking apart your branch is really the same as rebasing, but yes.. am interested in giving it a go [09:37] bzr-resequence? [09:38] Jc2k: I think "rebase --interactive" would be the way to go, as diverging from git here would probably just cause confusion. [09:39] ok [09:43] james_w: would a bzr-gitmode pluging be possible that emulated the git wc/repo/branches model? [09:44] you could do it as a repo format [09:46] there was a suggestion that someone could make a bzr-loom without the stacked looms bit [09:47] Jc2k: yes, it would be possible. [09:47] Jc2k: bzr-git allows you to work with git using the bzr ui, but it would also be possible to write a plugin that gave multiple branches in one directory. [09:48] james_w: its the 2nd one that i'm after [09:51] oh, is there any way to pull a whole repo? [09:51] multi-pull plugin [09:53] bob2: can that pull branches that i haven't already branched? [11:07] jamesh: jhuild groks bzr yeah ? [11:07] lifeless: I did some bzr support code way back, but I don't know if it is still in a working state or not [11:08] if it isn't working, it should be trivial to fix [11:10] * AfC tried to get that to work, oh, 8-9 months ago, but I couldn't make it go. I'm not a regular jhbuild user, so it may have been something else. [11:12] [the mapping or repository's type & href attributes to a Bazaar URL and the branch element being inside an autotools (which we don't use) one made it all a bit vague] [11:13] AfC: the nesting of the elements actually matches the modularity of the code [11:14] AfC: the autotools build rules can have various VCS backends plugged in to grab the code (including "download and extract the tarball" VCS) [11:14] there are other sets of build rules (e.g. Python distutils) which use the same VCS backend code [11:14] Oh, I don't doubt its design makes sense, but I couldn't grok it is all. [11:15] AfC: i'm going to look at some "bzr-mirror and jhbuild" notes [11:15] Jc2k: yo dude [11:15] :) [11:15] Here, let me pastebin what I wrote [11:16] http://rafb.net/p/f3e70j67.html [11:17] Jc2k: (note this is slightly different from "I want to use bzr to work with GNOME modules currently living in Subversion"; I wanted to add java-gnome to the GNOME jhbuild modulesets but couldn't quite figure it out) [11:19] AfC: sorry, i think i phrased what i said badly - i'm going to add some notes to the bzr part of live.gnome.org about jhbuild and bzr [11:29] Hi [11:30] so, rebase -i - I think that a low entry point one that is a clone of gits should live in the rebase plugin [11:31] james_w: bzr-git is not that complete fwiw [11:31] lifeless: hi. ah yeah, I know that, but I was just wondering what functionality they wanted. [11:42] Jc2k: yes, multi pull can replicate a full set of branches [11:43] Jc2k: I think its important to remember though 'the way git does it' is what contributes to the feeling you had that it wasn't the right thing when you played with it :P [11:43] Jc2k: so we want to be somewhat careful about dropping git workflow in wholesale - providing plugins for git users that don't want to change is definitely possible though [11:44] lifeless: yeah, its more about eroding pro Git arguments by supplying plugins for their workflows [11:52] what's the easiest way to configure bzr on a server so that it can be used over bzr-ssh://? [11:53] Jc2k: It was a shame to see that the imendio guys are using Git. So that means its probably too late for GTK, though if anyone respects letting others work together its them. [11:53] RainCT_school: install it so that's in the path [11:53] RainCT_school: assuming you have Bazaar installed on the machine in question, there's not really anything further you need to do. It'll Just Work™ [11:54] RainCT_school: the URL prefix is bzr+ssh:// rather than bzr-ssh://, btw. [11:55] s/prefix/scheme/ to be precise I guess. [11:55] spiv: good catch [11:56] Oh, OK. Commit privilegies just depend on the SSH configuration / system users then? [11:56] spiv: yeh.. bad memory ^^ [11:56] RainCT_school: Right, ordinary filesystem permissions. [11:56] great :) [11:56] thanks [11:57] well, gonna go. bye! [11:57] AfC: gtk will move to git? [11:58] gour: a lot of GTK hackers are already using it, which means its harder to get them to bzr [11:58] :-( [11:59] one reason more to try get gnome [11:59] gour: but they are using it in an unoficial capacity, much like the other GNOME hackers like me and AfC are using bzr-svn [11:59] Jc2k: not exactly. They are using Git exclusively for their 3.0 work. Whether or not that ever makes it back to Subversion remains to be seen. [11:59] gour: GNOME will be providing some "experimental" hosting for bzr branches, though :) [12:00] Between them and the Cairo / Pango people, I'd say it's probably a lost cause. But we can keep trying. [12:00] * gour has hard time to understand why people love git...powerful? yes. but utterly complex model which stands on the way [12:01] gour: because its fast, because it handles things like families of branches as single units, and because other projects they are familiar with use it. These things are viral. [12:02] s/its/it's/ [12:02] its not entirely a lost cause, git has no backing from a sysadmin. the git people need to provide a volunteer to ensure smooth operation of git.gnome.org. [12:02] gour: and, don't forget, these people are all power users. [12:04] Jc2k: at this point, with Imendio and Codethink and Collabora all hosting their own git repos, someone hosting a git.gnome.org is somewhat less relevant. Yes, Olav is on our side, but he's a sysadmin, not a hacker. [12:04] i understand that...but, e.g. families of branches are just one reason why i prefer bzr (coming from darcs) [12:04] AfC: With a bzr-rebase --interactive, codethink can be turned. [12:05] Jc2k: :) I forced Rob to use bzr to make some fixes to java-gnome. That got him started, at least. [12:05] AfC: :p, Rob said he'd be willing to give bzr more of a look with rebasing. [12:06] Fact is that's just the way a lot of people look at distributed version control. It's getting on towards pointless to tell them that they're wrong. I understand and accept the arguments made by the bzr hackers about history loss, but most people don't seem to care that much because it hasn't burned them so far as they can see. [12:08] right, no change until getting burnt [12:08] same here...i had few serious issues with darcs [13:17] AfC: I understand why git users rebase now better than I used to. [13:17] AfC: its because their log is broken. [13:19] (it sorts by date not by branch, so if you imagine 10 branches, each that last a week, all merging to mainline one after another, [13:19] if they have 10 commits each [13:20] and spread equally over that week [13:20] then git log does: [13:20] branch1-commit10 [13:20] branch2-commit10 [13:20] .. [13:20] branch10-commit10 [13:20] branch1-commit9 [13:20] ... [13:20] branch10-commit9 [13:20] ... [13:21] Ouch [13:21] now imagine trying to understand what has happened when you see that output [13:21] [of course, I am on record as being terribly unfond of `bzr log` but mostly `bzr viz` makes up for it] [13:22] lifeless: apparently bisection techniques are easier with linear history too [13:22] lifeless: so, from a marketing standpoint, can you just say "bzr doesn't need rebase because our logging works right"? [13:22] jamesh: its easier if you don't think about it :) [13:22] AfC: well, I can say 'bzr doesn't provide the same anti-social pressure that makes rebase so important to git users' [13:22] lifeless: (that would be something really concrete for the compare and contrast crowd) [13:23] or even remove the word anti- [13:24] I think the only time I've really used the bzr-rebase plugin was to move some commits that had been made to the wrong branch [13:24] basically a cherry picking operation [13:26] to enlarge on the social pressure [13:26] you want every commit to be as stand-alone as possible [13:27] small tweaks that are part of a bigger picture become unhelpful unless they are really well documented [13:27] you may also want the dates of each commit to be close together as this be more likely to group the commits in log [13:29] and this fits quite well I think, wit what I see git using projects asking for [13:30] personally I'd very much like rebase in combination to some way of "rewriting history" [13:31] that is, I branch, work without minding much about about things on a branch (commits, trial and error, revert, etc) [13:31] then before merging to the master branch, rebase to the current head and rework the "branch" as a logical series of changes [13:32] thats largely the quilt workflow [13:32] pbor: You might find that the loom thing that Robert and others supports that development style. [13:32] and there is some user demand for loom to support this more directly [13:32] s/others/others are working on/ [13:32] which make history very good to read (not only the log, also the diffs) [13:33] I must admit I'm a bit vague on why one needs looms in an environment where people are already being encouraged to make lots of little inconsequential commits anyway [13:33] loom is specificall designed for collaborative quilts, if I can coin a phrase [13:33] it also helps create the illusion of infallibility :) [13:33] jamesh :) [13:34] That said, I must admit I am often hesitant to make micro commits in the face of needing to set the example to encouraging others to send me good quality patches with well written commit messages. [13:34] AfC: it is useful because I can work on a branch as I like, but then submittit as a logical and clean series of consecutive and evolutionary patches [13:34] the testing angle is the biggest problem I have with rebase [13:35] jamesh: yeah, I buy that one now too [13:35] AfC: so perhaps you don't need such good quality (individual commits) and well written (individual commit messages) [13:35] lifeless: I'm not sure about that [13:35] AfC: and perhaps could instead want good quality (merges) and well written (merge commit messages) [13:35] this is all the the bzr project *itself* looks for [13:36] tools like viz and gannotate make sense when the meta data they display has some relevance to the code in question. [13:36] thats true [13:37] lifeless: [well, since I'm the poor shumck who does the merges, yes, I try to do that as best I can. [13:37] the barrier for that is relatively low though, in large part because of the topological grouping of data [13:37] The point being made here, though, is sorta standing out in my current experience as a sore point] [13:38] Its almost like I wish for something to "roll up" a series of revisions into a single "commit". YES I realize that merges can fill that function, but there are lots of other merges that happen too. [13:39] you know about log --line ? [13:39] (and I don't feel like being the only person who has to write good commit messages, which is why I am so completely frustrated with the fact that `bzr log --line` only prints left hand most revisions [13:39] Its almost enough to make me go use something else I hate it so much) [13:39] AfC: so what I am saying is require that the *submission* contains the pre-written commit message, and make it a good one [13:40] lifeless: right, so that's what you guys do with bug bunny, but that's out of band to the VCS tool [13:40] which seems a serious oversight. [13:41] (ie, it's nice that you gents have it all nice and sorted, but it doesn't help anyone else who has the temerity not to use your PQM code management model) [13:41] (ie, everyone else trying to use bzr) [13:41] {shrug} these are my pain points. [13:42] I point these out only because a) they've been my pain points more or less since the beginning [that and no cherry picking], and b) they're my *only* pain points to what is otherwise an excellent experience. [13:43] I had an idea the other day for a log format that showed only the 'leaves'. I wonder how useful that would be. [13:43] lifeless: I have more or less come around to abandoning revision commit messages and asking people to edit a ChangeLog file instead. I was so happy not having to have people do that over the last 2 years, but... [13:44] pickscrape: (that would seem to assume that all of the mainline commits are merges, which may not be accurate either) [13:44] AfC: so, I have been mulling having a editable merge-message in branches [13:44] AfC: for precisely this reason [13:44] lifeless: that's an interesting notion [13:44] Any mainline commit that is not a merge would be considered a leaf. [13:44] pickscrape: (ah) [13:44] In fact, the point is only show non-merge commits [13:45] pickscrape: well I'd love that personally, because then my projects would look like they were written by the people who wrote them, and not all "Andrew Cowie" [13:45] It's like --short, but where you have a merge, substitute it with the commits that made up the merge [13:45] Grossly simplified of course, but that's the idea [13:45] AfC: log should be taught to honour --author [13:45] AfC: vs committer, we do differentiate; hmm is there a bug on that [13:45] lifeless: It seems log shows the author [13:46] pickscrape: [though along the way I got into the habit of also making real changes during merges until I finally learned that this wasn't helping and Robert showed me a few other ways to do it] [13:46] Hmm, changes made during the merge would be a problem with such a format [13:47] lifeless: it's not the author vs committer thing, it's the fact that the only revisions shown by `bzr log --line` of, say, bzr.dev were all written by some ninja named Canonical Patch Queue Manager. Dunno who that guy is, but man are they ever slick. [13:47] pickscrape: hence my just wanting *all* revisions in single line format, not just left hand most [13:48] AfC: Btw, it's "bzr vis", not "bzr viz", you heretic. [13:48] uws: WORKSFORME [13:48] AfC: that is precisely commiter vs authro [13:49] AfC: pqm does not yet do --author for us, when it does, the output you are talking about will change [13:49] (for new commits since that point) [13:49] I was meaning to ask about that [13:49] lifeless: what happens when there are 13 authors who contributed 450 revisions that collectively roll up to a single left-hand-most merge? Why aren't they being shown? A single --author has nothing to do with this [13:49] AfC: American spelling degeneration ;P [13:49] If you use --author, does that credit *all* lines to that author, even if the branch being merged contained work from more than one person? [13:50] uws: ah. I didn't realize they had added "vis" as a short form. [13:50] pickscrape: it credits the commit, in a social sense. bzr always knows where lines come grom [13:50] uws: that's good of them [13:50] *from* [13:50] lifeless: sweet [13:50] This is one of the things about svk that we struggle with the most. The merger gets credit for everything. [13:51] svn's limitation really [13:51] yup [13:51] pickscrape: which is, outside of `bzr gannotate`, the impression created by Bazaar. [13:52] (unless they're doing a shared central model and checkouts, of course, then lots of people are committing to left-hand edge. I suppose I should allow for that) [13:52] AfC: I think lifeless has said that they're going to get PQM setting --author, which fixes that problem [13:52] Bah [13:52] Actually it was on a recent blog post too [13:52] That's what I'm talking about. [13:52] I have no intention of using Canonical's Patch Queue Manager bot. [13:53] and most other people I have interacted with don't plan to adopt it either. [13:53] its not canonicals [13:53] though we are paying the maintainers these days [13:53] One of Bazaar's hallmark's is the support of multiple workflows. [13:53] But it's PQM that causes the perceived single-commitor problem with the bzr source [13:53] This is lovely. [13:53] But when I keep hearing that "really, to make it work you need to use PQM" I go from being quite bullish about Bazaar to being slightly off put. [13:54] and yes, there is no need to adopt it, it only fits some quite specific needs (primarily - run 10's of minutes long tests during merge commits( [13:54] pickscrape: no, it's any project where the mainline is maintained by a gatekeeper. [13:54] AfC: tell me who says that and I'll biatch-slap them the next time I meet them [13:54] You know, say, the linux kernel, or any other such star model. [13:55] AfC: can they not use --author? [13:55] lifeless: :) [13:55] pickscrape: If I am merging a branch with revisions from 2-10 unique individuals, who is the --author? [13:55] (even assuming `bzr log --line` were to start reporting such data) [13:56] YES, I realize that what I need to do is write a custom logger, but the reason I am fighting this so steadily is that I believe the left hand bias in Bazaar is wrong and does a disservice to the authors of all the subordinate revisions. [13:56] Well, the merger is the author of changes made during the merge that didn't come from the merged revisions. How else to do it though, short of having multiple 'author' values for each commit? [13:57] pickscrape: what you said earlier: don't only output left hand edge revisions. Output all revisions and a single summary line. After all, `bzr vis` can handle it, why can't `bzr log`? [13:58] It does doesn't it? [13:58] night guys [13:58] Answer, because of the bias embedded in the command that only left hand revisions are significant. I understand the original argument in favour of this. I just think it is wrong [13:58] So you want something like --short which outputs the same revisions as --long? [13:59] pickscrape: --short only does left hand edge as well. I want something like `bzr log` that presents single lines. [13:59] Yeah, what I said :) [13:59] pickscrape: in order to a) see all the history and b) have credit clearly attributed to the people that did the work [13:59] Doesn't sound too difficult [13:59] * gour shares AfC's sentiments [14:00] What would you call it though? [14:00] 'brief'? [14:00] Alas, I am not a bzr hacker, and in any case would never get such a patch past the bias I have described. Because until the core hackers agree that the current behaviour is doing a disservice to people, they won't change it / accept a change to it. [14:00]  {shrug} it's their code [14:00] pickscrape: --line !!!!!! [14:00] meh [14:00] --line already exists [14:01] we have a long history of changing our opinion on new information [14:01] Would you want the right hand revisions to be indented, or the whole thing flat? [14:01] lifeless: Indeed. That's why I am attempting to present a case that this should change [14:01] the most *effective* way to do this is to write a plugin that does the thing you want, and when folk use it on mass because its so much better, well -> it gets into mainline [14:01] lifeless: but fully accepting that it won't change unless you want it to [14:02] AfC: I don't think its better, I think it is likely to have nearly all the negative connotations of git's log; but I may not be understanding what you want - so why not actually just do it? [14:03] oops :P [14:03] mind you, 11pm at night [14:04] :) [14:52] morning folks === mw|out is now known as mw [15:15] morning sabdfl [15:16] morning emgent [15:16] i have an issue with bzr check on a large tree [15:16] it makes it through the first part fine [15:16] then gets stuck [15:16] checking versionedfile 0/8616 [15:16] any suggestions? [15:33] lifeless, AfC: 'bzr log' *does* honor --author === kiko-afk is now known as kiko [15:38] sabdfl: if you do ^| (ctrl+shift+\) it should break you into a debugger, and you could try to look at what it is currently doing [15:38] use 'bt' to get a backtrace [15:38] 'c' to continue [15:38] you could paste the backtrace [15:39] sabdfl: is the "throbber" ticking, or nothing at all? [15:39] you could also try "strace -P PID" etc to see if there is actually stuff happening. [15:48] (-p PID) [15:51] is there a way to apply git/mercurial like patches (with commit log and author information)? === abadger19991 is now known as abadger1999 [16:52] could bzr be slightly modified so when you do a status, it tells you that it's not playing with a subdir because it's a branch of its own? atm they just show up in "unknown" [17:16] Ng: If you use status --short, it's show up specially. [17:17] abentley: kinda seems the same as properly unknown stuff - a ? [17:17] It doesn't append + to the filename? [17:18] Strange. I thought it used to. [17:20] not afaics [17:24] abentley: I believe you have to be in subtree format, otherwise we don't *detect* that directories are subtrees [18:44] If I have a change I want to contribute to bzr-gtk via the new review feature, do I need to register a branch against bzr-gtk and push to it, or is there some other way? [18:44] pickscrape, same as with bzr, there is a bzr-gtk mailing list where you send merge-directives [18:45] oic [18:45] (bundles, patches, not sure what the term is currently) [18:47] Will it matter if I'm not subscribed to that mailing list? [18:48] well, you could subscribe and set it so you don't get emails [18:48] didn't know you could do that :) [18:48] yeap yeap, mailman setting [18:49] Hmm, apparently "lists.canonical.com uses an invalid security certificate" [18:58] pickscrape: I believe it is signed with lists.ubuntu.com or something like that [19:03] eek! the bzr-gtk code is riddled with trailing whitespace... :) [19:05] * gour wonders what editor did it [19:06] Shelve to the rescue [19:11] hmmm why do I get this: "bzr: ERROR: Transport operation not possible: http does not support mkdir()" it happens when I want to push to an empty branch on launchpad.... [19:12] ekimus, you should set: bzr launchpad-login username [19:13] then, you will have to use --use-existing-dir with push [19:13] *lol* happens when you start working on a new host :) [19:13] and you're on you way [19:13] *your [19:13] beuno: thanks for your help on sending to bzr-gtk [19:14] (the --use-existing-dir switch is just for this time, since the http failure creates the branch dir) [19:14] pickscrape, my pleasure :) [19:18] ekimus: you need to 'bzr launchpad-login" [19:18] beuno: why do you have to "--use-existing-dir" ? [19:19] I've had to do that too. [19:19] jam, for some reason, LP creates the dir when you try http [19:20] I think I go through this half a dozen times a day (the lp-login bit), so I really hope 1.5/1.6 can get upgraded into hardy 8.04.1/2 [19:21] (1.4 or 1.5 LP plugin does a better job at explaining how to solve it) [19:21] beuno: except it doesn't tell you to use '--use-existing-dir' :) [19:22] jam, heh, right [19:22] but I think the bzr error doe [19:22] *does [19:22] so most users may figure out that last bit by their own [19:22] or that may wishful thinking :) [19:23] Yes, I figured it out. I thought it was a bit weird though, and hoped that I wasn't breaking anything... :) [19:23] beuno: so i just upgraded my public repo to packs, and now Launchpad has decided it wants all of my bandwidth [19:23] I'm glad I don't have a strict upload cap [19:23] though who knows, maybe I do and just never hit it :) [19:24] I have 169 branches owned by me registered in launchpad. I have a feeling at least 150 of those are mirrored [19:24] and all of it will take ~50-70 MB to transfer [19:24] oh, that's quite a lot [19:25] you're canonical, can't you just ssh and upgrade? :p [19:25] beuno: mirrored branches aren't hosted on the ssh side [19:25] and I don't think they give direct access to that stuff anyway [19:26] and you're upgrading the mirrored branches? [19:26] hi! i tried upgrading a large shared repository to rich-root-packs, and I got a KnitCorrupt error. i thought i'd check in here before doing anything with it [19:26] I'm upgrading my public repo, which chains down to everything LP is mirroring for me [19:26] statik: something about missing a revision? [19:26] or something else [19:26] jam, ah, good thing it's friday. "leave it, check back monday" :) [19:26] jam: sha-1 of reconstructed text does not match expected, for a version that looks like it was Arch [19:27] (this is a my launchpad shared repo) [19:27] statik: you might be hitting what mpt ran into a while ago, does this happen to be something you got from devpad/rocketfuel? [19:27] jam: yes indeed [19:27] statik: abentley was helping mpt with that yesterday [19:27] best to find out their solution [19:28] I believe there is something weird in one of the inventory texts [19:28] (oh, and spiv helped before that) [19:28] jam: cool, thanks for the tip [19:28] statik: why 'rich-root-pack' rather than '--pack-0.92' ? [19:28] out of curiousity [19:29] statik: We went back to a known-good revision and recommitted the changes as one big commit. [19:29] abentley: oic [19:29] btw, is there a blueprint or something where I can follow the status of Stacked Branches? [19:29] statik: However, you may not have the same issue he had. [19:29] i'm just doing an upgrade, this looks like a very old revision [19:29] I'll pastebin the traceback [19:30] hmm... it seems like it is going to take 15GB of transfer before Launchpad is going to be happy with my mirrored branches. [19:30] Or 5 days of solid transfer at my 30kB/s upload cap [19:30] I think I need to find a different solution [19:30] static: Yes, so you've probably got an instance of 234748 [19:31] statik: ^^^ [19:31] statik: Bug 234748 causes false reports of corruption. [19:31] Launchpad bug 234748 in bzr "Knit inventory corrupt in bzr.dev with bzr.dev r3452 (KnitCorrupt)" [High,Fix released] https://launchpad.net/bugs/234748 [19:32] bzr.dev has a fix. bzr 1.2 was unaffected. [19:32] abentley: I was hoping this was the same issue that had already been solved, great! is it appropriate to update my bzr.dev checkout and run upgrade again? [19:32] I'm running bzr.dev now, but about 14 revisions old [19:32] jam, how do you know that in advance? [19:33] beuno: 150 branches, approximately 90 MB each [19:33] I imagine the older ones will be smaller [19:33] statik: I would update your bzr.dev and run check first. [19:33] but the total size of packs + indices is 97MB for that repo. [19:33] abentley: excellent, i'll do that. thanks for the help! [19:33] statik: np [19:34] Anyone here know how to use "tc" well? [19:34] I'd rather have 10 days of 50% capacity than 5 days of 100% [19:34] jam, if you have another server to ssh to, it may make sense to do it from there [19:35] beuno: do what from there? Remember this is Launchpad *pulling* my branches, not me pushing [19:35] And you can't pre-push to the same location [19:35] because mirrored branches don't share disk space with hosted branches [19:35] I would complain in bzrlp, but they are all gone for the weekend. :) [19:36] jam, ah, right. You'd have to move what you have to the server, which defeats the point [19:36] abentley: I was running upgraded for a shared repo, but it looks like check needs to run in a branch. does it matter which branch I run check in? [19:37] statik: Just make sure it's a branch of whatever triggered the error. [19:38] abentley: ok. wow, check gives me File "/home/emurphy/src/bzr.dev/bzrlib/repository.py", line 1570, in iter_reverse_revision_history [19:38] parents = graph.get_parent_map([next_id])[next_id] [19:38] KeyError: 'launchpad@pqm.canonical.com-20080606133605-f13slt1fhp14unnw' [19:40] statik: That's not necessarily a bad thing, but I need to finish up what I'm doing. Can I get back to you? [19:40] abentley: sure thing. thanks for your assistance on this. [19:52] statik: that looks like you have a ghost in your mainline [19:52] jam: it's over my head, this is the same launchpad repo I've been using on this box for over a year [19:53] statik: give me a sec, but I'm betting you haven't done "bzr log --long --no-aliases" on it [19:53] jam: should I be moving my .bzr.backup directory back? [19:53] statik: Isn't it called "backup.bzr" ? [19:53] heck no I don't run log on big repositories, it takes too long :) [19:53] Or is this older than that [19:53] statik: if this is the converted repo, it is likely to be broken, with stuff missing, yes [19:53] jam: my mistake, I have two of them, looks like I forgot to delete the backup when I upgraded to packs a while back [19:54] if the 'upgrade' did not complete [19:54] jam: no, this is the source tree for launchpad itself [19:54] not the conversion [19:54] statik: it is the one you tried to 'upgrade --rich-root-pack' and it failed mid-way, right? [19:54] jam: right [19:55] so that is probably broken, I would copy bzr.backup back into place, and then run bzr check to make sure everything is working [19:55] ok, trying that now [19:55] keep copies of stuff when possible [19:55] definitely [19:55] What are ghosts anyway? I keep hearing about them, but don't know what they are. [19:56] statik: I do have a script here: http://launchpadlibrarian.net/15061264/copy_all_revisions.py [19:56] In case we need to fill in any gaps [19:56] pickscrape: revisions which are referenced, but not present [19:56] so a node can say "I have parents XXX and YYY" but the repository may not contain "YYY" [19:56] cool, check is getting a lot farther than before [19:56] oic [19:57] So basically a repo can't by definition 'contain' a ghost [19:57] statik: hey, how are you finding BazaarX [19:58] Pilky: it looked nice when i ran it yesterday, but I didn't manage to get it to do anything yet (only played for 5 minutes) [19:59] cool, well let me know if you have any suggestions or anything :) [20:00] Pilky: I'm pulling the latest now and trying to run it again while I wait for my 38K revisions to finish checking :) [20:00] pickscrape: if you want to look at it that way, it "has" a "ghost" because it doesn't "have" the revision. [20:00] heh [20:01] pilky, i'm a bit confused about what to do at first. I see the + button, but not sure what the dialog means [20:01] is this asking me to tell it about a branch that I already have? [20:02] well, if a branch already exists it just adds it, otherwise it will create a new one in the selected directory [20:02] same if you choose repository [20:02] when creating a branch you select which repository you want it to appear in, or if you just want it to be a standalone branch [20:02] Pilky: cool, that makes sense. When I type a name, select branch, and point it to my standalone branch of bazaarx, the add button doesn't do anything [20:03] do I put a human readable name in the Name field, or a path? [20:03] jam: in the same way that something can have a hole in it :) [20:03] human readable name in the name field [20:03] pickscrape: pretty much [20:04] Pilky: not sure then, clicking the add button doesn't do anything for me :( I'm running this via the "Build and Go" button in XCode, is there a way I can dig out some more info so you can tell what is happening? [20:05] aha, just had an idea... where is bzr stored on your machine, /usr/bin or /usr/local/bin ? [20:06] atm BazaarX is hard coded to look in /usr/local/bin [20:06] oh, that might be the thing. I normally run bzr.dev linked into ~/bin [20:06] I can add a symlink, no problem [20:06] there'll be an option in the preferences of 0.1 to change that [20:06] cool [20:07] jam, statik: I've read your blog post which points to https://edge.launchpad.net/bzr/+milestone/1.6 , but I don't see anything about stacked branches there. I'm wondering what the status is and if it's going to be in 1.6 [20:08] radix: we are reviewing the code changes right now, and will probably slip the final 1.6 release to make sure stacked branches are merged [20:08] stacked branches are the future! the future is now! [20:08] that's good to hear :) [20:08] I'm *really* excited about it [20:08] It means I'll be able to use Launchpad for my larger projects, finally [20:09] radix: i have been doing my best to destroy launchpad with large branches and failing. I've uploaded over 30GB of branches in the last weeks [20:09] please join me [20:09] statik: awesome! [20:09] statik: btw, you may occasionally notice the odd beachball when running things, at the moment we're designing it on the assumption that bzr will get faster so it's all done in the main thread atm [20:10] awww, cmon. the world is parallel, multicore, etc. [20:10] Pilky: seriously though, I do work on branches that are hundreds of megs, with many thousands of revisions, it's very likely that some operations will take longer than you want to block the main thread [20:11] true [20:11] Pilky: so now that I've told BazaarX about a standalone branch, what can I do with it? [20:11] I still only see the big merge icon in the middle [20:11] well, if you click on it, it will do a status on it [20:12] blue is modified, green is added, grey is unknown, red is removed [20:12] you can then commit/add by clicking on the toolbar items (no icons yet but they should be top left) [20:13] huh, I'm not seeing anything happen when I click on it [20:13] hmm.. [20:14] is anything coming up in your run log in Xcode? [20:14] I've restarted the whole app now that I added the symlink, added a second reference to my bazaarx branch, but still don't see anything [20:14] ah, the run log. I was trying to find something like this earlier [20:15] yes, Range or index out of bounds on NSCFSTring substringToIndex [20:15] hmm [20:16] I'm not that familiar with XCode, so no idea how to get a stack trace for that, but I'm willing to try if you can explain how to do it [20:18] hmm, well you could put a breakpoint on substringToIndex but that would stop for every substringToIndex, not just the ones in my code [20:18] I've got an idea what it could be though [20:20] have you got any blank lines in your global ignore file? [20:20] I'm forgetting a bit of error checking [20:21] Pilky: no, it looks like it's totally standard, 8 lines of patterns [20:21] hmm [20:21] is it possible to just remove a specific revision after other commits have been made? [20:22] tethridge: you have to uncommit all the way back [20:22] damn [20:22] or branch from that revision [20:22] I was hoping for some kind of undocumented bzr uncommit -r 3 [20:22] and commit everything else [20:23] (probably faster if it's a lotof commits) [20:23] tethridge: I think that would leave a hole in the history or something like that [20:24] I'm contributing to a project and I had submitted a patch, then started working on something else. [20:24] then they wanted me to revise the patch [20:24] tethridge: you should check out looms! they are perfect for that use case [20:25] but to do so I'd have to branch at the revision I made the patch and then reapply the changes I made for the patch after I had done the other work. [20:25] looms? [20:25] link? [20:25] https://launchpad.net/bzr-loom [20:25] you can keep each patch that you submit in a separate "thread" [20:25] thekorn, or, feature branches. Branch everytime you're going to work on something different (I still haven't jumped on the looms wagon) [20:25] when the code reviewers ask for a revision to the patch, you can drop back down to that thread and revise only your patch [20:26] statik, looms sounds like the answer [20:26] branching for each feature seems like a lot of waste if the project is large [20:26] I assume that it makes a complete copy [20:27] tethridge, not if you're using a shared repo (which you should for this workflow) [20:27] but, looms is *the* way to go [20:27] tethridge: no, branches are super lightweight if you use a shared repo, and you can even switch a single working tree between branches easily, it's just that looms make this specific use case a bit easier to manage than doing it with branches [20:31] statik: just committed some changes to LP with better error checking, try getting the latest revision and seeing if that fixes your problem [20:31] Pilky: glad to [20:32] I really need to get into the habit of checking the length of a string before trying to get a substring of it, it seems to be my most common runtime error [20:33] Pilky: I see files! this is great [20:33] heh, cool [20:33] statik: jam got you sorted? [20:33] abentley: yessir, looks like i was running check on the busted repo when i needed to have moved back the backup and started over [20:33] thanks [20:34] np [20:34] statik: can you help me out with some testing? [20:34] I'm trying to set up rate limiting [20:34] and want to make sure it is working [20:35] any of you guys work for canonical? [20:36] I have a quick off topic question if you do [20:37] tethridge: I do, as does statik and abentley, but I don't know if they're talkative [20:37] jam: on the phone, but happy to help testing something [20:37] I've tried my question on launchpad answers, but it went unanswered [20:37] I was just wondering if there had been any talk of providing landslide for a limited number of machines? [20:38] I was thinking that it could be used by developers [20:38] what is landslide? [20:38] landscape? [20:38] tethridge: I think he means landscape [20:38] radix would be the person to ask [20:38] it would provide more users to help find issues without affecting the amount of paying users [20:38] hello [20:38] yes landscape [20:38] I was just curious [20:40] * radix --> privmsg [20:46] btw jam, thanks for posting about fast-forward on your blog, that was useful to me === mw is now known as mw|food [21:49] I've seen that there is a plugin that allows a user to have a bzr branch of a subversion repository. The user uses bzr and the bzr plugin sends commands to subversion so that the user doesn't need to interact with subversion. Is there a plugin similar to this for clear case? [22:13] so I'm guessing that there isn't a bzr-clearcase plugin that I haven't heard of [22:14] hi [22:15] I have heard rumours of folk doing a plugin inside companies using clearcase; I have not seen any code or heard of them making the plugin available :( === mw|food is now known as mw [22:16] we use a bastardized version of clearcase that really sucks [22:16] it makes it such that viewing the history of a file is next to impossible because of the way they are constantly merging [22:16] so basically I'm working without a history [22:17] technically it exists, but it takes forever to find the actual changes to a specific file [22:32] What does this mean? TooManyConcurrentRequests: The medium '' has reached its concurrent request limit. Be sure to finish_writing and finish_reading on the currently open request. [22:33] bpeterson, many things. I believe that masks other potential problems. Can you try pushing/pulling again? [22:43] bpeterson: it basically indicates an exception on the server which the client hasn't properly accomodated [22:43] bpeterson: I believe the new client and server protocol in 1.6 will help this immensely [22:43] bpeterson: if you check ~/.bzr.log on the server there is probably an exception logged [22:44] Here's my problem: I've been working out of my own bzr repository for a few days, and I want to push it up to an SVN server so other people can use it. Is there some way I can push the history from my repository into the SVN repository? [22:45] if you made your branch with 'bzr branch svn-url' then doing 'bzr push' should work [22:46] The work I stared was pulled from another SVN repository (which I don't have +w to). [22:46] So that won't help me here. [22:46] I've checked out the new repository with `bzr co http://...`, but I don't know how to copy from one to the other (or even if that's the right thing to do) [22:46] why not just publish the bzr branch? the SVN users from the first repo aren't going to get much benefit with respect to merging and stuff, if you create a completely separate SVN repository [22:48] radix: It would be lovely if I could, but "everyone else" (for some value of "everyone else") uses SVN [22:48] That, and I don't have access to the server (apart from `ssh://...` access) [22:48] are you trying to fork the project, or somehow allow the original developers to get access to your branch and be able to merge it? [22:49] if the latter, the best format for them will probably be a patch [22:49] I've forked a project, and now I want to give the people I'm working with access to what I'm doing [22:49] ok [22:50] I'm not sure if it's possible, but I guess you could create a new SVN repository ("svnadmin create" IIRC) and try pushing your branch to it [22:50] A patch won't work because the changes are significant and I'm not sure if the original project is still being developed. [22:50] wolever, radix: Is it possible to 'svndump' a repo you don't have +w to? [22:50] It's an "svnadmin" subcommand, which gives me the impression it requires local access [22:50] radix: that was my guess [22:51] and a general problem with a SVN repo [22:51] if they aren't using it, nobody gets to [22:51] jam: I believe so... At least, I've used svnsync to do it [22:51] ah, well [22:51] wolever: right, you could svnsync their repo [22:51] but I don't know how they would get your changes back [22:51] ah, ok [22:51] you could sync, 'bzr svn-push' into your mirror [22:51] but then you have an SVN repo they can't *really* use [22:51] Ok, lemme try with svn-push [22:52] The problem with merging is that it complains that the two repos don't share a common base, and when I give it one, I get nothing but conflicts: [22:53] bzr co file:///svn/repo foo; cd foo; bzr merge -r 1..$HEAD /bzr/repo/ [22:54] bzr: ERROR: These branches have diverged. Use the merge command to reconcile them. [22:54] Err, and a `$ bzr svn-push file:///tmp/svn/` came before that [22:58] wolever: indeed, they are separate repositories; svn repos have a UUID in them [22:58] Well, yes... It would make me very happy if there was something I could do about that, though [22:58] given that you have forked, why not encourage the folk you are working with you use bzr? might give a better all-around result. You don't need any server access to publish your branch [22:59] s/server a/special server a/ [22:59] lifeless: As I mentioned, I'd love it if I could do that, but as I'm sure you know, getting people to switch RCSs isn't that easy [23:00] What with everyone knowing how to use SVN, SVN's integration with $IDE... etc, etc [23:03] true true [23:11] buno, lifeless: I get the SSH error when I'm pushing to code.python.org. It hangs, so I use ^C and get this exception. [23:13] bpeterson: can you ssh into code.python.org and look in your ~/.bzr.log please [23:18] I will have to email the administrator [23:19] oh [23:19] you don't have ssh access? [23:19] I'm too new to be trusted. :) [23:20] ! [23:20] ok [23:20] what are the last few lines before the exception in your local ~/.bzr.log [23:20] You know Barry Warsaw? [23:20] yes indeed [23:23] where's the log again? [23:23] ~/.bzr.log [23:23] or run bzr --version and it will tell you [23:23] ah [23:27] http://bzr.pastebin.org/41171 [23:29] ok [23:29] its failing attempting to unlock() the remote repository [23:30] which means it failed earlier and this is masking the real error [23:30] I will wager, oh, a chocolate bar, that this is a permission error on the remote server [23:31] It works ~1/3 of the time [23:31] oh [23:31] probably not that then [23:31] lets find the real error [23:31] that's why I recommended trying again [23:31] we get that sometimes at the office [23:31] :) [23:32] haven't been able to track it down yet [23:32] I've been doing this for about the past week, so you can be sure I've tried again and again. [23:32] if you look at the bzrlib.branch module [23:32] the line 1625 should be in a finally block [23:33] disable that line - put a # and a pass line after it [23:34] this will mean we need to break-lock after a successful push but should let us see the real error [23:35] Barry sent me the log: http://www.python.org/ftp/python/bzr.log [23:37] I think we need to make the client code change I proposed [23:38] there is too much noise from the protocol down-grade errors [23:38] Ok, I'll try that [23:43] do you know a good python text indexer [23:43] pylucence looks painful to ask people to build [23:48] the annoying thing is I don't get errors now [23:50] at all ? [23:50] on repeated pushes even ? [23:50] no, it happily says "pushed revision 39547" [23:51] I'm doing another push now [23:51] lifeless, my personal guess with these errors is Memory ones [23:52] the branches I've got them in, now that I've got my main server on bzr.dev, I get Memory errors sometimes [23:53] but people at work don't even tell me anymore when it happens, they just push/pull again [23:53] so I haven't been able to pin-point it [23:54] is it possible the server doesn't have enough memory at the moment, and it gets masked by the smart server? [23:55] (would explain the randomness of it) [23:57] would that show up in the server log? [23:57] I don't know enough about the smart server to know if it would :/ [23:59] * bpeterson has another successful push