/srv/irclogs.ubuntu.com/2012/11/13/#bzr.txt

felipecjelmer: weird thing is that if the install fails at build_mo, it works00:06
jelmerfelipec: seems like the (bundled) plugin is being loaded by an incompatible version of bzr00:07
jelmeranyway, it's time for me to get some sleep..00:07
felipecjelmer: yeah, but that's not the problem00:08
felipecI just removed the bzr from my system00:08
felipecstill the same problem00:08
felipecno, wait... yeah, that was it00:10
felipechmm, bzrlib.initialize() is not there in older versions00:24
lolekhello all07:31
lolekjelmer: are You here,07:31
lolekjelmer: i've got one question on pm if You don't mind...07:31
jelmerlolek: hi07:37
jelmerlolek: sure07:37
lolekhi hi ;)07:37
lolekok07:37
didrockshey08:13
didrockswhen trying to bzr lp-propose on bamf, I'm getting this error: bzr: ERROR: Parent not accessible given base "bzr+ssh://bazaar.launchpad.net/+branch/bamf/" and relative path "../../../~anjali-team/anjali/bamf/"08:13
didrocksdo you have any idea how I can start debugging?08:14
didrocksI'm running something like: bzr lp-propose lp:bamf -m "foo"08:17
didrocks(and the bamf trunk is ~unity-team/bamf/trunk, not anymore the anjali-something)08:18
jamdidrocks: so the issue is that lp:bamf has a parent set to another branch on Launchpad, but it isn't actually accessible. I don't actually know why lp-propose is trying to access the parent, but maybe it is trying to figure out what branch you want to submit to?08:21
jamBut I guess that is what you are supplying.08:22
jamyou can try -Derror and get a traceback to see where bzr is trying to access it.08:22
didrocksjam: exactly, I'm supplying the branch I want to push at08:22
jambzr lp-propose lp:bamf -m "foo" -Derror08:22
didrocksok, one sec :)08:22
didrocksjam: http://paste.ubuntu.com/1355044/08:23
didrocksindeed, you're right, it's trying to get the parent of lp:bamf08:23
didrocksbut shouldn't it just use the url I provide and don't try to look for any parent?08:24
didrocks(I confirm the bamf branch is removed from https://code.launchpad.net/~anjali-team)08:25
didrocksI wonder where in launchpad it's trying to get it, I don't see it in the bamf project configuration08:25
jamdidrocks: as a 'parent' it means someone did "bzr branch ~anjali-team/... ~unity-team/..."08:26
didrocksjam: yeah, the trunk was there a long time ago08:27
didrocksthen, it's now under ~unity-team and lp:bamf moved to it08:27
didrocksbut I guess bazaar has still its internal parent in bzr info08:27
didrocksany idea how we can fix it?08:27
jamdidrocks: it is easy enough to remove it, it looks like lp_api is trying to find things that might be the public url for a branch before it settles on 'bzr_branch.base'08:28
jamYou could probably do something to set "bzr_branch.get_public_branch" and it would pick that up first, but it might also be easier to just remove the parent location.08:28
jamdidrocks: first, we should file a bug against bzr that lp-propose fails if the target branch has an inaccessible parent branch.08:29
jam(we should be catching it and just skipping that one)08:29
didrocksok, let me file it08:29
didrocksjam: here it is: bug #107820508:32
ubot5Launchpad bug 1078205 in bzr (Ubuntu) "lp-propose fails if the target branch has an inaccessible parent branch" [Undecided,New] https://launchpad.net/bugs/107820508:32
jamdidrocks: thanks.08:33
jamYou should be able to do this in a python session: http://paste.ubuntu.com/1355063/08:33
jamThat should set the parent of the Launchpad branch to empty, provided you have access to write there.08:34
didrocksjam: excellent, makes sense, let me try it :)08:34
jelmer'morning didrocks, jam08:35
jamhey jelmer, good to see you around08:35
didrocksjam: excellent! works fine :)08:36
didrocksgood morning jelmer ;)08:36
didrocksjam: ah, however08:39
didrocksjam: if I want to bzr lp-propose lp:~unity-team/bamf/bamf-0.308:39
didrocks(which isn't lp:bamf)08:40
didrocksit's still proposing to lp:bamf08:40
didrocksI guess because it's looking at the parent08:40
jamdidrocks: which seems odd, I'm really surprised that the code picks parent over self.08:43
jamYou can also config a 'public_location' for things08:43
jamI think often people propose against a local branch which is a mirror of the actual public branch08:43
jamwas the thought process behind it.08:43
didrocksjam: yeah, but when you explicitely put it on the command line, it should just obey to whatever your proposed against :)08:44
jamdidrocks: right, but you can do "bzr lp-propose ../bamf"08:44
didrocksjam: I can't really have a configuration, I'm using this to have automated daily upload for the whole PS stack to ubuntu08:44
jamwhere ../bamf is a branch from trunk08:44
didrocksright, I didn't understand the parameter that way08:45
didrocksbut it can makes sense08:45
jamSo I would recommend setting the 'public_branch' information which it will always take first.08:45
didrocksshould it have another parameter to specify explicitely the branch to submit?08:45
didrockshow do you set it?08:45
jamI think you can do that with "bzr config -d lp:bamf public_branch=lp:bamf"08:46
didrocksjam: hum, but this config will be system-wide, not local to a branch?08:47
didrocksjam: we are on vm that are shared with other projects08:47
jamI think it is set for the user, not for the team.08:47
didrocksso writing in ~/.bazaar…08:47
jamcorrect ~/.bazaar/locations.conf I believe.08:47
jamthough maybe you could write it to bzr+ssh://bazaar.launchpad.net/.../.bzr/branch.conf08:47
didrockshum, not really handy for so many projects (~100)08:48
didrockslet me try to see if I can automate setting it08:48
jamdidrocks: you can set a path based approach in ~/.bazaar/locations.conf08:49
jamsomething like:08:49
jam[bzr+ssh://bazaar.launchpad.net]08:49
jampublic_branch=bzr+ssh://bazaar.launchpad.net08:49
jampublic_branch:policy=appendpath08:49
jamSo stuff accessed under bazaar.launchpad.net/... should get themselves as the public location.08:49
didrocksjam: I'm afraid I can't really do that due to jenkins having random workspace path, and the dir path doesn't necessarily reflect where I need to push08:50
didrocksthat's why I though bzr lp-propose <explicit> was good :)08:51
didrockshum, do you think "bzr config …" is process safe?08:51
didrockslike, if it's called in parallel (the stack to upload are concurrent jobs), there is no issue?08:51
jamdidrocks: it should be taking a write lock on the config directory and either waiting or aborting if it fails to do so.08:52
didrocksok, so should be fine08:52
jamdidrocks: that is only in 'newer' bzr versions, but I'm not sure when it landed.08:52
didrocksah…08:52
jamdidrocks: looks like bzr-2.3 is new enough08:52
didrocksexcellent, it's in precise :)08:53
jamyeah, new enough is something like 1-2years old.08:53
AfC2.5 is in precise08:54
didrocksjam: so, I tried:08:54
didrocksbzr config -d lp:bamf lp:bamf08:54
didrocksand then:08:54
fullermdNah, it's just approximate, not imprecise   ;p08:54
didrocksbzr config -d lp:~unity-team/bamf/bamf-0.3 public_branch=lp:~unity-team/bamf/bamf-0.308:54
didrockswhat I see in .bazaar/locations.conf:08:55
didrocks[lp:bamflp:bamf]08:55
didrockspublic_branch = lp:bamf08:55
jamdidrocks: http://bazaar.launchpad.net/~unity-team/bamf/bamf-0.3/.bzr/branch/branch.conf08:55
jamusing -d lp: sets it in the actual branch on LP08:55
jamNow the one problem is you *might* need the public_url to be a real url like http:// or bzr+ssh:// rather than lp:b08:55
didrocksah, it's in the repo itself08:55
didrocksnot local08:55
jamdidrocks: right08:56
jamthat is what the '-d' does08:56
jamyou can use --scope= to set it to be configured elsewhere, I believe.08:56
didrocksjam: I'm fine by having it in the repo08:56
didrocksI just need to note that down somewhere :)08:56
didrockslet me try the automated lp-propose now08:56
jam--scope='branch' is the default, --scope=locations will put it in ~/.bazaar/locations.conf08:57
didrocksjam: better to be in the main branch scope as it's globale :)09:00
jamdidrocks: yeah09:00
didrocksjam: ok, seems that it answered all my questions, thanks a lot jam ;)09:00
jamdidrocks: np, sorry it didn't just work in the first place.09:00
didrocksjam: no worry, I can understand why it's that way, I just thought the option was for something else :)09:00
jamdidrocks: I also submitted https://bugs.launchpad.net/bzr/+bug/1078211 for you09:06
ubot5Ubuntu bug 1078211 in Bazaar "lp-propose $BRANCH always prefers the parent branch" [Low,Confirmed]09:07
didrocksjam: sounds good, thanks :)09:07
mgzmorning09:53
lolekahoy09:55
=== yofel_ is now known as yofel
=== mmrazik is now known as mmrazik|lunch
=== mmrazik|lunch is now known as mmrazik
=== mmrazik is now known as mmrazik|afk_for_
=== gwbasic is now known as mira|AO
=== mmrazik is now known as mmrazik|otp
=== r0bby is now known as robbyoconnor
=== mmrazik|otp is now known as mmrazik
=== deryck is now known as deryck[lunch]
=== mira|AO is now known as gwbasic
=== deryck[lunch] is now known as deryck
lolekjelmer: hi, are You here ?19:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!