=== robbyoconnor is now known as r0bby === r0bby is now known as robbyoconnor [00:27] "bzr branch lp:jp-test ." returns " Target directory "." already exists." [00:27] how do i fix it? [00:28] branch has a --use-existing-dir. But are you sure you want to drop the branch right in '.'? (as opposed to ./jp-test/) [01:32] thx [01:35] it looks like I can do ControlDir.open('lp;foo'), and operate in in the branch as if it was local... but the operations are too slow [01:36] is there a facility to have an intermediary local branch? [01:37] Pretty sure not really. The facility looks like "bzr branch lp:foo local ; ControlDir.open('local')" 8-} [01:39] fullermd: yeah, I'm doing something like that, but what happens when I want to push to lp:foo? [01:40] I guess I need to pull and push to make sure they are in sync [01:40] I thought perhaps this concept of 'bound' branches would help [01:40] Oh, you can "push lp:foo" or "push :parent" or (after the first time) just plain "push", depending on when/if you expect somebody to fiddle your branch behind your back. [01:41] That would also be a possibility, as long as you're OK with things happening upstream the moment you do them (and handling the case of upstream moving behind your back). [01:43] hmm, I'm not sure [01:44] maybe I should do a clone for the initial import, and after that push directly to the server [02:12] "https://code.launchpad.net/~john-peterson3/calibre/calibre/+merge/132832" returned "Timeout error Sorry, something just went wrong in Launchpad. We’ve recorded what happened, and we’ll fix it as soon as possible. Apologies for the inconvenience. Trying again in a couple of minutes might work. (Error ID: OOPS-342f8cc9c38bf1ad53e6f28f3f2c2db4)" [03:09] I'm reading about bound branches... supposedly when a commit is made on the local branch, it should be pushed to the parent branch [03:09] no? [03:10] Correct. [03:11] fullermd: but the API doesn't do that... [03:12] Well, I don't know at what level the magic happens. Are you sure you actually made a bound branch? [03:13] fullermd: branch.bind(remote_branch) [03:13] don't do bound branches [03:16] looks like in addition to builder.commit, I need to import_last_revision_info_and_tags [05:01] bob2: well, bound branches are part of the magic fairy dust that makes `bzr switch` work, at which point you have a the ability to reuse a Working Tree across different Branches [05:02] sadness [05:03] I underspecified, binding to shared repos is my concern [06:07] AfC: huh? switch works fine w/out bound branches [06:08] lifeless: really? That's new [06:09] lifeless: when I learnt it, you had to have a checkout to be able to switch [06:09] holy cow how do i remove this https://code.launchpad.net/~john-peterson3/calibre/calibre/+merge/132832/comments/285737 message? it's a duplicate message. [06:09] do i have to fraking ask an admin to remove my own messages? [06:10] AfC: lightweight checkouts work fine [06:14] admin moron? can you delete my message? [06:15] it's a duplicate. it's worthless. it must be deleted. [06:19] lifeless: um, ok. I guess I would have said that's still a checkout. Happy to be corrected, cheers. [06:19] lifeless: [still a bother to set up] [06:21] AfC: it is a checkout, but its not a bound branch [06:21] AfC: all the bound branch complexity can't happen in a lightweight checkout [06:25] lifeless: fair enough [06:26] a) #launchpad [06:26] b) not being a dick is helpful when asking for something [08:13] how can I add extra "see also" for a command? [08:21] mathrick_: look for _see_also examples in bzrlib/builtins.py [08:24] morning! [08:24] Again? I just dealt with one of those yesterday... [08:25] vila: ah, thanks. I was looking for that in bzrlib.commands.Command, but it isn't documented it seems [08:25] mathrick_: quite possible, there is a leading '_' after all ;) [08:27] hmm, right. Why does it have that, though? [08:27] it doesn't seem like something "internal" to me [08:31] mathrick_: hysterical raisins, I can't see why it's not public indeed (but I may miss some detail...) [08:32] btw, it seems like a missed opportunity that bzr help plugins/foo doesn't list the commands provided [08:38] mathrick_: patches welcome ;) That sounds like a good idea. I don't remember what's the default behavior is but I think a plugin can already do that... [08:39] at least 'bzr help qbzr' does (usual kudos to our qbzr friends ;) [08:39] vila: I believe it's simply hardcoded into the docstring [08:39] all the plugins I've seen do that [08:40] indeed it is [09:12] fullermd: urgh, bug #1075213 gives me a headache :-/ [09:12] Error: Launchpad bug 1075213 could not be found [09:12] see ? [09:12] bug #1072513 [09:12] Launchpad bug 1072513 in Bazaar "log can show too few revs" [High,New] https://launchpad.net/bugs/1072513 [09:16] fullermd: but basically I think it's related to -v inspecting all the *file* revs while !-v looks at the ancestry graph [09:17] fullermd: by "file revs" I mean the existing file texts that are referenced in the revision inventories [10:29] uhh, is that expected behaviour? [10:29] C:\Users\Trendware\Dev\bzr-submit>bzr info ./this-doesnt-exist [10:29] Standalone tree (format: 2a) [10:29] Location: [10:29] branch root: . [10:29] ie. no error being returned [10:32] mathrick_: yes. 'bzr info' walks upward from the location you give so it ends up in C:\Users\Trendware\Dev\bzr-submit which is a real branch [10:33] that's pretty counterintuitive to me [10:33] though it might be because I want to check for a branch that (possibly) lives in a subdir, so I want it to error out on non-existent location [10:39] if I trigger pdb on a bzr error (with BZR_PDB=1), how can I inspect the exception that caused the debugger to step in? [10:41] meh, no general answer for that, it depends on where the debugger puts you in, you may try so start with 'pp locals()' maybe [10:41] * vila off for errands [10:42] perhaps exc_info() will help [12:47] any reason bzr doesn't install the grep plugin by default? [12:51] How to what will be changed from repository without running `bzr up`? [12:51] I can't find on Google anything related to this [12:52] ReekenX: you're missing a word in your question, it makes it unclear [12:52] try repeating it [12:53] mathrick_: Before updating a code with `bzr up` I want see changes coming (what will be changed in my source code). [12:53] hmm, what is the API to use when I want to ensure I'm in a branch, and not a repo? [12:54] ReekenX: try bzr missing :bound [12:56] mathrick_: Thanks a lot! And sorry for poor english skills (trying to improve). [12:57] that's alright, it just looked like you missed a word [12:57] ReekenX: btw, note that with lightweight checkouts, it won't work. Lightweight checkouts are pretty hard to inspect in general, because they have almost no state on their own [13:31] hrmpf [13:32] how do I distinguish between NotBranchError meaning "location doesn't exist" and "location is a repository"? [13:32] I want to error out only if I get a repo, but not when I get a branch or a non-existent location [13:41] mathrick_: bzrlib.branch.Branch.open() ? [13:42] vila: but won't it also give me NotBranchError on non-existent paths? [13:42] from memory, I can't say [13:43] mathrick_: writing a test for it will allow you to explore at will [13:45] poking reveals it will [13:46] oh well, not that important [13:46] I will get it right later [14:03] OK, what is the canonical way to set the submit location? [14:05] from the command line, that is, and/or programmatically [14:07] aha, bzr config submit_branch="../upstream" === ReekenX is now known as ReekenX|AFK [15:31] vila: Well, if it weren't headache-inducing, what would be the fun in filing the bug? ;p [15:31] mathrick_: yup, 'bzr config' is the manual way (bzr config --remove may help too) [15:31] fullermd: hehe [15:33] fullermd: I didn't dig enough to fully understand (I mainly tried the script with make_dir=false and looked at the branches with bzr qlog A B C) [15:33] fullermd: the only weird thing I noticed that was you were merging older versions of the branch itself [15:33] fullermd: nothing illegal there but the result may be confusing for the user [15:34] Oh, that's not enough. You don't really have a headache until you start commenting out the [1] lines and watching new revs start appearing like magic. [15:35] Well, the Real Branch where I first ran across it was a little twisty in how it came together; that was the simplest way I could come up with to reproduce it. [15:36] fullermd: I have no doubts the real one was even harder to grasp... [15:36] fullermd: any of the [1] ? In a particular order ? [15:37] Nope. For every one you comment out, one more of the "right" revs shows up in the log output. So any 3 of them, and all 4 "right" revs show up. [15:38] Or uncomment the exit in the [2] block; that causes 2 of them to show up. So skipping [2] via the exit, and commenting out any 1 of the [1]'s, and everything works right too :) [15:39] No correspondence between which one you comment out and which "right" rev shows up; they always uncover themselves in the same order. Neat, huh? [15:43] fullermd: hmpf [15:44] The Particular Magic in the real case that I copied into the test case was how one branch off trunk added a dir with a couple files and was merged, and then another branch that started off trunk from before that landed merged trunk with those changes, made other changes in the dir, then was itself landed on trunk. [15:45] But I had to add in those --unchanged rev in the test case (in the real case there were of course real commits to other stuff in the tree before/after the revs touching the dir in those landings) to make it start showing up. [15:48] So I didn't actually discover that quirk by removing them and watching stuff show up; when the test worked right while the real didn't, I started adding them and watched stuff _disappear_ 8-} [15:48] Perhaps you could hear me whimpering and curled up in the corner when that happened... [16:03] vila: Incidentally; I just tested; the extra merge in [2] isn't itself apparently part of the necessary special sauce. Replacing that block with 2 more --unchanged revs on C has the same effect. So there's one more step of simpliciation. [16:05] (it would be simplification, but that's more letters, so obviously not as simple...) [16:08] I guess I should note that on the bug, so future generations can share in the WTF. [16:10] fullermd: yup (sry otp) (and yes, less letters is simpler) [16:11] Say hi to whoever it is for me ;> [16:51] vila: There's the updated script and some notes on the bug. Y'know, just in case that headache went away 8-} [16:55] fullermd: cool, I'll update mine [16:56] Slightly more normal looking history without the extra merge. [16:58] http://picpaste.com/pics/qlog.1352134680.png [16:59] Though I did add a few extra notes about tweaks you can do to the "Merge A:1" without affecting the outcome, just to muddy the waters up a bit... [17:09] Anyway. Headache widely shared; my work here is done! === yofel_ is now known as yofel === iBasic is now known as BasicOSX