/srv/irclogs.ubuntu.com/2009/09/02/#bzr.txt

lifelessmtaylor: it may simply be that that is the size of your tree00:00
lifelessmtaylor: how big is a drizzle tarball (gz)00:00
mtaylorlifeless: 7M00:01
pooliehi all00:01
lifelessmtaylor: so before its 178 and after its 16400:02
lifelessmtaylor: did you perhaps start with all of mysql and *then* delete huge chunks ?00:02
mtaylorlifeless: yes.00:02
lifelessthats it then00:02
mtaylor(not history of course, but yet)00:02
mtayloryes00:02
lifelesswe can't compress changes to the deleted files, cause they aren't changing :)00:02
mtaylorah, fair enough00:03
mtaylorwas there ever a plan to do partial branches - like a full branch except perhaps going back only 100 revisions or so?00:03
lifelesskindof00:04
lifelesswe have ~ 1/2 of it done - stacked branches00:05
lifelessthe other half is disconnecting them and allowing user controlled connect/disconnect00:05
mtaylorso that I just just pull the stacked branch without pulling the stacked on branch?00:06
lifelessyes. handwaves furiously.00:06
mtaylorindeed00:06
lifelesshow big was a mysql tarball (gz)00:06
lifelessmtaylor: ^00:08
chaosbitHi, is there a ticket management system recommended for bazaar?00:11
lifelessbzr can integrate with quite a few - we allow you to configure that. However we ship with built in configuration for launchpad00:12
lifelessand launchpad knows how to read the data back out of bzr pretty well00:12
mtaylorlifeless: 19M00:13
lifelessmtaylor: urggle. Ok we should investigate00:13
lifelessmtaylor: 1.18 will convert ok. don't convert with 2.0 or bzr.dev at this time. Brrrroken00:14
lifelesssilently too sometimes.00:14
mtaylorlifeless: lovely00:14
lifelessyeah00:14
lifelessaliases variable00:15
lifelessalised00:15
lifelessbah. spellink iz broken.00:15
lifeless'aliased'00:15
=== kiko is now known as kiko-afk
lifelessspiv: ping00:23
lifelessbeuno: what bzr did you use to upgrade lh ?00:25
lifelessbeuno: if you used 2.0 or bzr.dev you should redo it with 1.1800:26
beunolifeless, 2.0rc1  :(00:26
lifelessbug 42284900:27
ubottuLaunchpad bug 422849 in bzr "InterDifferingSerializer generates InconsistentDelta error upgrading drizzle repo to 2a - adds a file already versioned" [Critical,In progress] https://launchpad.net/bugs/42284900:27
beunolifeless, and by redo, you mean...?00:27
lifelessback out, restore the backup, convert again.00:28
lifelesstheres a high chance it wrote arbitrary data into your history00:28
lifelessand I don't have stats on what % of the time it will catch the error with the inconsistent delta warning.00:29
beunook, sill do it00:29
beunothanks lifeless00:29
beunodinner now, fix later00:30
lifelessbeuno: if you converted over the network its ok00:31
lifelessbeuno: its only if you converted locally that its fail00:31
pooliejelmer: hi, still here?00:31
lvhhi00:31
poolieemmajane: still here?00:31
beunolifeless, ah, I did.00:31
lifelessmore detail coming up on the list soon.00:32
emmajanepoolie, barely :)00:32
poolieok :)00:32
pooliedon't need to hang around on my accoutn00:32
poolieif you didn't already do it (i haven't read all my mail) i'm going to forward some screenshots to the list00:32
pooliei'd like to continue the discussion there00:32
emmajanepoolie, I'm making slides explaining square dancing as an analogy for PHP. you're welcome to distract me. :)00:33
poolieheh :)00:33
emmajanepoolie, Oh. the screenshots went to the list this morning. there's been about 10 replies?00:33
lvhi dont understand the difference between bzr branch -r -5 . ../next; bzr pull . --overwrite -r -5 and bzr branch -r -5 . ../next; bzr uncommit -r -5 # could anyone please explain?00:33
lvhmaybe it's just because i havent slept in 24 hours :-D00:34
poolieare those two alternative sequences?00:34
lifelesslvh: the uncommit leaves the tree changes in your current directory00:34
emmajanepoolie, the two that I sent? one has the carousel and one is closer to the wireframe.00:34
lvhlifeless: Ah, whereas the former will properly pretend I never changed anything?00:35
poolieyou'll discard your working tree changes as well as the revisions00:35
lvhas long as 'discard' means 'move into the new branch' thats what I want :-)00:36
lvhbut im guessing thats what the bzr branch -r -5 does00:36
lifelesslvh: heres a better recipe00:37
lifelessbzr branch . ../next00:37
lifelessbzr pull . --overwrite -r -500:37
lifelessI have you a buggy recipe before00:37
lvhokay00:38
lvhthanks :-)00:38
poolielifeless: i wonder if we should remove the downloads for 2.0rc1?00:39
pooliewell done btw00:39
lifelesspoolie: that would be a good precautio00:40
lifelessn00:40
lifelessmaster: Exporting thorough delta revision 93606/133780 with 140/822/110 added/changed/removed files00:50
lifelessstill going...00:50
emmajanepoolie, the wifi keeps dropping me and i'm going to call it a night. please do eemail if I've missed anything.00:57
spivlifeless: pong01:00
pooliehello spiv01:06
poolielifeless, tangentially https://bugs.edge.launchpad.net/launchpad-registry/+bug/42290201:06
ubottuLaunchpad bug 422902 in launchpad-registry "want a way to lock/embargo releases and downloads" [Undecided,New]01:06
lifelessspiv: hi; see the list, and my question about tests :)01:06
thumperrockstar: how to you create a new pipe and take the uncommitted changes?01:08
* spiv looks01:08
spivoh, the question about tests is in scrollback, not on the list?01:12
lifelessyes01:12
spivSomething in per_interrepository I think.01:14
spivI think .test_fetch.test_fetch_parent_inventories_at_stacking_boundary (and similarly test_fetch_parent_inventories_at_stacking_boundary_smart)01:15
poolieigc, +1 to you trying to improve the installer01:21
jelmerpoolie: yep, somewhat01:21
igcpoolie: I'll be off irc for a while, learning InnoSetup & reviewing how the current installer hangs together01:21
poolieit's probably redundant to tell you so but please document or script it so we can reproduce it01:21
igcpoolie: call me re the content filtering stuff when you want01:21
pooliei think a big problem here is that this is complex and manual, and requires building up state on a particular machine01:21
poolieunless lifeless wants help with 2a bugs i'm going to do that today01:22
poolieok i will01:22
poolies/that/content filterign01:22
pooliespiv, ^^ that's what i had to say01:22
pooliehow about you?01:22
igcpoolie: there's 2 patches related to content filtering submitted yesterday for review so starting with those might be good01:22
igcpoolie: sure, I'll write things up01:23
igcbbl01:23
pooliekk01:23
poolieigc there is a wiki page about it01:24
poolieand john said he sent mail to canonical-bazaar recently01:24
lifelesspoolie: I have an errand to run in crows nest (my memory); leaving for that shortly.01:24
pooliek01:25
pooliewe can do lunch if you want01:25
poolieigc, also, i'll leave it up to you where you want to experiment01:25
pooliebut at some point we need all the dependencies on an ec2 machine01:25
poolieso, maybe it would save time to do it now...01:26
poolieotoh if you need to experiment it may be easier to do it locally01:26
pooliei'll send you the rdesktop command anyhow01:26
igcpoolie: I just want to make it work locally first01:26
igcpoolie: I saw the doc re ec201:26
pooliek01:27
pooliei have some changes locally01:27
spivpoolie: about to ask for reviews for the chk roots-only commit_write_group check;01:27
poolieas far as using just a single account etc01:27
spivI'm then going to unshelve the changes I have for testing for all relevant chk keys and work on that, the prototype appears to function.01:28
poolielifeless: is there anything i should do on 2a?01:28
pooliei guess primarily, do you think all those failures have the same cause?01:29
lifelesspoolie: try my patch01:29
lifelesspoolie: see if it addresses the error you had]01:29
pooliegood idea :)01:29
mtaylorlifeless: wow. I _really_ love silent mode in automake 1.1101:31
lifelessmtaylor: :)01:31
lifelesspoolie: checking it is on my todo but its easy to parallise on01:31
lifelesshttps://code.edge.launchpad.net/~lifeless/bzr/bug-422849/+merge/1102301:31
pooliesure, that's just the kind of thing i was looking for01:31
rockstarthumper, I shelve the changes, add-pipe, and then unshelve.01:46
thumperrockstar: ok02:08
thumperanyone know why we get UnexpectedStderr: Unexpected standard error from subprocess: warnings.warn("%r was gc'd while locked" % self.repr) ??02:26
thumperI think the UnexpectedStderr may be ours (LPs) but I'm not sure02:27
pooliehi02:39
pooliethumper: i've never heard of UnexpectedStderr02:39
pooliebut the warning is ours02:39
poolieum02:39
pooliei thought we got rid of them02:39
thumperpoolie: the UnexpectedStderr are probably our checking of the bzr process for pulling02:39
poolieif it's your code calling into bzrlib you're probably missing a try/finally: thing.unlock()02:39
mwhudsonthumper: generally those warnings are associated with other branches that failed to pull02:40
thumperpoolie: we aren't getting it all the time, just a few times02:40
pooliemm02:41
mwhudsonfor a while, all loom branches did that, but i think that's fixed02:41
poolieso i'd speculate that either in the puller code or bzr02:41
pooliesomething is unlocked normally but not after an exception02:41
lifelesspoolie: did it fix your issue02:47
lifeless?02:47
lifeless<gone/>02:48
poolielifeless: that seems to have fixed it02:55
spmpoolie: recognising this is a bit of a "how long is a piece of string?", are we expecting to try again on the bzr upgrade to 2a today? Is cool either way, just wanting to get an idea on timing etc.02:55
pooliespiv, what do you think of http://sourcefrog.net/tmp/20090901-341535-eintr.diff02:55
pooliespm, if lifeless's patch, which i'm testing now, lands02:55
poolieand it's the top priority02:55
pooliethat should unblock us redoing the upgrade02:55
spmexcellent!02:55
poolieto find the next bug :)02:56
poolieor not02:56
spmha02:56
spivpoolie: wow, that seems a bit extreme somehow.  But it's probably correct.03:02
spivAssuming it does actually work when you test it manually :)03:02
poolieit does03:02
pooliesee https://bugs.edge.launchpad.net/bzr/+bug/34153503:02
ubottuLaunchpad bug 341535 in bzr "hpss SmartMedium doesn't handle eintr" [Medium,In progress]03:02
pooliewhere i also say i'm on the verge of making a decorator object that wraps these methods03:03
pooliedo you know of one?03:03
pooliethat would also make it more testable, though03:03
poolie:/ it's one of those things where unit testing it does not give great assurance that it actually works03:03
pooliespiv, what do you think?03:05
poolieif i make a class i just need to make sure it's used everywhere03:05
pooliei guess it can be stuck into the constructors fairly easily03:06
ricardo_brhi people! I'm using version 1.6.1, is there any command that I can see the files that changed between the revisons x..y?03:08
spivHmm, I'm torn.03:08
spivDecorating the socket/pipe/etc object is probably cleaner, but on the other hand your patch is nice and straightforward.03:09
bob2ricardo_br: bzr diff -r x..y | diffstat?03:10
poolieor 'bzr status -r x..y'03:10
bob2oh, neat03:10
pooliespiv, if i thought there would be more cases then i'd do the object03:10
pooliericardo_br: you might like to upgrade though, that's a bit old now03:10
poolieis that the package in a distro?03:10
spivIf the underlying objects weren't private to the SmartMedium classes, that would be a pretty strong case for decorating.03:10
spivpoolie: right.03:11
poolieit's true it's more than 3 cases, strictly speaking03:11
pooliemaybe i'll propose just this for now03:11
spivpoolie: So, I'm happy with the patch as is.  If you feel like writing the decorator I'm happy to look at that page too :)03:11
spivBut it's not a big deal to postpone that refactoring indefinitely.03:11
ricardo_brpoolie: I think I've installed it through ubuntu apt-get install03:13
ricardo_brI've changed one file in the rev 61 and another file in the rev 62, when I run "bzr diff -r61..62" I can see only the changes in the file in rev 6203:16
pooliericardo_br: you'll need -r61..63 then03:17
pooliesorry03:17
poolie-r 60..6203:17
pooliethe previous one is "the changes from 61 to 62"03:17
pooliespiv, <https://code.edge.launchpad.net/~mbp/bzr/341535-eintr/+merge/11029> but it's not urgent03:19
ricardo_brpoolie: thanks! it worked. Just another question, can I see only the file names?03:20
=== cprov is now known as cprov-zzz
poolierather than what happened to them?03:23
poolieum03:23
poolienot super easily, but you could use a shell script03:23
pooliebtw newer versions for ubuntu are in https://launchpad.net/~bzr/+archive03:23
pooliespm btw the patch i referred to above is https://code.edge.launchpad.net/~lifeless/bzr/bug-422849/+merge/11023 and bug 42284903:25
ubottuLaunchpad bug 422849 in bzr "Incorrect conversions in 2.0rc1 and bzr.dev" [Critical,In progress] https://launchpad.net/bugs/42284903:25
ricardo_brthanks for the tips poolie and bob2, I'll checkout the new versions03:26
pooliejust fyi; we'll ping you when we get closer03:26
spmpoolie: did you mean me? or andrew? I assume the latter.03:26
poolieno, you03:26
pooliethat's the one that's blocking the upgrade03:26
poolieyou don't need to do anything with it03:26
pooliejust in case you were wondering03:26
spmah, right. wit hthe plot now.03:27
johnf1What is the mailing list and bundle-buggy still the best for patches or merge request in launchpad?04:14
=== johnf1 is now known as johnf
jamjohnf: best is merge request04:57
johnfjam: and a separate branch per feature/bug fix?04:58
jamjohnf: generally04:58
jmlhey04:59
jamhey jml05:00
jmlif I wanted to do a patch _right now_ to stop Bazaar from treating directory removal as a conflict when the directory contains pyc files, how should I go about it?05:00
jamanyway, off to bed for me05:00
jmljam: g'night05:00
AfC1jml: doesn't .bzringore *.pyc mean that that problem goes away?05:14
AfC1bah05:14
=== AfC1 is now known as AfC
jmlhmm. does it?05:15
* jml tries science05:15
mwhudsonAfC: no05:15
mwhudsonit's the old "junk vs deliberately unversioned" chestnut05:15
AfCjml: I think fondly of science. Especially mixing the chemicals together and making them go phoof!05:17
jmlbut it's irritating me enough to do something about it.05:17
jmlthere, I just empirically verified that mwhudson is right.05:18
jmlAfC, well, in these enlightened times chemicals are entitled to do whatever they want in the privacy of their own home.05:19
=== thumper is now known as thumper-afk
jmlok, so git really is quite fast.06:15
johnfis there a way to create a branch of bzr inside launchpad without having to branch to my laptop and then push?06:25
spivWell, you could do "bzr branch lp:bzr lp:~johnf/bzr/foo", but that still goes via your laptop...06:27
spivIf you already have bzr on your laptop, it shouldn't be very expensive to do that push, though, because the branch will be stacked on lp:bzr.06:28
johnfspiv  as in 200MB traffic needs to go both ways or does everything happen on the server end?06:28
johnfahh it's the stacking that I don't have06:29
spiv(and even in the lp:bzr -> lp:~johnf/bzr/foo it should still stack, although I can imagine it would fall a fair way short of being full efficient as that case hasn't been tested much)06:29
spivYou don't?  Stacking should be automatic when you push to Launchpad, unless your local copy of bzr is in an old format?06:29
johnfyeah just realised my bzr.dev wasn't off launchad06:30
johnffixing that now06:30
johnfso if I branch from lp. then branch again on disk and then push to lp will everything remain stacked?06:31
vilahi all07:04
spmhey vila07:09
pooliehi spm, vila07:22
pooliespm, it looks like that patch will work but other stuff came up and we're not likely to attempt the upgrade today07:23
pooliewe'll probably merge it and may try it tomorrow07:23
spmfair enough, shame in a way :-/07:23
pooliejml, still around?07:23
jmlpoolie, yep07:23
pooliequick call?07:24
jmlpoolie, sure.07:25
jmlskype or pots is fine by me07:25
poolielet's see if skype will play07:25
lifelessbug 422849 is in pqm for 2.008:13
ubottuLaunchpad bug 422849 in bzr "Incorrect conversions in 2.0rc1 and bzr.dev" [Critical,In progress] https://launchpad.net/bugs/42284908:13
vilalifeless: trivial enough to land without review ? I ask because I read the related mails first thing this morning (before hitting enter on 'bzr upgrade', pfew, lucky me) and couldn't find the merge proposal...08:20
vilaand didn't notice the linked branch until now :-/08:22
vilalifeless: right, so the patch is indeed trivial and was in the bug comments, good08:23
vilalifeless: yet.... fixing a critical bug without adding test[s]... :-/08:25
lifelessvila: it was reviewed :)08:25
vilaok08:25
lifelessvila: I want tests; I'm not done on the bug. If you felt like writing some test during your day that would rock; otherwise I hope to get something that triggers it cleanly etc tomorrow.08:26
vilaHa great08:26
lifelessvila: missing tests shouldn't prevent us fixing a problem!08:26
vilasure08:26
vilaobviously I missed some discussion, no worries, just catching up08:27
vilahappy to see we agree on all fronts :)08:27
vilaand above all thanks for fixing it since, well, I *was* about to upgrade locally :)08:27
lifelessmy pleasure :)08:28
vilathat close: ''08:28
lifelesspoolie: spm: I think we should wait for bzr.dev nightlies to have this fix before executing on 2a for bzr.dev08:28
lifelessDoing otherwise will make it harder for people to be sure they can upgrade cleanly themselves.08:28
lifelessvila: your test spike looked interesting08:30
vilalifeless, spm: exactly why I asked to keep notes about what version was used to upgrade. (And I don't pretend my crystal ball warned me, it was just,,, well, prophylactic acting)08:31
lifelessvila: I look forward to seeing it in action.08:31
vilashell-like you mean >08:31
vilashell-like you mean ?08:31
lifelessvila: I'm hoping that it will be able to be totally simulated in memory :)08:31
lifelessyes08:31
vilaMany threads are converging in the right direction I think, I like jam ideas about MemoryTree and branch builder, I really think we should upgrade them08:32
lifelessso do I08:32
lifelessI think we should build our testing safety net safety net first08:32
vilaI mean, add the missing features to MemoryTree and branch builder so they can be used more broadly08:32
lifelessI see the most important things being some additional glue and reporting08:33
lifelessso we can answer questions like 'how important is this test', or 'these tests'08:33
lifeless'if I delete this test, what coverage do I remove'08:33
vilaoh yes...08:33
lifelessand 'what tests add no coverage today?08:33
lifeless'08:33
vilaan important milestone to reach is to know that all code is covered (even if only once), I have no idea where we are today08:34
lifelessnow, we'll need to think about the answers to those questions, but I think you'll agree that they are very interesting questions08:34
vilaooooh yes08:34
lifelessandrew wrote a coverage plugin08:35
lifelessand there are some coverage analysis tools in the python testing community08:35
lifelessAt the risk of sidetracking you :)08:35
vilawe have a --coverage option, I need to use it more :)08:35
vilawell, not only me :)08:36
lifeless--coverage is the plugin08:36
lifelessI think08:36
vilanah, bzr help global-options08:37
vilaavailable in every good bzr :)08:37
lifelessah no08:37
lifelessneeds to be per test08:37
lifelessor you can't answer those questions08:38
lifelessfigleaf sections can do it08:38
lifelessor per test decorators08:38
lifelesswith only a moderate failure mode for tests of lsprof08:38
vilaso, to run test in isolation I use selftest-by-n.py: http://paste.ubuntu.com/263626/08:43
vila./bzr selftest --list >all-tests08:43
vilaselftest-by-n.py --starting-with --in-tmp --number 1 all-tests08:43
vilaI didn't play with it for months but ran it again last time we discussed about that, I need to analyse a bit more, but I already have some leaks identified (the meacs-bzr-send.xxx.el in /tmp for one)08:44
vilas/meacs/emacs/08:45
vilaand the bzr-limbo ones !08:45
lifelesspastebin.com/f600ce04008:45
lifelessthats much/most of my sketch08:46
lifelessenjoy08:46
vila:-D08:46
lifelessIt needs:08:46
spivYeah, the existing --coverage is pretty basic.08:46
lifelessbetter data mode08:46
lifelessand thats about it08:47
spivper-test collection/reporting would be neat.08:47
lifelessthe better model I think would be best to try next is:08:47
vilalifeless, spiv: My gut feeling is that trying to de-tangle coverage data is... NP-complete, I'd rather generate coverage data for each test in isolation and work hard to avoid redoing it uselessly08:49
lifelessfile_line:file_line_id  file_line_id:testid_id  testid_id08:49
lifelessvila: I agree; thats what my plugin does08:49
vilaoh08:50
vilabut then you don't need to go down to lines, you can just keep 'test -> modules+'08:51
lifelessspiv: --lsprof-tests gives you stome per test stuff today; no consistent reporting08:55
vilastome ?08:57
lifelesssome08:58
vilaha.08:58
NEBAP|workcan someone point em to technical information about the default file format that is used by bazaar? I just want to create a little reader application ..09:01
NEBAP|works/em/me09:01
poolielook at the developer notes in doc.bazaar-vcs.org09:01
poolievila, i might sign off soon09:04
lifelessvila: per line gives you per function when combined with diff09:04
poolieis there anything you want to talk about?09:04
lifelessvila: which gives you 'run the tests for this change'09:04
vilalifeless: If it works, great ! My fear is that it's trickier to get right than just: run these tests because one of their associated module has changed09:05
vilapoolie: nothing in particular, I think I've got enough feedback on shell-like tests to make a more concrete proposal (without putting too much features yet anyway, mostly doc, look at doctest matching and some polish)09:06
vilaOverall, the intent is to have something that you can copu/paste your shell session, lightly edit it and a get a runnable test09:07
lifelessvila: the function matching code is done and working09:07
vilas/copu/copy/09:07
lifelessvila: its just an efficient index that is needed09:08
vilalifeless: That's how I understood it09:08
vilalifeless: err wrong context :)09:08
vilaI thought you were talking about doctests :)09:08
lifelessnooo09:08
lifeless31K revisions of netbeans to go09:09
poolievila, cool, i was happy to see that posted09:09
igcpoolie: vila: well done on your progress on the 'shell test' stuff09:09
vilapoolie: I thought so :-) The trigger was when you said: 'could be used for merge resolution tests' to which I nearly replied 'Will you stop reading my mind ! '09:10
igcvila: I'm yet to look at it but it's very much along the lines of what I've been dreaming of09:10
vilaigc: not for you ! You're testing at far too high levels already :-P09:11
igcvila: I'm sure when it's ready it will help casual contributors write more tests more easily09:11
poolieigc, something nontechnical came up today so i didn't do anything on filtering :-(09:12
pooliesorry09:12
pooliemaybe tomorrow09:12
igcvila: :-)09:12
igcpoolie: np09:12
* igc dinner09:12
pooliegood idea09:12
vilaigc: yup, casual contributors is definitely the target09:12
NEBAP|workonly thing I found is http://doc.bazaar-vcs.org/latest/developers/packrepo.html which didn´t help enough ..09:13
NEBAP|workare there no more detailed docs about the file system?09:15
NEBAP|workor is there already a php script that is able to read bazaar branches?09:16
lifelessNEBAP|work: I believe folk have written php code to call out to bzr09:22
lifelessNEBAP|work: I wouldn't recommend reimplementing the disk format: there is a chunk of code and logic there, its neither small nor simple09:23
NEBAP|worklifeless: yeah09:23
NEBAP|worklifeless: I just want to enable my page to read the format to easily implement some "open source" code viewing ..09:24
NEBAP|workand I didn´t find any implementations in php09:25
lifelessbug fix -> bzr.dev09:34
vilalifeless: you may want to review the patch I'm preparing about the leaks to see why you didn't catch these ones (that's for tomorrow)09:34
lifelessvila: I haven't written code to catch os calls yet09:36
vilalifeless: at least I *think* you didn't catch them, but since your related patch hasn't landed yet(09:36
lifelessvila: like subprocess :P09:36
lifelessvila: I haven't had time to progress that spike for a few days09:36
lifelessvila: feel free!09:36
vila:-)09:36
vilanot sure the ones I'm catching are in the scope, so far that's tmp files created explicitly but not cleaned up09:37
lifelessseriously though, I think the next step is more protection and or coverage09:37
lifelessafter that run-changed-code09:37
lifelessthen back to isolation09:37
lifelessvila: my plan there is: hook into file() and open() and unlink()09:38
lifeless+ rename09:38
lifelessa create file attempt outside TEST_ROOT and /tmp is an error09:38
lifelessditto read09:38
lifelessa create file / dir in /tmp that isn't later cleaned up is an error09:38
vilaTMPDIR not /tmp, just in case :)09:39
lifelessclean up can be mv into TEST_ROOT09:39
lifelessor mv and delete within TMPDIR09:39
vila"isn't later cleaned up" is the tricky one since you can't trap it early, you can only whine at tearDown time09:40
vilalifeless: but that should work and be quite pleasant, I wonder if I should leave these leaks to server as easy preys...09:41
vilas/server/serve/09:41
vilawell, they are there already, they can be fixed but not merged where they are needed.09:42
NEBAP|workthere is no php script that is able to read a bazaar branch, the only thing I found is one that executes some shell calls to bazaar, which won´t work on most servers ..09:53
NEBAP|workbut I found out that some other guys also are searching for a php script to read their branches ^^09:56
NEBAP|workso09:57
lifelessNEBAP|work: I would estimate 3-4 weeks solid work to reliably read the data format, including race conditions etc.09:58
NEBAP|work^^09:58
lifelessNEBAP|work: If you are up for that, well great.09:58
NEBAP|workhmm09:58
NEBAP|workotherwise maybe no one will start09:59
lifelessStart a project; study the bzr code, and when the code is ambiguous, we can provide more insight.09:59
NEBAP|workok09:59
lifelessBut! I think its much better off using e.g. bzr's xmlrpc server09:59
lifelessor shelling out09:59
lifelessthan reimplementing.09:59
NEBAP|workhmm09:59
NEBAP|workthe problem is that most php server doesn´t allow system calls09:59
NEBAP|works/server/servers10:00
NEBAP|workso10:00
lifelessNEBAP|work: you'll need C to read the file content anyway10:00
NEBAP|workreally?10:00
NEBAP|workwhy?10:00
lifelesscompression logic is slow in high level languages10:00
lifelessand bzr data is very very tightly compressed10:00
NEBAP|workhmm10:00
NEBAP|workthat might be a problem10:00
NEBAP|workfor me it will only work if I just use php10:01
NEBAP|workso10:02
lifelesscan you just export the files you want from bzr10:02
lifelesse.g. using bzr uplaod10:02
NEBAP|workthere is no detailed documentation of the file format?10:02
NEBAP|workyes10:02
NEBAP|workthought of that10:02
NEBAP|workbut uploading some php files (sources) will end up with problems maybe10:03
NEBAP|workand it would be really cool to push a new rev and be able to read the branch using php10:03
lifelessthere are detailed docs of various layers, many of which are part of the source10:03
lifelesse.g. pydoc bzrlib.bzrdir10:03
lifelesswill tell you about the bootstrap files10:03
lifelessthere isn't an 'implementors guide'10:04
NEBAP|workk10:04
NEBAP|workso10:04
lifelessyou *will* have to read through and understand the code in bzrdir, repository, repofmt/*{or the formats you want to understand}, branch, versionedfiles, tree, revisiontree10:04
NEBAP|workI´ll start by checking the bazaar sources10:04
lifelessinventory10:04
lifelessand maybe more10:04
NEBAP|workthanks10:05
NEBAP|workthat will give me a starting point :)10:05
lifelessgood luck10:05
NEBAP|workthank you :)10:05
jelmerjames_w: hi!10:13
james_whey jelmer10:13
james_whow's it going?10:13
vilahey james_w jelmer  :)10:13
vilajelmer: welcome back !10:13
james_whey vila10:13
jelmerHi Vincent!10:14
jelmerjames_w: I saw you committed bzr 1.18 in the bzr branch - did you find somebody to sponsor for Debian yet?10:15
james_wI didn't10:15
jelmerjames_w: Ok, I'll have a look at uploading then10:15
james_wI need to fix bzrtools10:16
james_wand you may want to confirm what I did with bzr-svn10:16
vilajelmer: I built packages for bzr-gtk but I didn't know how you proceed for debian, keep me in the loop when/if you need to update the related branches10:16
james_wthere's bzr-gtk and loggerhead as well, but I don't think they are version locked10:16
* jelmer nods10:17
vilajames_w: bzr-gtk is version "locked" on the bzrlib API, so it's ok for bzr-2.010:17
vilasince the API didn't change10:17
=== cprov-zzz is now known as cprov
NEBAP|worklifeless: which is the default format? knitrepo or pack_repo?10:19
vilaNEBAP|work: groupcompress_repo10:20
vilaNEBAP|work: at least it will as soon as 2.0 is out10:20
NEBAP|workah ok10:21
jelmerwhat's the plan for 2.0 exactly? Just those two blocker bugs?10:21
NEBAP|workhow long will that take? I´ve seen there is much traffic in the 2.0 branch ^^10:21
vilaAIUI 2.0rc2 should be a couple of days away10:22
NEBAP|workcool10:22
vilalifeless: fix landed in 4.666, that was really an evil bug :-D10:24
=== thumper-afk is now known as thumper
lifelessyes10:28
lifelessaliasing10:28
lifelessit would be nice if python had a 'final' facility.10:29
lifelesslike C/C++ const | java final | most any functional language10:29
bob2or a pyflakes check10:29
lifelessbob2: can't catch all the evil I can do10:30
bob2nothing can10:30
lifelessbob2: but yes it could help10:30
lifelessSA isn't a common python idiom though10:31
lifelessso it would need to be brought in gradually.10:31
lifelessjames_w: ping11:33
james_whi lifeless11:33
lifelessdid you see my WARNING mail to bazaar@11:33
lifelessif not, go read it :P11:33
lifelessI'd like to ensure that the bzr nightly builds have that patch in them, asap.11:34
lifelessIIRC you coordinate those?11:34
james_wyeah11:34
james_wwhen was the bug introduced?11:34
lifeless24th or so, IIRC11:34
james_wand the easiest way to do that is to get it in to trunk11:34
lifelessthe patch is in trunk11:34
james_wthe nightlies aren't affected then11:34
james_wthen the nightlies pick it up11:35
james_wor is that "run them now please"?11:35
lifelessjames_w: you haven't been building for a week?11:35
lifelessjames_w: its 'run them now please, and shepard them through'11:35
james_wno11:35
james_wok11:35
lifelessI'm sure they would build normally anyhow11:35
lifelessjust want personal assurance that it succeeds, as this is a blocker for doing the bzr upgrade to 2a11:36
james_wsure11:36
lifelessthanks hugely11:36
lifelessif there is a problem, can you mail poolie and I11:37
james_wthey are not fully automated yet11:37
james_wsure11:37
lifelessand I'll fix my tomorrow am, hopefully in time to catch you or [can anyone fix things if it breaks] ?11:37
james_wI don't want to automate them on my end without making the tools to do so available to everyone11:37
james_wanyone can upload to the nightly ppa that is a memeber of the team11:38
james_wI forget who that is now11:38
james_wyou, John, Martin11:38
lifelessok cool11:38
lifelessanyhow, it passed PQM11:38
james_wthey are running now fwiw11:39
lifelessI'm sure there will be no difficulty11:39
lifelessthanks!11:39
lifelessI'm past EOD myself, so I'm now going to forget about this until after-sleep11:39
james_wsure11:39
james_wgo sleep11:39
james_wjelmer: bzrtools fixed on bzr.debian.org so available when you want to upload 1.1811:43
james_whmm, not in bzr.dev yet11:54
james_wah, not on LP yet11:54
CameronP_Hi there i was wondering if I could get some advice on repository layouts..12:23
lifelessjelmer: so you use doap?12:34
jelmerjames_w: thanks!12:37
jelmerlifeless: yeah, occasionally12:37
jelmerlifeless: I try to keep my doap files up to date, but I don't always use doap yet where I want to.12:37
lifelessjelmer: you might like to reply to my doap-interest post12:38
jelmermainly because the tools are incomplete12:38
jelmerlifeless: I'll have a look12:38
lifelesswithout dependencies its hard to write useful tools beyond toys IMO12:38
lifelessits relationships make foaf useful12:38
jelmerlifeless: it depends on what you want to use it for I guess12:40
jelmerif you want to use DOAP to help with packaging, I agree dependencies are a need12:40
lifelessjelmer: relationships let you build a package spiderer12:41
lifelesswithout that its just another way to write a readme and news file :)12:41
jelmerlifeless: true, though a parseable one12:48
CameronP_Do you guys help out newbs to baazar?13:05
spivCameronP_: yes, although sometimes the channel is just quiet.13:08
spivCameronP_: a more specific question might attract more answers13:08
CameronP_Yeah sorry after that I just worked it out myself!13:14
CameronP_I was just having issues creating shared repositories13:14
spivCameronP_: Heh, ok :)13:19
CameronP_spiv, If I want to get the latest version of a branch, but dont want any history (eg for publishing to web server) is the bets way via the --lightcheckout ?13:47
CameronP_--lightweight i mean13:47
lifelessCameronP_: to publish to a webserver, use bzr upload13:50
lifelessits a plugin13:50
lifelessand designed for web publishing13:50
awilkinsDoes that just do a "straight" upload each time or does it rsync or do incremental updates?13:51
CameronP_oh ic...13:53
CameronP_spiv: Thanks I'll take a look13:53
spivawilkins: incremental, I believe.14:00
spivawilkins: see http://bazaar.launchpad.net/~bzr-upload-devs/bzr-upload/trunk/annotate/head%3A/README14:02
garyvdmHi - I'm haveing to push some branches (in 2a format) via a slow ftp connection. It keeps on repacking the remote repo. This is realy irritating. Is there any way to disable this, and what would the effects of that be?14:16
spivjam: around?  I want to check which email address is good for you atm, as the usual one seems to be bouncing.14:17
CameronP_spiv: What is meant by JUst the working tree for upload14:17
CameronP_eg say I've create a shared repostiory repository14:17
CameronP_and then ive created a project called xyz14:17
CameronP_and i only want to "upload" via the plugin just the project xyz14:18
spivgaryvdm: if do a manual pack, it'll fully pack the whole repo which will have the side effect of delaying large autopacks for quite a while.14:18
spivgaryvdm: there's no option for disabling autopacks entirely that I know of14:18
spivgaryvdm: the effects however would be a steady slowdown in read speed when accessing the repo, especially over a network.14:19
garyvdmspiv: I don't really understand what pack does, but maybe the autopack policy needs to be different for dumb remote to local, and smart remote.14:20
spivCameronP_: if you want to just upload the files, no history, to a webserver, then the bzr-upload plugin is probably the best tool.14:20
spivCameronP_: whether or not you have a shared repo doesn't affect that.14:21
CameronP_yeah im confused i think14:21
CameronP_the problem is that the central repo is the same server the website is on14:21
CameronP_so my understanding isnt fitting if you know what i mean14:22
CameronP_I havent worked out how to install it yet :(14:22
spivgaryvdm: it combines many small pack files into a single pack file, which is already beneficial in itself... for 2a there's the added benefit that having more content in one file gives better compression.14:22
spivgaryvdm: autopacking generally triggers ~10 writes to a repository (a single push would count as one write in this context, assuming there was something to push, as would a single commit).14:23
spivgaryvdm: crudely, autopacking means that by the time you've committed hundreds or thousands of times you'll still only have a few (say <20, and often <10) pack files, rather than hundreds or thousands.14:25
spivSo it's small, regular doses of pain now to avoid worse pain later :)14:25
garyvdmspiv: I see. I'm going to take a look code to see if I can hack it to make it repack less often for dumb remote transports.14:26
lukswell, 1000 => 10000 is not very regular14:26
spivCameronP_: Well, you could "bzr upload" to a local directory just as easily as to a network local.14:26
spivgaryvdm: that won't really help14:26
spivgaryvdm: in that when it finally does trigger, it'll just be much much worse.14:26
spivBecause it'll have more to do.14:26
garyvdmspiv: I push to these branch often, and then work on them on the machine that I'm pushing to locally.  It can repack when I'm on that machine...14:27
garyvdmCameronP_: Have you come right with installing bzr-upload. Maybe I can help you.14:28
spivCameronP_: you can probably install that plugin simply by doing "bzr branch lp:bzr-upload ~/.bazaar/plugins/upload", although you may need to make the ~/.bazaar/plugins dir first.14:28
CameronP_yeah what i did was go into usr/lib/python2.4/site-packages/bzrlib/plugins/14:29
CameronP_and did a bzr branch https://launchpad.net/bzr-upload14:29
CameronP_which made an upload dir in the plugins dir14:30
spivCameronP_: you may need to make sure its 'upload', not 'bzr-upload' in that plugins dir.14:30
CameronP_spiv: thanks that fixed it14:31
CameronP_well it got the command working14:32
CameronP_so now, this is where i get confused14:32
CameronP_im sitting in my public_html dir where i want to download to14:33
CameronP_and issuing the command bzr upload /home/xyz/repository/courses14:33
spivI think you have the usage backwards :)14:33
CameronP_Yep14:33
CameronP_i think your right...14:33
CameronP_heh14:33
CameronP_so how does it know where to download the files to?14:34
spivJudging from the README, you want to be in /home/xyz/repository/courses and do "bzr upload ..../public_html"14:34
CameronP_AHHHH14:34
CameronP_noob mistake, thanks a lot14:34
spivIt would probably be harder to make that mistake if the target was a network location :)14:34
spivAs most systems don't let you "cd sftp://somehost/foo" ;)14:35
CameronP_yay it worked ;) Thanks spiv14:35
CameronP_now it has that cool option of auto updating... that will be great14:37
garyvdmCameronP_: bzr upload --auto :-)14:38
moldyhi14:52
CameronP_ah dang :(14:55
CameronP_now upload has caused an error14:55
CameronP_i found a patchfor it, but it should have already been fixed in that version i downloaded yeah?14:55
CameronP_https://bugs.launchpad.net/bzr-upload/+bug/31268614:55
ubottuLaunchpad bug 312686 in bzr-upload "Error "you cannot specify None for the display encoding" on commit" [Undecided,New]14:55
CameronP_he has a diff file, there is, that the same as a patch file?14:57
CameronP_so can i use like patch -p0 < xyz.diff14:57
=== SamB_XP_ is now known as SamB_XP
moldywhat's the recommendation for migrating an svn repo that uses svn:externals?15:04
jelmermoldy: there isn't a really good solution15:07
jelmermoldy: nested trees will provide similar functionality15:07
jelmeruntil then you can work around the missing functionality by using config-manager of scmproj15:08
CameronP_Well I patched it, but now getting another error, basically it looks like its returning text back to tortoisebzr15:08
CameronP_so  tortoisebzr is throwing an error15:08
moldyjelmer: well, basically i just want the data and the history, the externals can become normal directories15:09
jelmermoldy: in that case, you can just convert the containing tree to bzr15:10
jelmerand then use "bzr join" to import the external branches15:10
moldyjelmer: i'm trying :) struggling with bzr-svn right now15:10
moldyjelmer: which tool do you recommend?15:10
jelmermoldy: To import from svn ? bzr-svn15:11
jelmermoldy: Should work just the way you would use bzr itself15:11
moldy    from bzrlib.plugins.svn import format15:13
moldyImportError: cannot import name format15:13
moldyhmmmm15:13
jelmermoldy: what version of bzr-svn are you using?15:15
moldyjelmer: 0.6.415:15
moldyjelmer: with bzr 1.15.115:15
bebrawhow can i revert a branch to the state of the trunk?15:19
jelmermoldy: hmm, that's odd15:20
moldy0.6.1 seems to work better, now i just need to install subvertpy15:20
jelmermoldy: 0.6.4 also needs subvertpy15:20
jelmerthat could explain the other error15:21
moldyjelmer: hm, maybe15:21
moldyi don't think so, though15:21
moldymy bzrtools seems to be lacking something that 0.6.4 requries15:21
jelmerbzr-svn doesn't depend on bzrtools15:21
jelmerin any way or form15:21
moldywait, let me check again15:22
moldyah right, i mean bzrlib15:22
moldyfrom bzrlib.plugins.svn import format15:22
moldymy bzrlib.plugins has no "svn" module15:22
jelmerthat's a red herring, there's something else that's failing15:23
jelmersuch as subvertpy not being loadable, that's causing the svn plugin to be unloadable and thus be "msising"15:23
moldyit isn't there, i looked at it15:23
moldyfind /usr/lib/python2.6/site-packages/bzrlib/ -name "*svn*" --> nothing15:24
jelmermoldy: that's not the only location searched15:25
jelmermoldy: ~/.bazaar/plugins is included as well, for example15:25
moldyhuh? how does it pull that trick15:26
moldybzrlib.plugins.__file__ is __init__.py in the above directory, and it doesn't import anything15:26
bebrawnm. bzr branch to rescue :)15:27
moldy0.6.1 works when subvertpy is installed, 0.6.4 shows the same error as before15:28
CameronP_does anyone know how i  can get hte upload plugin to "forget" a directory in uploaded to , its saved  location is wrong15:29
vilaCameronP_: --remember15:34
CameronP_thanks vila, yeah auto unfortuantely breaks it :( what a shame15:35
CameronP_tortoise bzr that is15:35
vila?15:36
CameronP_when you have --auto on, and then you do a comit remotely, it fails as it returns stoutput back to tortise about it doing an auto update15:36
CameronP_so then it all gets broken15:36
vilaCameronP_: file a bug, I don't use tbzr myself and I'm not sure I understand what you're describing, but it sounds like something that needs to be fixed15:39
CameronP_Yeah, there is a  bug open, and a guy posted a patch but it doesnt quite fix it15:40
CameronP_ https://bugs.launchpad.net/bzr-upload/+bug/31268615:40
ubottuLaunchpad bug 312686 in bzr-upload "Error "you cannot specify None for the display encoding" on commit" [Undecided,New]15:40
phinzehey #bzr, trying to write a small plugin this morning... two questions: is there a nice searchable API somewhere for bzrlib or does everyone just use the HTML version15:43
SamB_XPphinze: well, ideally the HTML version would *be* searchable ;-)15:44
phinzenumber two, i'm trying to see if a given path has changed given a ChangeBranchTipParams... can anyone point me in the right direction as to where to look in the API15:44
moldyjelmer: ok, thank you, bzr-svn seems to work fine now... now i just need to wrap my head around bzr join :)15:44
SamB_XPI actually tend to grep the bzr source a lot, personally ...15:44
phinzeSamB_XP: true... just inquiring as to what the active folks use for their reference15:44
phinzeSamB_XP: i'm not averse to that :)15:45
SamB_XPanyway, I was thinking maybe it wouldn't be that hard to rig some javascript up to search the docs?15:46
phinzeunfortunately i'm still such a newb to the base API that sometimes the source is not the fastest way15:46
=== deryck_ is now known as deryck
phinzeSamB_XP: true... a la rubybrain or something similar15:46
CameronP_does anyone know where bzr puts itself on install?15:53
phinzeso anyways i'm making my way through Repository and such, and i think i need to first generate some sort of delta given new_revid and old_revid15:53
awilkinsCameronP_: Which OS :-)15:53
CameronP_centos (rhel)15:53
awilkinsCameronP_: I think bzrlib goes in the relevant site-packages15:54
awilkinsCameronP_: I have a centos box under my clutches but I installed it from sources15:54
CameronP_same15:54
CameronP_i wondered where it went once installed15:55
awilkinsDo a15:55
awilkinscd /15:55
awilkinsfind -name bzrlib    # :015:55
vila'bzr version ' should tell you15:55
CameronP_bzrlib15:55
CameronP_ah ic im doing a locate on bzr15:55
awilkins"bzr" is a small script that calls into bzrlib15:55
CameronP_yeah thats what im looking for15:55
awilkinsIt'll be inside your python stuff somewhere15:55
CameronP_so i can run it from a script15:56
CameronP_yeh...thanks15:56
vilaCameronP_: 'which bzr' should tell you and then 'bzr version' will tell you all the details, also, try 'bzr plugins -v' to see what plugins are installed and where15:57
phinzeah get_revision_delta in Branch15:57
phinzethere we go15:57
=== kiko-afk is now known as kiko
CameronP_thanks vila15:58
phinzehmm what's confusing me now is in the pre_change_branch_tip state, the new_revid does not exist in the branch i have reference to16:06
LarstiQphinze: branch or repository?16:06
phinzewhich in a way makes sense, since it's *pre*, but i don't know how i can get a revision delta16:06
phinzeooo good call16:06
phinzedoesn't exist in branch, might in repository?16:06
LarstiQyeah16:07
phinzecool; will look in that direction, thx16:07
phinzebeautiful, now we're cookin with gas ;)16:08
moldyjelmer: i succesfully converted the containing repository to bzr now. can you give me a hint on how to use bzr join to join the former svn externals? i get errors about missing working trees16:11
jelmermoldy: clone the external URLs at the places where they need to be in the tree16:12
jelmerand then run "bzr join <path>"16:12
moldyjelmer: thanks, trying that16:12
moldyjelmer: seems to work, nice. thank you (i also had to add a "bzr co" on the cloned path)16:14
jelmermoldy: if you had a treeless repo, that might indeed be necessary16:16
moldyseems to be the default for svn-import16:17
jelmermoldy: ah, yeah - that's correct16:23
jelmermoldy: newer versions will tell you though that you need to run "bzr co"16:23
=== beuno is now known as beuno-lunch
moldyi see16:24
jelmer(the trees aren't automatically created since they can take up a lot of space if you have a lot of branches)16:26
moldyjelmer: can i safely delete those .bzr.retired.0 files that are created by the joins?16:26
jelmermoldy: yeah16:27
moldyok, thanks for your help16:28
tbradshaw_Hello there, as a quick question, are "push" and "pull" symmetric?  Is it safe to use them interchangeably, or is there more to a push than there is a pull?16:59
vilatbradshaw_: they are symmetric17:03
tbradshaw_ah, that's great.  Thanks, vila. :)17:03
vilagiven that you switch your source and target branches when using them I mean17:03
CameronP_gnight all..17:05
vilatbradshaw_: the only edge cases where you can observe differences is regarding updating the working tree, but bzr does a good job of warning you when that occurs17:05
vilaCameronP_: night17:05
tbradshaw_heh, yup, I just ran into that17:05
tbradshaw_and the documentation provide was solid17:05
tbradshaw_s/provide/provided17:05
vilaCameronP_: did you file a bug regarding tbzr/upload interactions ?17:05
vila....17:06
=== tbradshaw_ is now known as tbradshaw
moldyhow do i give a branch that uses a shared repo its own repo?17:08
tbradshawI ran into a bug in bzr 1.5 (the current version in debian stable) that prevents me from pulling17:08
tbradshawand so I had hoped to "cheat" but using the other side to push instead, where I'm using a newer version17:09
moldyah, got it17:12
moldyhmm, no :)17:13
tbradshawI'm up against this bug: https://bugs.launchpad.net/bzr/+bug/30709117:14
ubottuLaunchpad bug 307091 in bzr "Too many concurrent requests (dup-of: 246233)" [Undecided,New]17:15
ubottuLaunchpad bug 246233 in bzr "TooManyConcurrentRequests error when ssh connection fails (bzr crashes when pulling)" [High,Fix released]17:15
tbradshawis there a workaround?  Could I generate one of those merge files, scp over, that directive file17:15
tbradshawand then do it that way17:15
tbradshawalso, I had no idea I was going to trigger that bot17:15
fullermdmoldy: There's an option to 'reconfigure' to do that.17:15
moldyfullermd: i can also just branch from it, right?17:15
fullermdWell, if you branch in the repo, the new branch will be using the repo too...17:16
moldyfullermd: ok, but branching from outside will work?17:17
fullermdFrom doesn't matter; it's to that does.17:17
moldyok, i see17:18
fullermdI get the feeling that at least one of us is confused over what you're trying to accomplish, though.17:18
moldyfullermd: the big picture is that i am converting an svn repo, then re-organizing it17:18
fullermdWhat would that clal for switching a branch to using an internal repo?17:19
moldyfullermd: i want the former svn branches to turn into standalone branches now17:20
fullermd'k, but why?17:20
moldyi don't really have any special reasons17:21
moldydisk space is not an issue, and it seems easier, less to worry about17:21
=== beuno-lunch is now known as beuno
fullermdIt saves IO as well as disk space, since various actions no longer need to copy stuff around.17:23
fullermdAbout the only thing being standalone gains you in the general case is being able to mv it arbitrarily around the filesystem.17:24
moldywhich is nice, for the moment17:24
moldyi am juggling with several svn/bzr repos/branches, it's easy to get confused at the moment :) i can always setup a shared repo later if i want to17:25
jelmermoldy: try bzr reconfigure --standalone in the branches17:27
=== deryck is now known as deryck[lunch]
moldyjelmer: thanks17:33
mthaddonjelmer: not sure if you're aware, but there's a request from lifeless for us to upgrade PQM for bzr, but there's a new python-subunit dependency and we'd really like that in karmic before anything else (so we can backport to our repo)17:51
mthaddonjelmer: is that something you could help with?17:51
jelmermthaddon: I can request a sync I guess, that way we'll end up with subunit in karmic17:52
jelmerThat might require a freeze exception at this point though17:52
jelmerjames_w: ping17:52
james_whi jelmer17:53
james_wmthaddon: you need bzr68?17:56
mthaddonjames_w: I'm not really sure what that means... :(17:57
fullermdbzr written in ALGOL 68?17:57
james_wmthaddon: you need a specific revision of python-subunit?17:58
james_wpqm depends on something in subunit revisions 67 or 68?17:58
mthaddonjames_w: lifeless says in the RT that it depends on lp:~subunit/ubuntu/karmic/subunit/snapshots17:59
jelmermthaddon: ah18:00
jelmermthaddon: in that case you'd probably need a completely new package in Karmic since the one in Debian would be too old18:00
mthaddonjelmer: that's possible, yeah18:01
james_wjelmer: but debian is only one revision behind lp:subunit isn't it?18:01
jelmerjames_w: no, 1118:04
jelmerlp:subunit is at revision 7918:04
* james_w fails at subtraction18:04
jelmerbase 10 ?18:05
james_wmthaddon: but yeah, we can do it but it will require a freeze exception18:06
mthaddonjames_w: cool, thx18:07
james_wmthaddon: you don't want to rely on me for this though18:08
mthaddonk18:09
lamontjames_w: it's universe, no?18:14
james_wit is18:15
lamontlalalalalala what freeze?18:15
lamont:-)18:15
james_wheh18:15
james_wthey are free with exceptions at this point in the cycle18:15
james_wjust needs someone to explain why they want it and that they have done some testing18:16
lamontI mean,  I can go make sure that -release doesn't care... I assume it has a relatively short build time?  (like prolly minutes or less on i386/amd64)?18:16
james_wprobably18:16
lamont4 minutes on ia6418:16
lamontso... you've tested it and you're happy with it?18:16
james_wI haven't looked at it18:17
lamontah.  well, I expect _someone_ of the gang has, since it's a dep of sutff they're using all the time,...18:18
* lamont goes to prod the right people18:18
lamontjames_w: since lifeless is the one asking for it, I'm gonna assert that either it's good, or he's gonna fix it.  if you'll package it, I'd be happy to give it a quick blessing and upload it, or you can... ok?18:21
james_wI can upload18:21
james_whe's packaged it18:22
james_wit looks like, at least18:22
lamontthanks.  feel free to just do so.  RM slangasek said he won't kill me for shoving it that way18:22
james_wI'm just busy with other things right now, so don't want to get pulled in to this18:22
lamontah.  so it's already packaged?18:22
lamontand if we just bzr branch from the snapshot, it should be shiny?18:22
james_wwell, the branch referenced in the RT is package branch18:22
lamont\o/18:23
lamontmthaddon: you wanna play with the packaging and then I'll upload it?18:23
mthaddonerm, will give it a go18:24
phinzehmm so i'm trying to iterate on all new revisions in a pre_change_branch_tip hook19:00
phinzei've got my logic down but then realized it was only running on the last revision being pushed19:00
phinzeso i was trying to do something with range(params.old_revno + 1, params.new_revno)19:00
phinzebut i can't figure out how to convert each revno into a revid ... i ask the branch and it says "nope i don't have that revno just yet"19:01
phinzeneed revids so i can get trees/deltas19:01
phinzefrom the repository19:01
phinzeany help much appreciated... brb for a quick mtg :)19:02
beunoPeng_, I've *just* realized that your tshirt never got shipped19:17
beunoand, doing the process again, the world-wide shop doesn't let me ship to the US19:17
beunoand the US shop doesn't have LP tshirts19:17
beunogrrrrrrrrrrrrrrrrrrrrrrrrrr19:17
phinzeso i'm still working on detecting whether a given path is changed in a pre_change_branch_tip19:55
phinzei'm trying to figure out whether what i need be figuring out is how to iterate over each revision in the branch change19:55
phinzeor if i need to be figuring out how to get a delta that covers the entire span of the tip change19:56
phinzei've been learning a lot from the API docs, but it's taking me a lot longer at this juncture since i don't know which direction to look in19:57
Milo-hey, I have a project that has its versions controlled with bzr, I just did few uncommit operations, and I would like to lighten my repository slightly..20:15
Milo-is there a way of removing those old packs?20:15
Milo-without breaking anything20:15
Milo-heh google was faster20:16
Milo-or not20:16
phinzeMilo-: a little quiet in here today20:18
phinzecheck out https://bugs.launchpad.net/bzr/+bug/4375320:18
Milo-yup it is20:18
ubottuLaunchpad bug 43753 in bzr "uncommit option to remove revision data from repository" [Medium,Confirmed]20:18
phinzelooks like there's still no support as yet built in, but there's aplugin linked there20:19
Milo-I see20:19
Milo-nice, a plugin without readme :)20:23
phinzei believe the correct term is "self documenting" ;D20:23
Milo-no idea how to use that ...20:24
* phinze will pull it and take a quick look20:24
Milo-it just has one __init__.py file20:24
Milo-and reading it gives me no hint at all.20:25
phinzeah, you just drop the directory into ~/.bazaar/plugins/PLUGIN_NAME/__init__.py file20:25
phinzeso it looks like that path format ^^20:25
phinzeassuming you're on some sort of unix variant20:25
phinzeif you put it in the correct place, bazaar automatically loads it20:26
phinzeand you'll get "bzr remove_revision" looks like20:27
phinzehttp://bazaar-vcs.org/BzrPlugins <-- for more info on bzr plugins20:28
LarstiQphinze, Milo-: plugins are usually installed by `bzr branch plugin/url ~/.bazaar/plugins/pluginname`20:31
Milo-yes I see20:31
LarstiQwhere pluginname is a valid python identifier, ie, strip the leading 'bzr-'20:31
phinzewahey - there's even a convention ;)20:31
Milo-gah, it's bzr remove-revision :) not the way phinze said it :)20:31
* phinze blushes, tries in vain to cover up large NEWB letters flashing above his head :)20:32
Milo-I get error when I run that command20:33
Milo-well, can I just rm obsolete packs?20:36
beunoyes20:37
beunoI do all the time20:37
twoheyI was wondering if someone here knew how to setup email notifications for pushes / commits to a master branch.20:49
twoheyi'm pretty sure this is possible given https://lists.ubuntu.com/archives/bazaar-commits/20:49
twoheybut my googling failed to find documentation on how to fix this20:50
jamMilo-: don't delete the directory, but you can delete the *content* of obsolete_packs21:01
lifelessmoimoin21:01
Gooseybzr 1.17, "bzr help commands' encounters internal error. Fresh install. Anything I should look at?21:02
lifelessGoosey: windows?21:03
Gooseylifeless, ah yes. Windows XP21:05
Gooseyinstalled with the standalone installer21:05
jamGoosey: upgrade to 1.17.121:08
jamthere was a bug in the packaged version of one of the plugins21:08
jamnothing serious21:08
jamjust caused 'bzr help commands' to fail21:08
jam(and nothing else, IIRC021:08
Gooseyjam, sure enough. thanks21:18
lifelesstwohey: hi21:25
lifelesstwohey: the stuff on bazaar-commits is just done by devs installing bzr-email21:25
lifelesstwohey: if you're using bzr+ssh you can do the same on a server by installing and configuing bzr-email on the server21:26
twoheylifeless: thanks.21:27
twoheyis there documentation for bzr-email? I can't seem to find anything on how to set it up21:28
lifelessits a plugin, so that part is generic21:28
lifelessthen bzr help email21:28
twoheyshould have known, thanks21:28
lifelessjam: bug 40265221:31
ubottuLaunchpad bug 402652 in bzr "smart fetch for --2a does not opportunistically combine groups" [Critical,Fix committed] https://launchpad.net/bugs/40265221:31
jamlifeless: do you have a question?21:33
lifelessjam: IIRC I reviewed it21:34
lifelessjam: was there more to do before landing?21:35
jamlifeless: is that the groupcompress sort order portion?21:35
jamThat has landed in 2.0 and trunk21:35
lifelessah. the robert is awake but confused event21:35
lifelesscool, I'm glad that that has landed21:35
lifelessok, reviews for 2.0 done21:49
lifelessI thnk21:49
lifelesshi jam21:58
jamhey21:58
lifelessso, I've reviewed ians patch21:58
lifelessandrew is doing insert stream21:58
lifelessyou and I were bouncing group combining around21:59
lifelessare you still looking at group combining, or should I pull your progress and continue? Alternatively I could do the tests for the conversion bug that I deferred21:59
lifelessor pick up the content filtering patch and work on that21:59
jamI'm still working on the group combining22:00
jamI think I have a decent heuristic22:00
jamI just need to22:00
jam1) add tests and tie it into insert_record_stream22:00
jam2) Check that we don't end up with issues with Remote streams22:00
jamsince I think I determined that they will call insert_record_stream() 1/group22:00
jamwhich negates the benefit of what I'm doing22:00
lifelessI'll look at 2 for you now22:00
jamSo either we need to persist a group between groups22:01
jamor combine the stream into a bigger stream22:01
jamI favor the latter22:01
jamum....22:05
lifelessjam: I'll have it done in about 10 minutes I think22:05
jamlifeless: running "bzr selftest -s bt.test_repository.Test2a.test_autopack_unchanged_chk_nodes" is taking 5.3s for me22:05
jambut if I do "--lsprof-tests" it drops to 1.3s22:05
lifeless!22:05
jamsorry, 1.8s22:05
lifelesswow22:05
jamyeah22:05
lifelesslsprof makes our code go faster.22:05
lifeless[kidding]22:05
jamlifeless: same results if I do '--lsprof-file ,,foo.txt'22:06
lifelessthats not something I saw coming22:06
jamI guess I just dropped to 3.8s, and now 1.7s22:06
jamvery weird22:06
jamanyway, still 'tree.commit()' 20 times shouldn't really take that long...22:07
lifelesshmm, actually this may be trickier22:07
lifelessjam: locking is slow - are you on windows?22:07
jamyeah22:07
jamstill way too long, IMO22:07
lifelessI agree; not sure how to fix it. That test does want separate packs22:07
lifelessuhm perhaps suspend_write_group+resume_write_group22:08
lifelessor22:08
lifelessmemorytransport22:08
lifelessthe latter I think would be better22:08
jam        tree = self.make_branch_and_memory_tree('tree', format='2a')22:08
jam1325ms22:08
jamunless a memory tree is still backed by the real disk repo22:09
lifelessit is22:09
lifelessyou need22:09
lifelessself.vfs_transport_factory = MemoryServer22:09
lifelessand then that22:09
jam421ms22:10
jama decent improvement22:10
lifelessbetter indeed22:10
jamand that includes test-suite setup overhead22:10
jam312ms if it isn't the first test being run22:11
jamstill fairly surprising given what it should actually be doing... but at least it isn't terrible now22:11
lifelesschanging to TestCaseWithMemoryTransport would reduce some overhead too22:12
lifelessand further still when I fix bzrlib.config to not write to disk, and bzrlib.bzrdir.clone to not search unconditionally for repository policies (which is a reason we have to have the fake containing dir on disk)22:13
lifelessnetbeans export at 118K/133K22:14
lifeless103G22:14
jamouch22:15
lifelessit will be _very_ interesting to see what bzr makes of this tree22:15
lifelessI'm hoping it will be an eat-their-lunch event22:16
lifelesseither way we'll learn something22:16
lifelesshmm, this needs an object.22:16
lifelessrefactorating22:16
lifelessok: for remote streams22:17
lifelessI'm on it.22:17
lifelessno direct tests, and its going to need them now; I'm going to write one small test for this specific case, refactor, and push a branch for you to merge into your work.22:18
lifelessFirst though, I need a drink, bit dehydrated22:18
=== beuno is now known as beuno-on-vacatio
jamk22:18
lvhhi!23:05
lvhI'm wondering what the canonical (no pun intended ;-)) way of doing this in bzr is. Suppose I have a branch of a project, with commits A -> B -> X -> Y, up to B is pushed to launchpad23:06
lvhsomeone did a code review of B, and X, Y is the start of a bunch of new functionality23:06
lvhso, I guess moving X, Y into a new branch would make sense23:06
lvhlifeless helped with this, this command: bzr branch . ../positioning-gpsd; bzr pull . --overwrite -r -623:07
lvhnow, once I fix the things the review hinted at in the main branch I would like to have these changes also be done in the new functionality branch, of course23:07
lvhin git, i would do this with rebase23:07
lvhhow do i do this in bzr?23:07
lifelesscd new branch23:07
lifelessbzr merge old branch23:07
lifeless[review]23:07
lifelessbzr commit23:08
fullermdThat sounds like a pretty roundabout way of doing bzr branch -r-6 . ../p-g23:08
lifelessfullermd: no, its kindof the reverse23:08
=== kiko is now known as kiko-afk
lvhlifeless: wait, merge the old branch from the new branch?23:09
fullermdIt huh?23:09
lvhI do actually do this, right: bzr branch . ../positioning-gpsd; bzr pull . --overwrite -r -623:09
fullermdIt's the same thing, just directly expressing what's being done instead of backing and filling..23:09
lifelesslvh: you want the reviewed changed from the older branch in the newer branch ?23:09
lvhlifeless: Ah, I was thinking of not having two separate branches anymore, but yeah I gues sthat makes sense too23:10
lvheg have the branch just be a temporary container for commits23:10
lvhbut your way makes more sense, never mind :-)23:10
lvhlifeless: thanks again!23:10
lifelessfullermd: it is, except that the branch dirs are reversed the other way, which, when you're thiking abuot a problem a specific way is confusing.23:10
fullermdlvh: Well, once you merge, you _do_ just have one branch  :)23:11
lifelessfullermd: Feeling philospohical today?23:11
fullermdlifeless: Oh, I overread the 'cd' in the middle.23:11
lvhfullermd: the old branch disappears?23:11
pooliehello all23:11
lifelesslvh: no, it doesn't.23:11
lvhor two directories in the same state23:11
lvhplus or minus a few branch specific commits23:12
fullermdIt _can_, since you have all its revs.  Unless you need to keep it aroudn for somethign else.23:12
lifelesslvh: the old branch is untouched. the new branch has the changes you made in old merged into it,23:12
lifelesslvh: so the old branch isn't needed at that point, thats all that fullermd is saying, I think.23:12
lifelesshi poolie23:12
lvhoh, right23:13
fullermdI'm always feeling philosophically.  It's just usually not very cogent or meaningful  :p23:13
lvhthats okay, I have a quickly learning heuristic filter23:13
lvh(if lifeless: pay attention else: ignore)23:13
fullermdExcellent.  We always need more quick learners   8-}23:14
lifelessjam: done23:26
lifelessmm23:29
pooliehello jam23:29
lifelessbzr push ../foo with uncommitted changes in . pushed those changes to ../foo as uncommitted there ><23:29
lifelesssurprising23:29
lifelessjam: lp:~lifeless/bzr/adjacent-streams - merge that23:30
lifelesspoolie: james_w rebuilt the debs last night.23:30
lifelesspoolie: I haven't manually confirmed they are green yet, but they should be.23:30
pooliethat's great23:34
bialixvila: are you still here?23:34
vilano :)23:35
vilabialix: Won't stay long, but I'm listening to you23:35
bialixconfig.py AuthenticationConfig23:36
bialixget_user and get_password23:36
bialixwhich transport can trigger them?23:36
vilaall23:36
bialixwe have bug in qbzr, re bzr-svn23:36
bialixjelmer insist bzr-svn uses these methods23:37
vilaach, bzr-svn :-/23:37
bialixI'd like to test my bug fix w/o svn23:37
bialixso, bzr+ssh?23:37
bialixor sftp?23:37
vilawhat do you mean by 'jelmer insist' ?23:37
bialixwait a sec, I'll show bug number to ubottu23:38
vilaall transports can potentially make use of auth.conf, that's less useful for ssh because there are better solutions there (ssh agents and .ssh/config)23:38
bialixhttps://bugs.launchpad.net/qbzr/+bug/41825223:38
ubottuLaunchpad bug 418252 in qbzr "attempt to check out SVN repo never gets anywhere" [High,Confirmed]23:38
* bialix waves to emmajane23:39
* emmajane waves to bialix 23:39
bialixI like design #2, but I've already wrote this23:40
bialixvila: paramiko as ssh agent can use auth.conf23:40
bialixerr23:41
bialixvila: paramiko as ssh client23:41
vilayes23:41
* vila reading the bug report23:41
bialixso, which transport will trigget get_user?23:41
vilaany transport can23:41
emmajanebialix, excellent :)23:42
vilaso you can test with whatever is easier for you23:42
bialixvila: for local testing I'd prefer stick to sftp/ssh23:43
vilathere shouldn't be any difference from bzr-svn if I read jelmer comments correctly23:43
vilaso, if you can get get_user/get_password called from the command line, the same should occur from tbzr23:44
bialixvila: I have fuzzy feeling that sftp/ssh transport deduce user name somehow23:44
bialixvila: this is my question actually: how can I force get_user ask23:44
vilathings have changed in this area... but I can't point to when exactly23:44
bialixI can use ftp23:45
vilayou can force get_pasword by connecting to a host where your key is not authorized or temporarily rename your key to force a password check...23:45
vilaftp is simpler :-)23:45
bialixget_password is not problem23:45
bialixqbzr lacks get_user implementation23:46
bialixI don;t remember I ever seen prompt for user name with bzr CLI23:46
vilabialix: just look at the bzrlib tests then ! get_user is tested almost like get_password23:46
vilabialix: We didn't have get_user for a very long time because it's very rarely used, I think we first need it for an http server23:47
poolielifeless: jam says he's finished working for the day, so if you want to take over that would be good23:50
pooliedon't wait to hear back from him23:50
lifelessheh, chinese whispers23:50
lifelessok23:50
lifelesshe says its just tests and glue23:50
lifelessI'll start with glue.23:50
bialixvila: test_config tests very low level API23:51
bialixvila: I can't test with http, heh, have to find some open svn repo to test this23:52
vilabialix: test_ui not test_config23:53
bialixtest_ui?23:54
vilabzrlib/tests/test_ui.py contains test for get_username23:55
bialixyes, but it's low level too23:56
bialixok, vila, perhaps we both need to go offline till tomorrow23:57
vilawhat's wrong with low level tests ? You want low level tests for your qbzr implementation right ?23:57
vilabialix: yeah, good idea :)23:57
bialixno, I want high level23:57
bialixmanual test with real access to real branch23:57
bialixheh23:58
bialixgnight vila23:58
bialix:-)23:58
vilabialix: let's talk about that tomorrow then :) The problem with manual tests is that... you pay in blood every time you run them :)23:58
* bialix waves23:58
bialixtomorrow23:58
bialixpay in blood? scary23:59
* bialix finally disappear23:59

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