/srv/irclogs.ubuntu.com/2012/01/20/#bzr.txt

exarkunis there a python import hook for importing from a bzr branch (with no working tree)?01:14
jelmerexarkun: not that I'm aware of01:16
jelmerthat would be a cool (and fairly achievable, at least from the bzr side) thing to write though01:16
poolienice01:19
mwhudsonan equivalent thing would be a FUSE fs backed onto a branch i guess01:23
exarkunmwhudson: or an x86 implementation in javascript on v8 running a linux installation preloaded with the contents of the branch as a normal part of an ext4 filesystem01:25
jelmermwhudson: or a Transport implementation on top of the Tree API01:25
mwhudsonexarkun: that sounds modestly over complicated01:26
mwhudsonjelmer: ... yes, i guess so01:26
mwhudsonjelmer: that's quite a confusing thing to think about though :)01:26
jelmermwhudson: nested trees? >-)01:26
exarkunHow does bzr+ssh:// figure out which bzr executable to launch?01:27
jelmerexarkun: it just runs bzr, or you can set the BZR_REMOTE_PATH environment variable01:27
exarkunAnd what are the chances I'll be able to get it to run bzr with PyPy?01:27
jelmerexarkun: in other words, it leaves it to the shell on the remote machine01:27
jelmerexarkun: I think there are still some open issues running bzr with pypy, LarstiQ was looking into some today.01:28
jelmerhttps://bugs.launchpad.net/bzr/+bugs?field.tag=pypy01:28
exarkunargh, always so difficult01:30
jelmerexarkun: I think it's mostly tests failing, not sure how much matters in practice01:31
exarkunbefore I even get to any of those issues, I can't use the system installed version of bzr on pypy because sys.path doesn't work that way01:31
exarkunand I really don't feel like installing bzr just for pypy either01:31
pooliewhat do you mean about sys.path?01:32
exarkun"ImportError: No module named bzrlib"01:33
exarkunahhh, pointing PYTHONPATH directly into /usr/share/python-support/python-bzrlib works01:35
exarkunimplausible, but I'll take it01:35
pooliei wonder if it's something about pypy not reading pth files01:42
pooliedoes it work with that fixed?01:42
exarkunI think pypy intentionally avoids using cpython's library, including site^Wdist-packages01:42
exarkunit's pretty hard to tell what's going on01:44
exarkunaha, think it's working01:52
exarkunon top of a precious stack of ad hoc configuration :/01:52
exarkunoh well good enough01:52
exarkunokay, just one more thing I'll try tonight...01:57
exarkunwhat's a good way to restrict a plugin to running on only one branch?01:58
pooliehm01:58
pooliethe normal thing is to just have an option in that plugin01:59
poolie.. there ought to be a builtin option though01:59
exarkunwhat kind of option?  like, something in ~/.bazaar/config?02:00
pooliethere is no option for it now but there should be02:00
pooliewell, perhaps  in locations.conf02:00
pooliebut, there is a bit of a bootstrapping problem, that plugins are loaded very early on02:00
poolieso that they can control how branches are opened02:00
poolieyou could do it from some shell scripting outside of bzr02:00
exarkunhm.  I can't quite think of what that would look like.02:01
poolieif [ `pwd` == /home/me/foo ]; then;  export BZR_DISABLE_PLUGINS=pqm ; fi; exec bzr "$@"02:03
exarkunand the pwd is the branch being operated on?02:04
poolieno, it would be just your pwd02:05
poolieso it's not quite accurate02:05
pooliein the fairly common case where the branch comes from one of the args02:05
pooliewhat's the specific case?02:05
exarkunI'm writing a server-side plugin that deploys an application whenever the server-side branch is pushed to02:06
poolieok..02:06
poolieand you want it only to do this for some branches?02:06
exarkunpassingly02:07
exarkunas it happens, there's only one branch I've ever pushed to this machine before02:07
exarkunif I ever decided to push some totally unrelated bzr branch to it for some reason, it'd be nice to not trigger the plugin02:07
poolieok02:07
poolieso i think your plugin should just load unconditionally and install its hook02:08
pooliethen when it gets the branch that has been changed,02:08
poolieif branch.get_config_stack().get('my_deploy_plugin.enabled'): do_it02:09
pooliethen you can put that in the branch.conf, locations.conf, or globally02:09
exarkunoh, fancy02:09
exarkunthat sounds just fine02:09
exarkunthanks02:09
poolieyou're welcome02:10
exarkunsomething I noticed while doing this, the end of the bzr output is a little mixed up:02:12
exarkunPushed up to revision 62.02:12
exarkunexarkun@top:~/Projects/treeplan$ bzr: warning: some compiled extensions could not be loaded; see <https://answers.launchpad.net/bzr/+faq/703>02:12
exarkunI know why the compiled extensions could not be loaded, but I don't know why I get warned about it after I've gotten my new shell prompt...02:12
poolienot sure02:13
pooliemaybe ssh lack of synchronization between stderr/stdout02:13
poolie(lunch)02:13
exarkunhuh, http://codepad.org/VZ85gbDu02:21
AuroraBorealisis it because some extentions arn't compiled?02:22
exarkunAuroraBorealis: Seems unlikely.02:22
jelmerexarkun: you have a bzr older than 2.4 - use branch.get_config().get_user_option("foo")02:23
exarkunah, ok02:23
exarkunCool, seems to be working well now02:30
exarkunI notice some leftover files in /tmp02:30
exarkuneg bzr-index-q3bQ3p02:31
AuroraBorealisisnt that the point02:31
AuroraBorealisits in /tmp, who cares?02:31
exarkunstarting with "B+Tree Graph Index 2"02:31
exarkunAuroraBorealis: I care, when I run out of disk space in 6 months02:31
AuroraBorealisi dont think bazaar is going to make you run out of disk space o.o02:32
AuroraBorealisespeically if you restart anytime in between said period02:32
jelmerexarkun: yeah, those should be cleaned up. I wonder what creates them02:32
jelmerAuroraBorealis: it's common courtesy for applications to clean up files they no longer need, even in /tmp02:32
AuroraBorealisyeah. at least you have /tmp, windows they stick around forreevverrrr02:32
jelmerAuroraBorealis: if nothing deletes them they can stick around forever too in /tmp..02:33
AuroraBorealisdoesn't it clear /tmp when you restart?02:33
exarkunThis machine had an uptime of 900+ days the last time it restarted02:33
exarkunThat's a long time for temp files to pile up02:34
AuroraBorealisyour kernel must BELONG IN A MUSEUM02:34
AuroraBorealis</meme>02:34
AuroraBorealisbut yes i see your point02:34
exarkunAnyway, I'm reasonably happy with this for now.  Thanks for the help, everybody.  In case you're curious, the plugin is http://bazaar.launchpad.net/~exarkun/+junk/treeplan/view/head:/generate_schedule.py02:37
exarkungood night02:37
=== bradm_ is now known as bradm
poolievila, jelmer, hi?07:22
vilabuongiorno a tutti !07:48
vilajelmer: ping, https://code.launchpad.net/~jelmer/bzr-pqm/2.5-compat/+merge/89367 reviewed, double check my proposed tweaks but I think the end result should be good to land (tests are passing here (before you ask, 'bzr plugins -v' double-checked ;))08:43
vilajelmer: and thanks for that, I discovered the issue recently and fixing it was up in my TODO list08:44
vila...08:56
vilathe release notes are clean, 2.5 already merged into trunk... isn't the world a beautiful place ?08:57
AuroraBorealishow can i get 2.5 so i can test colocated branches?09:00
AuroraBorealisoh durr wrong website09:01
LarstiQAuroraBorealis: you can download the latest beta from https://launchpad.net/bzr/+download, or bzr branch lp:bzr/2.5 if you want to track the work leading up to the final09:05
AuroraBorealiskay. first thing i noticed about colocated branches, bzr switch <something> doesn't work. get "cannot switch a branch, only a checkout"09:08
mgzmorning all09:12
vilahey mgz !09:13
vilamgz: windows installers ?09:13
mgzsure.09:13
vilamgz: I said I'll announce today, would be nice if they were available :)09:13
vilajelmer: in bzr trunk, BZR_DISABLE_PLUGINS=svn ./bzr selftest -s bzrlib.tests.test_http.SmartHTTPTunnellingTest.test_open_bzrdir pass but ./bzr selftest -s bzrlib.tests.test_http.SmartHTTPTunnellingTest.test_open_bzrdir fails09:51
vilajelmer: I'm a bit lost :-/09:52
vilajelmer: this may be related to probers but I can't understand why09:52
vilajelmer: fails with: AssertionError: <BzrDirMeta1 at 'http+pycurl://127.0.0.1:40031/relpath/'> is an instance of <class 'bzrlib.bzrdir.BzrDirMeta1'> rather than <class 'bzrlib.remote.RemoteBzrDir'>09:53
vila}}}09:53
vilajelmer: hmm, could it be some pycurl internal state borking ?10:05
vilajelmer: yup, found it, playing around with pycurl.CUSTOMREQUEST is the culprit, your svn prober seems to force "GET" which get in the way of the smart server trying to use POST10:14
vilajelmer: pycurl is probably to blame here for providing two incompatible API (CUSTOMREQUEST vs HTTPGET/POST)10:15
vilajelmer: I can hear you ask for bzr supporting OPTIONS you know ;)10:17
vilajelmer: ok, I had a fix for bzr itself, but I've found a less risky one for bzr-svn instead: http://paste.ubuntu.com/810565/10:45
vilajelmer: there is also an unrelated fix in this paste for the config stuff that is taking dust in my local copy10:45
vilajelmer: gotta go now bbl10:45
mgzah.11:34
mgzsvn-lib 1.6.611:34
mgzI suspect that's... not right any more.11:34
* mgz gently kicks jelmer11:34
CaMasonMorning guys. What's the command to show the gui that shows who made what changes to a file?11:35
mgz`bzr qblame FILE`11:36
CaMasonfound it, qannotate11:37
CaMasonthat's the same as qblame?11:37
mgzthat's the allenap milquetoast version of qblame11:39
mgzof course, real developers add a 'qwhosucksthemost' alias and use that11:40
* jelmer kicks mgz back - what's up with 1.6.6 ?11:40
mgzis it the version I want?11:41
jelmermgz: possibly, it should be sufficient11:41
mgzokay, thanks.11:41
jelmermgz: any recent version (prior to 1.7) should do11:41
mgzah, so, *not* 1.7?11:43
mgzoo, they're up to 1.6.17 under that.11:44
mgzwill leave as is unless this build breaks.11:45
jelmermgz: yeah, 1.7 has a bunch of changes that break assumptions in subvertpy/bzr-svn11:51
mgzwhat the hey, why is this deprecation warning getting through...12:04
mgzthat would make me feel really bad about not posting my config location finding changes for review12:04
mgzbut I thought release versions weren't meant to whine12:05
jelmerthey're not12:06
mgzthen why is the installer version doing it ;_;12:07
mgzah, b5!=release?12:07
mgzokay, er...12:07
mgzI wonder whether I should cheat and change the tip, or just put a note in saying "yes, I know I messed this up"12:07
mgzI need some smallish svn repo to test against too, any suggestions?12:08
jelmermgz: svn://svn.samba.org/subvertpy/trunk ?12:11
mgzworks... will have to mark the bug as incomplete.12:14
* vila back12:37
vilajelmer: seen my previous remarks about bzr-svn prober ?12:37
jelmervila: yeah, see recent lp:bzr-svn commits :)12:39
vila\o/12:40
mgzvila: uploading windows installers now12:43
vila\o/12:43
vila:)12:43
mgzI had to er... adjust for a little problem I caused on trunk12:43
mgzgah!12:46
vilatrunk ?12:46
mgzcomplaining about password after already uploading12:46
vilawhich trunk ?12:47
mgzand the script has now broken my terminal12:47
vilahpmf, lp_registration directly uses _urllib2_wrappers.Opener, makes it harder to fix the last test failure for cert validation ;_;12:51
vilabingo, quick, dirty, works13:01
mgzokay, I'm stuck, launchpad won't let me upload with the script13:01
vilaswitch to manual upload ?13:01
mgzeither launchpad has changed, or it's no longer accepting the SSO password13:01
mgzwhich is what I swear it was last time13:02
vilaI have a vague souvenir that you encountered issues last time too no ?13:02
mgzit's just a pain, but I documented it and everything13:03
mgzbut it no longer works13:03
vilanothing in  .bzr.log ?13:04
mgzit's using curl to post to a webpage, there's no launchpad api13:05
vilahmpf13:05
mgz"Application error.  Unauthenticated user POSTing to page that requires authentication."13:08
* mgz growls13:08
vilacoockies involved ?13:09
mgzit's curl.13:09
vilacurls supports coockies :)13:09
mgzI guess lp or sso just broke it.13:09
vilacan't imagine why nor how13:11
vilaalways possible but... my little daemon tells me it's unlikely13:11
mgz< wgrant> That's been unsupported for about 2 years, and I removed it last week.13:17
wgrantI removed basic auth.13:18
* vila to his little daemon: put that in your pipe13:19
LeoNerdhttp://doc.bazaar.canonical.com/beta/en/user-reference/location-alias-help.html  <== possible to add new custom ones?13:21
LeoNerdSpecific per checkout, I mean13:22
vilaLeoNerd: I'm not sure I understand your question, do you mean locations defined in branch.conf or defined for <unspecified but not supported yet> checkout property ?13:38
LeoNerdEither.13:39
LeoNerdAs an enduser: I want some way to  bzr diff :fred13:39
LeoNerdTo compare to Fred's branch, where :fred would just expand to the full URL13:39
vilaok, so an already available trick then:13:40
vilabzr config fred=<full URL>13:41
vilabzr diff --old `bzr config fred`13:41
LeoNerdOohright13:41
LeoNerdOh.. :(13:41
vila?13:41
LeoNerdI wanted it to appear as a :NAME like the others..13:42
fullermdYeah, that falls nicely into the category of "_technically_ answering the question, but"   :p13:42
vilaI said trick !!13:42
vila:)13:42
fullermdThe closest answer would be bookmarks.13:42
* fullermd will hold out for the treat :p13:42
LeoNerdOoh. that's probably close enough13:43
LeoNerdbm:fred13:43
vilayup13:43
fullermdBut you'll have to find a way to hire Michael Baker.13:43
vilaI need to implement a config: specifier some day...13:44
vila... and add an alias as c: just to confuse windows users :)13:45
fullermdC:\ is the root of all evil.13:45
* vila receives BOFH bonus points13:45
fullermdWhere's my excuse calendar...13:46
exarkunWhen I push to a file location, my locations.conf succeeds in supplying some configuration about the branch.  if I push to the same place, but via bzr+ssh, it doesn't.  what am I missing?13:49
vilaexarkun: the client can't resolve the aliasing between the two locations, you need to add a location for bzr+ssh13:52
exarkun:O13:52
vilajelmer: https://code.launchpad.net/~bzr/bzr/urllib-verifies-ssl-certs/+merge/89437 up for review on top of your proposal13:53
jelmervila: I'll have a look13:54
vilajelmer: not the cleanest proposal I ever made but it does the job for now ;)13:54
vilajelmer: the proposal is only the diff against yours, not sure anybody else can understand :-/13:55
jelmervila: is there a particular reason you're deferring the fetching of ca_certs from config in the HTTPSConnection, rather than doing it in the constructor?13:59
vilain the transport constructor you mean ?14:02
jelmervila: no, in HTTPSConnection.14:02
vilajelmer: not really14:03
vilaI did it there because the stack was already available14:04
jelmervila: I think it would make sense to move the configuration variable fetching to the constructor, perhaps14:04
vilaand since I think this should be reworked anyway it doesn't really change the issue14:04
jelmernot really a big deal :)14:04
vilayeah14:05
vilaI went for the easiest (there were enough issues to deal with ;)14:05
exarkundo I just have to duplicate configuration in locations.conf in two sections, to get multiple urls for the same branch to work?14:05
vilaexarkun: AFAIK, yes, the only exception being stacked_on_location which you're not supposed to tweak without really understanding the fallouts ;)14:06
jelmerexarkun: either that, or you can put the configuration in .bzr/branch/branch.conf14:06
vilaexarkun: if they are specific to the branch, jelmer's suggestion is even better14:06
vilaexarkun: no duplication at all14:07
exarkunDoes .bzr/branch/branch.conf move around with the branch?  Or is it unversioned local-only configuration?14:08
jelmerexarkun: it's unversioned local-only14:08
jelmerexarkun: "bzr branch" won't copy it14:08
mgzokay, rewrote the upload script, seemed to work against staging, doing the real thing now, and lunch14:09
fullermdIs this the wrong time to grump that locations.conf really should be called branches.conf, since it only applies to branches?   :p14:10
exarkunOkay, that's working.  Not sure if I'm happy about unversioned local-only state... but we'll see.14:11
vilafullermd: it will apply to repositories and working trees once they gain their associated config file :)14:11
vilafullermd: unless I can convince people to introduce defaults.conf and overrides.conf and clearly document them ;)14:12
vilafullermd: and I think there was a branches.conf in the past that locations.conf replaced, dunno about the rationale though, I'm too young for that14:13
fullermdAny problem with 1 config file can be solved by introducing 2 config files   :p14:14
mgzwell, that's hillarious14:15
mgzthe lp api for uploading files wants the whole thing at once14:15
mgzand... it OOMed on the third one14:15
mgzusing curl was better, it knows how to stream packets14:15
fullermdLook, Taiwan is full of DRAM makers losing money.  A well-designed API will do what it can to help jump-start the economy   :p14:17
jelmervila: approved14:21
jelmervila: if you have a chance to look at my sibling-branches MP this week, that would be awesome - I hope to do some work next week based on that14:22
=== yofel_ is now known as yofel
vilajelmer: urgh, I hate it when I reviewed a proposal and somehow lost my comments because I close the tab without pushing the right button14:54
vilaI did review that code, I'm sure14:54
mgzsolution: do reviews in lynx14:56
fullermdWho has room on their system for lynx once they've got emacs crammed in there?14:56
LarstiQor in pentadactyl ^I15:00
vilajelmer: done15:02
mgzhm, I don't have push access to lp:lptools15:03
vilaemacs will soon be part of the bios so this won't matter anymore15:03
mgz someone want to push a tyop fix for me?15:03
fullermdWow, I didn't know emacs was that buggy.15:03
vilaI didn't hear that15:03
mgzjelmer: lp:~gz/lptools/trivial_content_typeo -> lp:lptools plz15:06
fullermdWell, I'm pretty sure there's a law that no code is allowed into the BIOS unless it's got more bugs than an encrusted entymologic eatery.15:06
mgzokay, that's my stack of stuff mostly popped, except the doc updates15:06
fullermdAnd emacs probably runs the same on every system, so that's another strike against it in the BIOS sweeps.15:07
jelmermgz: "lptools has no active code reviews." ?15:07
vilafullermd: you got that wrong, every system run the same under emacs, that's the point ;)15:07
mgzit's a one-character change15:09
jelmermgz: ah, sorry15:09
jelmermgz: I thought you were asking for a review15:09
mgzand launchpad doesn't actually care what you say the content type is, I was just correcting in drive-by but found out I couldn't push15:10
jelmermgz: merrrrged15:12
mgz:)15:12
jelmervila: how do you want to handle the landing of the urllib-verifies-certs branch?15:22
vilajelmer: almost there, finishing the 2.5b5 release, I think landing my branch should be fine no ?15:22
jelmervila: you can't land it though, because it's got a prerequisite that hasn't landed.15:23
vila? You mean feed-pqm won't list it ?15:23
jelmervila: yeah15:23
vilajelmer: but we've fixed pqm-submit no ? :-D15:23
jelmervila: heh, fair 'nough15:23
vilaor do you mean I should approve your branch first ?15:24
jelmervila: no, but feed-pqm won't allow you to submit your branch until mine has been submitted15:24
jelmervila: and mine can't be submitted because it won't pass make check15:25
vilaha right, so pqm-submit will do15:25
vilajelmer: let me check pqm-submit15:25
vilajelmer: ha, we agree in the end, good, I wrote my comment in a hurry :)15:28
vilajelmer: you miss the (2,5,0,'beta',5) trick, I'll fix (two occurrences, luckily I had some uncommitted changes locally that conflicted)15:30
vilahmm, feed-pqm appeared happy to send it...15:40
vilaoh wait, I may need to upgrade ? ;)15:40
jelmeryeah, that's a bug...15:41
vilaright, it served me ;)15:41
vilafullermd: does bzr requires pycurl on FreeBSD ?15:45
fullermdNo.16:09
fullermd('course, it'll use it if it's there, but installing bzr won't drag in pycurl)16:10
exarkunbzr update elapsed time 33 mins, 20 secs :(16:15
fullermdThat sucks.  If it were 13 seconds longer, it'd be way more cool.16:16
exarkundon't worry16:17
exarkunit's still running16:17
exarkunare there known performance issues on Windows 7?16:17
jelmerexarkun: which version of bzr?16:24
exarkuna pretty new one I hope16:25
=== Quintasan_ is now known as Quintasan
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
=== ISK_ is now known as ISK

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