[00:00] beuno: bzr-search_integration + bzr.dev are working. :) [00:00] Peng, yay! [00:01] now, really off to bed [00:01] g'night [00:01] beuno: (Well, trunk + bzr-search_integration + my serve-branches.py changes.) [00:01] beuno: G'night. :) [00:02] [cliff]: you can merge it with "bzr merge /path/to/bundle", is that what you did? [00:02] Peng: hmm, are there any suggestions for good ways to keep branches out of the way? [00:02] <[cliff]> james_w, not an absolute path, no. let me try that [00:02] bzr tends to make me not want to branch much [00:02] [cliff]: relative will work as well. [00:03] <[cliff]> james_w, right... same result [00:03] LaserJock: No, I'm just crushed under a pile of separate branches. Sorry. [00:03] * Peng wanders off. [00:03] <[cliff]> the NotBranchError doesn't appear to be used a lot. I was trying to figure out if there is a way of tracing it [00:04] [cliff]: see "bzr help debug-flags" for one thing that can help. There's also plenty of information in ~/.bzr.log [00:04] LaserJock: you can simulate it with one checkout and switch [00:04] LaserJock: there is loom, which is like quilt [00:04] <[cliff]> james_w, says no help could be found for debug-flags... maybe I'm missing a package [00:05] james_w: hmm, I'll have a look at those [00:05] LaserJock: and it's possible that a plugin for multiple branches in a dir will turn up next week [00:05] I just feel like I'm losing the power of a DVCS if I'm not doing any branching [00:05] [cliff]: sounds like you have an old bzr, which would explain the error. What version are you using? [00:05] <[cliff]> but .bzr.log does the trick! nice one. checking it out [00:06] <[cliff]> james_w, 1.3.1, ubuntu's standard I think [00:06] [cliff]: I'd check with --version [00:06] <[cliff]> james_w, right, 1.3.1 [00:07] [cliff]: ah, sorry, "bzr help global-options" has a debugging flags section. [00:07] <[cliff]> just out of curiosity, how do you manage to output those nice traces? [00:07] the traceback module [00:07] <[cliff]> nice one, cheers [00:08] <[cliff]> it appears the error is raised on "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1426, in find_format [00:08] traceback.format_exc() will print the last one, there are other functions for being more specific [00:09] [cliff]: can you pastebin the relevant stanza from ~/.bzr.log please, I'll see if I can spot anything [00:09] <[cliff]> certainly [00:10] <[cliff]> james_w, http://pastebin.com/d65b306ce [00:10] ah, I meant the whole section, but the traceback is a start, let me look [00:12] hmm, it does know that it is a bundle apparently [00:13] <[cliff]> I've updated the pastebin [00:16] [cliff]: ah, got it I think, can you read the top of the bundle and see what submit_branch is? [00:16] <[cliff]> none, I only have a target_branch [00:17] is that a URL? [00:17] <[cliff]> nope, a relative path [00:17] <[cliff]> that doesn't exist on my filesystem [00:17] ah yeah, target branch [00:17] <[cliff]> don't know if it's relevant but I managed to successfully merge another bundle on a different branch [00:17] I was reading it wrong [00:18] yeah, the bundle has been created wrong [00:18] if you could ask the person that sent it to tell you how they created it it would be useful [00:18] this should probably be caught [00:19] <[cliff]> how should we do it? I'm going to smack the other guy on the head hehe [00:19] <[cliff]> I can ask him, but not now, he's off for the weekend [00:19] so, a merge directive has a submit branch, which is the branch that you intend it to be merged in to. [00:19] <[cliff]> I'll try to reach him still [00:20] ah, I see something else as well [00:21] you can specify this as the first argument to "bzr send" [00:21] <[cliff]> james_w, hmmmm although I understand (or at least I think so :-) ) how come the target_branch can't be ignored when merging the bundle to the current workbranch? [00:21] if you don't then it uses the branch's parent [00:22] <[cliff]> so for example the submit branch should be . [00:22] <[cliff]> ? [00:22] it stores the branch location in the merge directive as you saw, but if the target branch has a "public_url" set then that will stored instead. [00:23] running "bzr send" creates a bundle (the base64 encoded bit at the bottom) that has all of the revisions that are in your current branch, and not in the submit branch. [00:23] so "." is pretty much always wrong, as this will be the empty set, which isn't what you wnat [00:24] he should have a mirror of your branch (or just use the location of it if it is public) and point to that [00:24] now, I see this in the code: [00:24] except errors.RevisionNotPresent: [00:24] # At least one dependency isn't present. Try installing [00:24] # missing revisions from the submit branch [00:24] submit_branch = _mod_branch.Branch.open(self.target_branch) [00:25] which is where it fails [00:25] <[cliff]> I see. let me shed some light on this matter. the way we're working is like this: a master-branch is stored on a server and all devs have a local branch off it. when someone wants to work on something, they branch their copy of the master-branch into a new branch [00:25] <[cliff]> so the way the dev created the bundle was by bundling the differences between his work branch and his local copy of the master-branch [00:25] <[cliff]> so the target_branch reflects his own fs directory layout [00:26] yep, that should work correctly. [00:26] you should set "public_url" on the local copy to be the url of the master branch. [00:26] is your copy of the branch out of date compared to master? [00:26] <[cliff]> hehe which one? :-) the local or the remote? [00:26] <[cliff]> yup [00:27] ok, so what should happen here is that it would fetch these missing revisions from the master branch, but as the location of that was set to a local path in the merge directive it cant get to it [00:28] <[cliff]> hhhhmmmmmm [00:29] I'm working up an example [00:29] <[cliff]> got the guy out of the bed :-) I've asked his revno of the master [00:30] heh [00:30] unfortunately I can't find documentation on public_url [00:31] so, if you have http://server/master [00:31] and a local ~/dev/master [00:31] and your feature branch to submit ~/dev/feature [00:31] <[cliff]> james_w, that's it. my master is at a different revno of this master [00:31] <[cliff]> james_w, that's it. my master is at a different revno of his master [00:32] and you set "public_url = http://server/master" in ~/.bazaar/locations.conf for ~/dev/master [00:33] then "bzr send ~/dev/master" should do the right thing from ~/dev/feature [00:33] and if the parent of the feature branch is master then "bzr send" should work [00:34] [cliff]: does that match your set up? [00:34] <[cliff]> we don't set the public_url actually [00:34] yeah, that's why I think this fell over. [00:35] I'm going to see if I can write a test for this so that we can provide a better error [00:37] <[cliff]> hmmmm maybe insert a note in the documentation, that should be sufficient (and easier to do I think) [00:37] <[cliff]> I reckon the bundle parts of the documentation could use some love [00:38] yeah, it does seem to confuse people sometimes. [00:38] it works really well when it works [00:38] We can spot this problem quite easily I think, so providing an informative error would be good, even with improved documentation [00:39] <[cliff]> true [00:39] I think I see a similar problem just below as well, so we can catch that as well. [00:41] <[cliff]> he sent me a proper bundle now (branched off the same revno I have and created the bundle based on that). I'm checking out, it's close to 1am :-) thanks a lot for your help james_w [01:03] jelmer: you about? i'm hitting weird errors with bzr-svn [01:08] jelmer: http://pastebin.com/d1e4f1b42 [01:08] happy to help any way I can w/ debugging. [01:16] chandlerc[g]: https://bugs.edge.launchpad.net/bzr/+bug/246635 [01:16] Launchpad bug 246635 in bzr "svn+ syntax may be deprecated but it is still essential" [Undecided,New] [01:17] james_w: yep, that explains the first one. thanks, i'll add myself to the CC of that one [01:19] still no clue about the second one... [01:19] its just a segfault, w/o any traceback or anything [01:19] maybe i'll try and to a gdb on it [01:24] jelmer: I did some gdb poking: http://pastebin.com/d6e9e66cf I'll rebuild ra.so with debugging symbols tonight, and let you know what I find. === Pieter is now known as Pieter|Paris [06:59] jelmer: Bug 247787 [06:59] Launchpad bug 247787 in bzr-svn "assert len(tview) == tview_len" [Undecided,New] https://launchpad.net/bugs/247787 [10:32] * ToyKeeper hopes his vis changes get approved and merged [10:40] ToyKeeper, approved :) [10:40] now you just need jelmer to pitch in [10:41] I'm just sending a summary + merge directive, to make things clearer. [10:42] I'm not too familiar with bundle buggy. Does it take the first merge directive in a thread, or the last? [10:42] ToyKeeper, always the latest one [10:43] each time you send a new one, it overrides the previous one [10:43] Okay, good. [10:43] ToyKeeper, http://bundlebuggy.vernstok.nl/bzr-gtk/request/%3C20080712094212.GA15283@mutt.xyzz.org%3E [10:44] I had the wrong public branch the first time too, thinking it was supposed to be my public branch, not trunk. [10:44] Jasper's message in the olive bookmarks thread cleared that up for me. [10:45] ToyKeeper, patch looks great, really, thanks for working on it [10:46] ah, we have 2 bundlebuggys now [10:46] jelmer, which are we using? [10:53] I feel dirty about building labels in an unrolled loop, but didn't see an obviously better approach. [10:54] Anyway, vis, gci, and mdiff (diff with meld) are the only GUI bits I really use. [10:54] Hmm, maybe gblame, once in a while. [10:56] * beuno is trying to pack before check-out time [10:58] where can I find the bzr python api? [10:58] i've been looking for it for a while and I can't find it [11:00] apol, you mean, documentation for it? [11:00] http://starship.python.net/crew/mwh/bzrlibapi/ [11:00] beuno: yes, yesterday i found a page that showed how to add files, remove files and so using python [11:01] apol, http://doc.bazaar-vcs.org/latest/developers/integration.html [11:01] (i'm a the kdev+bzr test thingie) [11:01] yes that's what I meant [11:01] thanks a lot [11:01] apol, ah, Aleix, yes, hi! [11:02] ;) [11:02] how's that going? [11:02] I should be able to have something working today [11:02] oh, yay! [11:02] please send to the list [11:02] everybody loves screenshots [11:02] still working on the multilanguage plugin integration though [11:03] beuno: I'll consider that ;) [11:05] apol, and, also, bzr-gtk may be a good place to find out how to get some things from bzr [11:06] beuno: nice, I'll get it then... [11:08] alright, I'm off to a 16 hour flight [11:09] apol, I look forward to your screenshots ;) [11:34] hello [11:35] how can i have bzr run pylint on files and aborting the commit if the score is too low? [11:36] Pre-commit hook? [11:36] awilkins: this is interesting [11:36] is there anything ready-made? [11:40] I don't know. You know, the docs don't even make it clear if hooks can abort steps. [11:40] But you can probably get them to stop by throwing an error... [11:41] yeah, pre-commit can abort the commit I believe [11:43] ah, good, thanks [11:48] https://bugs.edge.launchpad.net/bzr/+bug/247847 [11:48] Launchpad bug 247847 in bzr "hooks documentation doesn't clearly state which hooks can modify or abort the operation" [Undecided,New] [11:48] just filed that for you [13:17] james_w: read more closely please; you're describing bugs incorrectly [13:18] sorry, which ones? [13:18] 244310 was wrong [13:18] I'm checking the other recent updates now [13:19] separately, I'm not sure the platform is relevant for many of the bugs [13:19] oh yeah, I don't know why I put that [13:19] no prob [13:20] I'm not sure it is for all of them either [13:20] I just got fed up of hunting through each time to dupe them. [13:21] I can pull it out of the ones that probably aren't if you like [13:21] well [13:21] not really worth the time I guess [13:21] just note it for future :) [13:22] sure [13:22] p.s. I have an archive import running at the moment, about 14 hours on main and it's up to kdebase [13:22] debian+ubuntu [13:23] cool [13:23] we'll want that to play with Monday :) [13:24] yep, Colin asked me to make sure we had some branches for others to play with next week. There's a bunch of failures, but I think two things account for 90% of them. [13:24] are you still in Istanbul? [13:24] yup [13:25] till sunday 4pm [13:25] (as in 4pm I hit london) [13:25] how was GUADEC? [13:25] pretty good [13:25] have you seen the playground? [13:25] bzr-playground.gnome.org [13:25] no, I haven't looked yet [13:25] uhm battery; bbiab [13:49] back [13:52] hi markh, how went the sprint ? [13:52] lifeless: not too bad - I'm still here - but I'm all alone in the bzr world [13:52] :) [13:52] james_w: do look at the playground [13:52] a couple of people have promised to send a couple of patches - hopefully they will turn into contributors [13:53] awesome [13:53] how is the middle-east (whereever it is you are!)? [13:53] successful? [13:53] istanbul :) [13:53] pretty intense [13:53] lots of passionate users of both bzr and git [13:53] with the gnome guys, right? [13:53] yes [13:54] lifeless: it doesn't seem to work too well for me. I just get the project lists, but they don't seem to go anywhere for the people ones, and the trunk ones give a proxy error [13:54] you winning their hearts and minds? ;) [13:54] james_w: the people ones have not created branches of their own yet [13:54] james_w: the proxy error - needs looking at; its LH again:(. but just refresh and it should come good [14:02] stooopid wireless networks... [14:02] :) === mark1 is now known as markh [14:22] Woo, lots of bzr-svn branches [15:42] why doesnt WorkingTree.has_filename() work? it is always returning True to me... :S [15:42] apol: really? [15:43] lifeless: yes, it is the first time i use it so maybe I'm doing something wrong... :S [15:43] apol: it only tells you if the _path is versioned_, not if its on disk [15:43] apol: er, hang on - was looking at wrong code [15:43] apol: it does a lexists [15:44] i just want to know if a path is on a working tree [15:44] apol: in what manner, do you mean 'is versioned', or 'is present on disk', or 'is versioned and present on disk' [15:45] lifeless: is versioned [15:45] lifeless: i'm working on the kdev4 support [15:45] apol: for that, use path2id [15:45] lifeless: i just want to know if the user still has to add it or he can work with it (eg check the log or commit) [15:46] apol: tree.path2id('README.txt') != None [15:46] cool [15:46] let me check [15:47] thanks a lot lifeless [15:49] no problem :) [15:51] Is it possible to merge with another branch but only with one command? ( like git merge --squash) [15:51] s/command/commit [15:51] lovebug356: yes [15:52] lovebug356: merge FOO && bzr revert --forget-merges && bzr commit -m 'squashed!' [15:52] how about a cherrypick? [15:52] lifeless, thanks, will try that. [15:53] andrea-bs: bzr merge -r x..y FOO && bzr commit -m 'This is a cherrypick' [15:53] oh, thanks lifeless [15:54] np [15:54] And does somebody know how to work with a git branch? tried bzr-git but that crashed [15:54] lovebug356: your best bet to day is git-fast-export ++ bzr fast-import [15:55] https://launchpad.net/bzr-fastimport [15:56] lifeless, thanks, but can you give a real-life example of that? the recipe is not clear to me [15:57] lovebug356: I can't, but I am quite sure there are details on the list :). [15:57] http://bazaar-vcs.org/BzrFastImport [15:57] that wiki page has a howto [15:58] bzr init-repo . [15:58] front-end | bzr fast-import - [15:58] where front-end is the exporter from git === oleavr_ is now known as oleavr [16:10] lifeless, ok, thanks it works [16:11] lovebug356: cool [16:11] I'm going offline for a while; hope someone else can help on an further questions :) [16:13] lifeless, ;-) [17:04] Hi guys! I had problem with 1.5 with filenames with non-ascii characters [17:04] A fix has been issued for this... but I found another kind of problem related to non-ascii characters in 1.6b2 [17:05] I posted a report in the same bug in launchpad... should I file a new bug for it? [17:05] take a look: https://bugs.launchpad.net/bzr/+bug/135320/comments/27 [17:05] Launchpad bug 135320 in bzr "dirstate updating fails if there are symlinks and non-ascii filenames" [Medium,Fix committed] [17:05] yes... that's it [17:25] so? File a new bug or leave it like that? [17:43] antoranz: yeah, yours seems to be a different issue, so different bug report please. [17:44] k [17:44] though is it https://bugs.edge.launchpad.net/bzr/+bug/244360 ? [17:44] Launchpad bug 244360 in bzr "UnicodeError running "bzr st"" [Undecided,New] [17:45] it looks like it to me, so you could just subscribe to that one [17:53] hmm ... I need to run bzr under windows ... but using the cmdline seems not to work... or am I missing something? [17:57] Necoro, have to make sure bzr is in your path [17:57] how do I do this? have never really used windows [17:57] Necoro, on my system, I had to add "C:\Program Files\Python25\Scripts" to my system path [17:59] Right click on "My Computer", go to Properties, Advanced Tab, Environment Variables (button), Look on hte bottom where it says "System Variables", Click on "PATH", then "Edit", and add a semi-colon and the path to your Python Scripts folder to the end of that line. [18:00] ok - worked... thanks :) [18:00] sure :) [18:10] could somebody tell me why this doesn't work? http://rafb.net/p/bNXtm645.html [18:10] or how to add something to a workingtree... 8-) [18:11] I just added my stuff to that bug. [18:16] What's the appropriate URL to file a bug-report for bzr-svn clobbering commits if multiple users are editing their commit messages simultaneously? [18:18] apol: smart_add takes a list of paths [18:18] what you did is basically wt.smart_add("/home/kde-devel/testbzr/aaa") [18:18] er [18:19] wt.smart_add(["/", "h", ...]) [18:19] aaah [18:20] luks: thanks a lot [19:20] does bazaar have a "copy file" command? [19:24] * Foskasse http://failblog.files.wordpress.com/2008/06/fail-duck-writing1.jpg LOL! === abadger1999 is now known as abadger_afk [19:56] how can I initialize a directory from python? [20:03] matthewlmcclure: no, it doesn't [20:03] apol_: checkout "bzrlib/builtins.py" for "class cmd_init" [20:04] apol_: that handles a few cases, so you may be able to strip it down depending on what you need [20:04] james_w: cool, thanks [20:04] it's not a simple one-liner though, as you have to deal with formats [20:04] really? :/ [20:04] well, I'll check it out [20:04] thanks a lot [20:05] it's not one line, but it is about three I think, if don't need to handle all cases of existing dir, no parent dirs, etc. [20:34] james_w: thanks [21:43] I have a question... With bzr send... Is the --message option only used with the email option of send? [21:46] Nevermind, I guess it works with the --output also... I thought it didn't but I wanted to ask first, but the test I did that made me think I didn't was wrong. [21:46] So ignore these message :) [21:46] messages*