/srv/irclogs.ubuntu.com/2008/01/15/#bzr.txt

lockheartmachello00:04
lockheartmacim new to bzr, but can it be used for Flash or Photoshop files?00:04
rjekSure, but the diffs won't be very readable. :)00:05
rjekI don't know how efficent it is at storing binary files, but it certainly can.00:05
lockheartmaccool00:06
lockheartmacdo you know of something else that might be better for tose types of files?00:06
lifelessbzr should be fine00:07
lifelessI have heard of people versioning iso's in bzr00:07
lockheartmacnice! im gonna give it a try, thanks!00:07
rjeklifeless: Why are they versioning ISOs rather than the files and the scripts to create the ISO from them?00:10
lifelessrjek: congenital insanity ?00:11
rjekI see. :)00:11
Kinnisonnight all00:21
lifelessspiv: ping00:36
spivlifeless: pong00:38
lifelesscan I slip that patch in with the single large test ?00:42
spivlifeless: yes00:43
spivlifeless: sorry, I should have said so explicitly00:44
spivlifeless: I'd love to find a nice way to deal with that situation, because I have tests that would be improved too :)00:44
edencaneHi. Ive updated a library file in the tree; did a bzr remove <oldfile>; bzr add <newfile>; then bzr commit;00:48
edencanethen bzr push;00:48
edencaneTHe files are not in the tree though? Why would that be?00:48
edencaneanyone able to help?00:52
bob2what method are you using to push?00:53
bob2not all of them update the remote working tree00:53
edencanejust bzr push00:53
bob2e.g. bzr+ssh, sftp, ...00:54
edencanesftp00:54
bob2I don't think sftp updates the tree (which seems reasonable, since it's not executing bzr on the other end)00:54
bob2does "bzr up" in the remote tree make the files appear?00:54
edencanehow would I do that? bzr up sftp:<foo>?00:56
bob2"ssh remotehost '(cd /to/remote/dir ; bzr up)"00:56
AfCedencane: I think he meant ssh'ing to the machine in question and running `bzr update` in the branch00:56
edencanehmmm00:57
AfC(because I know that's what I do in the one external branch that I keep an up to date tree in)00:57
edencanemaybe... bzr push  seems to push the changes Ive made to local files00:58
lifelessedencane: if you want the files to be visible there you need to run bzr at the far end; but other bzr users can pull from it already00:58
lifelessedencane: .bzr is a database00:58
edencanethis is a replacement of a library...00:59
AfCeg the difference between http://research.operationaldynamics.com/bzr/java-gnome/mainline/ and say http://research.operationaldynamics.com/bzr/java-gnome/hackers/andrew/missing/00:59
edencanenormally if I do a bzr add <file> or bzr remove <file> do I need to do bzr commit on <file> as well?01:01
AfClifeless: sometimes I wonder if push shouldn't have updated when run locally. Of course, that's the confusing badness that most other systems force their users to deal with, but we sure do run into people not understanding the "remote push usually can't update remote working tree" thing.01:01
bob2edencane: yes, or just a commit of the whole tree01:02
AfC... but maybe it would have taught people the difference between push and update (and the fact that push locally _does_ an update). Perhaps we should make that more explicit locally?01:02
edencanebob2: ohkay, I didnt do the bzr commit on both the old file (removed) and new file (added)01:03
spivedencane: until you "bzr commit", no changes you've made will be recorded in the branch.  "bzr add <file>" is a change, just like editing a versioned file.01:03
edencaneAhhhh01:03
edencaneOkay...01:03
edencaneThanks ever so much...01:03
bob2edencane: if it's a new version of some file, you could just copy it over and commit the modification of the file rather than its' replacement01:04
AfCedencane: [you threw us off when you said you'd committed]01:04
AfCedencane: [as commit without args commits all pending changes]01:04
AfCbob2: indeed. Far better to do that01:05
edencanehmmmm I see your point, but in many cases I have a lot of crud files kicking around that I dont want to commit...01:07
TFKyleedencane: if they're new files that you don't want to add just don't add them, for modifications to existing files possibly have a look at bzr shelve (part of bzrtools)01:08
edencanebob2: it wasnt a new version, it was a replacement library like: somelib1.3.3 replaced with someLib2.0.701:08
TFKyle(well, shelve/unshelve)01:08
lifelessAfC: thats a good idea; just a printline would help01:09
edencaneAfC: yea, I always commit specific files, sorry01:10
AfClifeless: you want a bug for that, or is that a "just do it"01:13
AfCedencane: which would have been find had you committed all the files relevant to the change you were trying to capture01:13
pooliehm something odd is happening trying to get the .sig file...01:21
lifelessAfC: mail to the list01:21
pooliehm. the incorrect mime types make firefox pretty unhappy....01:24
igcping spiv01:37
igcspiv: on a typical project, what sort of performance gain do you expect using the smart server vs plain http?01:38
lifelessigc: you'll need to benchmark it ;)01:38
lifelessigc: its probably marginally faster than sftp for packs today01:39
igcmy benchmarks overnight are showing plain http is now quite quick with packs01:39
igcwhereas bzr+ssh is a fair bit slower01:39
lifelessgood01:39
lifeless;)01:39
igclifeless: downloading 33 projects on a LAN over plain http is 708 seconds01:40
AfCbzr:// use the same packs (and realizes the same efficiencies) as http://, right?01:40
igclifeless: using bzr+ssh, it's taking 1908 secs01:41
igcso I'm wondering whether I'm doing something wrong :-)01:41
TFKyleigc: what version of openssh are you using?01:41
lifelessAfC: not quite; but due to bugs not design01:41
lifelessTFKyle: its not that01:42
TFKyle(probably not that, but you never know)01:42
igcwhatever version comes with gutsy :-)01:42
lifelessigc: you are using bzr.dev on this end and 1.0 on the other01:42
lifelessigc: or something similar01:42
igcyep01:42
AfClifeless: oh. That's discouraging01:42
lifelessigc: so you are not getting a streaming pull, you are falling back to VFS, and the bzr VFS does not do readv expansion so the index reads will be bisecting in 200 byte ranges, rather than 64K ones01:43
igcthe remote machine is running bzr 1.0 on Leopard01:43
lifelessAfC: they are being fixed right now01:43
igcthe local machine is bzr.dev on gutsy01:43
lifelessigc: yes, this fits my prediction01:44
lifelessigc: for benchmarks always have the server be a >= bzr than the client01:44
AfClifeless: sweet [We invested considerable effort circa 0.91 to get the server running and to get everyone converted to bzr:// URLs, so I was hoping that all that hadn't been deprecated]01:44
lifelessAfC: heck no01:44
lifelessAfC: just teething problems between VFS changes and smart server changes not lining up quite right01:44
igclifeless: fwiw, we whip hg now on plain http serving: 708 secs vs 2200 secs01:45
lifelesswhat latency are you benching with?01:45
lifelessratchet it up to 150ms or so01:45
AfClifeless: (I came across this question more as an offshoot when I was researching what would be involved in switching people to packs)01:45
igcit's a 100Mb LAN01:45
AfCigc: that's excellent news.01:46
igclifeless: I'm looking at netem today01:46
AfCigc: (we should publish that somewhere)01:46
lifelessAfC: if you have a server version that is >= your bzr client version you'll get a streaming pull which should be faster than packs; or at least close to01:47
lifelesswe're working on making it faster01:47
igcAfC: it's nice to know. The smart server comparison is more meaningful though I suspect01:47
AfCigc: yeah01:47
AfCigc: they did after all go there from the very beginning.01:47
AfClifeless: [both are 1.0 atm]01:48
igcand configuring Hg is more painful than I expected so my main focus is our benchmarks, not theirs01:48
AfCsure01:49
AfC"configuring Hg is more painful" ... that's the sort of critique that while subjective nevertheless resonates widely. I would encourage you to put that into a blog post with some details.01:50
AfC(which people like me could link to)01:50
igcAfC: coming from someone that works at Canonical, people expect me to say that01:50
igcAfC: better if you blog that I think :-)01:51
AfCigc: I didn't do the tests, I didn't have the experience. You did. You're the one that found hg cumbersome to use. I'd be interesting in hearing why (and why you think bzr takes a better approach to $whatever). You are more than eminently qualified to report on such things01:52
igcAfC: in the end, I gave up trying to find out how to push over sftp with Hg, particularly initial push01:52
AfCAnd more to the point, if you guys don't blow your own horn, no one else will.01:52
igcso I went with scp to just get the files pushed across01:53
* AfC laments that he has several tens of draft blog posts of this sort of critique/experience across many projects that he hasn't quite gotten around to tying together into a cohesive point yet01:53
igcit really is sweet how Bazaar doesn't require anything on the server bar ssh access01:54
AfCCafé01:56
lifelessigc: hg wants a smart server always unless you do speciall stuff01:57
igclifeless: yeah - it's really annoying02:03
lifelesspoolie: jam: ping?02:34
poolieready when you are02:35
jamhi lifeless, poolie  are we doing a conference call?02:36
lifelessconf centre?02:38
jamsure, dialing now02:38
jamwaiting for the "leader"02:39
lifelessstanding by02:40
jampoolie: you coming?02:41
pooliesure02:41
* igc lunch03:07
fullermdlifeless: How much of that streaming SS capability is making 1.1?03:43
lifelessfullermd: none04:24
fullermdOh.  Well, that makes it easy to quantify   :)04:24
abentleyjelmer: ping04:28
abentleyOr anyone-who-groks-pygtk: ping04:29
spivjamesh: I hear you know a little about pygtk ;)04:29
jameshI've heard that rumour too04:30
abentleyjamesh: I'm using a VBox to add a toolbar to a diff window, and I'm getting some strange sizing issues.04:30
abentleyIt seems like pack_start isn't honoring the expand parameter.04:31
abentleyI do self.vbox.pack_start(scrollwin, expand=True, fill=True)04:32
abentley        self.vbox.pack_start(merge_button, expand=False, fill=False)04:32
abentleyAnd the button and the scrollwin take equal amounts of space.04:32
jameshthat should make scrollwin take any space above the requested minimum04:33
jameshwhat's the vbox packed inside of?04:33
abentleyThat's what I thought, but it's not what I'm seeing.04:33
jamesh(i.e. what is its sizing policy?)04:33
abentleyThe vbox is in a subclass of Window.  That subclass has set_default_size invoked to set it to 66% of screen width, 66% of screen height.04:35
jameshis the code available somewhere?04:35
abentleyI'll put it up.04:36
abentleyAlso strange is that the fill parameter has an effect even when expand=False.04:37
jameshwell, fill would generally affect only the horizontal space used by the child in a vbox04:37
abentleyOkay, it's up at http://code.aaronbentley.com/bzr/bzrrepo/bzr-gtk-meld04:37
abentleyRight, but the docs say it has no effect when expand=False.04:38
jameshthat doesn't sound correct04:38
abentleyOr do I have it backwards?04:38
pooliespiv, i guess i'm not coming up today...04:38
abentley"The fill argument to the pack methods control whether the extra space is allocated to the objects themselves (True), or as extra padding in the box around these objects (False). It only has an effect if the expand argument is also True."04:39
abentleyThe branch I put up is bzr-gtk.04:41
lifelesswhee that was a call04:41
jameshabentley: http://developer.gnome.org/doc/GGAD/sec-containers.html <- it's a bit old, but it is a good description of box packing04:41
jameshabentley: if expand=False for a child of a vbox, it won't be allocated any more height than it requested04:42
jameshabentley: but the width of the vbox may be wider than what the child requested -- the fill setting comes into play here04:43
abentleyjamesh: That's what I would expect.04:43
abentleyjamesh: What I am seeing is that the button is always full-width.04:44
jameshfound it:04:44
jamesh        self.vbox = gtk.VBox(True)04:44
spivpoolie: not a problem04:44
jameshyou've created a homogeneous vbox, where each child is allocated equal size04:45
jameshchange that to self.vbox = gtk.VBox() and you should be set04:45
abentleyThanks.04:45
abentleyI must have copied-and-pasted without realizing I was breaking myself.04:45
abentleyI confirm that fixes it.04:45
lifelessthis carpet install is driving me bats04:53
abentleyMy mind is sufficiently warped that I wondered whether that was a derogatory term for apt-get dist-upgrade.04:56
abentleyInstallation as carpet-bombing04:56
lifelesslol05:00
lifelessno the apartment above is being renovated05:00
lifelessbastards05:00
lifelessnext week would have been fine05:01
bob2for you!05:03
spivlifeless: any ideas on how to test the socket connection error handling?05:05
spivlifeless: the obvious thing is to just try connecting to "bzr://unknown.local/" or something.05:05
spivlifeless: But I fear sufficiently badly configured systems will manage to resolve it, leading to spurious test failures...05:06
spivlifeless: I suppose I coudl write Feature that checks that some impossible host name really does fail to resolve...05:06
fullermdIt's not spurious.  It points to a real problem   ;)05:07
spivfullermd: it's a real problem, but not the one the test is trying to catch :P05:07
spivfullermd: I think probably the user in that case would be better served by a "missing feature" message telling them not to have crazy wildcard resolvers05:08
fullermdWell, it's not like you're often going to get random people running selftest and watching their system nail itself to the wall for 45 minutes...   selftest is mostly a dev tool.05:08
fullermdI'd use "nonexistent.invalid" or something like that, since .invalid is spec'd to not exist.05:09
spivHmm, I think a Feature is probably right for it.05:10
dysingerHey05:11
spivGiven that it's a property of the environment running the tests that is needed to run a particular test.05:11
dysingerCongrats on the 1.105:11
spivBut it's also something that doesn't make bzr itself behave incorrectly.05:11
fullermdReasonable enough, I s'pose.05:12
fullermdJust my Long-Suffering Sysadmin hat makes me want to inflict immediate pain on people with b0rked setups   :p05:12
spivfullermd: thanks for the "nonexistent.invalid" suggestion.05:12
jameshspiv: you could try something under example.com05:14
spivjamesh: is that likely to be any better than something under .invalid?05:15
fullermdWell, ICANN _could_ make hosts under example.com.  The .invalid TLD is specifically for nonexistence.05:15
jameshfullermd: ... and so is available for local host names05:16
spivhttp://www.rfc-editor.org/rfc/rfc2606.txt seems to suggest that .invalid is a better fit than .example or example.com05:16
jameshthe machines on my local network have .henstridge.invalid hostnames05:16
lifelesslol, rather than .local ?05:17
jameshlifeless: the ones with zeroconf setup also have .local names asserted via mDNS05:17
lifelessI think fullermd is right05:19
lifelessa feature that depends on an unresolvable hostname05:19
fullermdSurely you can't be implying that there are people in the world who don't own their own vanity domain already?   ;)05:19
jameshspiv: you could also try picking a syntactically invalid domain name, I guess05:20
jameshe.g. one with underscores05:20
spivjamesh: I could even do both!05:21
fullermdAn implementation could conceptually throw a different error for that...05:21
dysingerso does anyone have bzr-svn working on the mac ?05:22
jameshspiv: http://www.rfc-editor.org/rfc/rfc2606.txt <- that's the relevant RFC05:22
dysingerI couldn't get it to work on leopard05:22
spivjamesh: I know, I gave that link 6 minutes ago ;)05:22
jameshgarr05:23
spivlifeless: thanks05:23
* spiv writes the test + feature05:23
jameshhah.  Microsoft has a knowledge base article stating "Make sure if you choose not to register a name that you choose a name that is unique. You can review existing names at http://www.networksolutions.com (http://www.networksolutions.com)."05:27
jameshmaybe you could do the same for your test, and pick a .com that is not currently registered05:27
fullermdWell, if we're going that way, we could just set up invalid.bazaar-vcs.org.05:28
fullermd(well, or not set up, depending on your semantics ;)05:28
jameshthen we could monitor who is running the Bazaar test suite by tracking nameserver logs05:29
fullermdGoing to .invalid should finish in just a query to the roots, though.  Elsewhere might take several steps, wasting a bit of time and a bit more load on various servers along the way.05:29
fullermdOh, well, you want monitoring, then you want ${bzrlib_vesion}.invalid.b-v.o.05:30
jameshor ${username}.${bzrlib_version}.invalid.b-v.o05:30
fullermd% bzr selftest05:31
fullermdPlease enter your credit card number: _05:31
spivlifeless: http://rafb.net/p/svj9Hw22.html05:37
dysingerSo this no-way-to-import-svn and no-way-to-work-on-top of svn is keeping me on Git.  I sure wish there was a way to get it working on OS X Leopard.  It probably works fine with Tiger (becasue SVN & svn-python doesn't come pre-installed)05:37
spivlifeless: does that test + feature look ok?05:37
spivlifeless: should I move the feature to bzrlib/tests/__init__.py?05:37
spivfullermd: it could be "Please enter your licence key: _" ;)05:38
keiri want to have a make (ok, scons) rule which bakes the bzr version into a header file, so that gets baked into every binary. is there a 'best practice' way to do this with bzr?05:39
spivkeir: how about "bzr revision-info"?05:41
lifelessI think the feature is fine in place05:42
keirspiv, great, thanks.05:42
bob2should that command be hidden?05:42
keirspiv, hmm; i want to also reflect if there are local changes. something like revision-info with '+local mods'05:43
lifelessspiv: +105:44
dysingerok thanks for the help.  Talk to you later.05:44
spivlifeless: thanks!05:44
lifelesskeir: also, consider bzr version-info05:44
lifelesskeir: which is more comprehensive, can output C etc etc05:44
keirah, cool; almost perfect05:45
keir--clean requires no unknown files?05:45
=== spiv changed the topic of #bzr to: http://bazaar-vcs.org/ | Bazaar 1.1 is out! woo! | http://bazaar-vcs.org/releases/src/bzr-1.1.tar.gz
keirwow, 1.1! congrats05:51
* spiv figures if the website announces it, the IRC topic might as well announce it too :)05:52
* fullermd blinks.05:53
fullermdDid I miss an announcement?05:53
spivfullermd: I haven't seen an email yet, but the website has been linking to it for a couple of hours now05:54
AfCGentoo rev bump filed.06:00
ubotuNew bug: #183079 in bzr "added fails when not run in tree root" [Undecided,New] https://launchpad.net/bugs/18307906:01
fullermdFreeBSD port update, ditto.06:08
pooliethanks06:44
pooliei did send an announcement mail06:44
pooliemight be held?06:44
=== jamesh_ is now known as jamesh
* igc dinner08:38
matkorHi ! How to perform such task. How to uncommit changes to one given file back to given revision ?09:04
matkorI during commit I commited mostly valid changes except one file, later a did a lot of commits, now I would like to revert changes introduced by that old commit but only intoruduced to one specific file ?09:06
matkorI short, hot to say in bzr: bzr want-now-that-file-as-it-was-than <filename> -r <revno> ?09:07
fullermdbzr revert -rwhatever $FILE09:07
lifelessspiv: ping09:08
lifelessa = [('call_expecting_body',09:08
lifeless  'Repository.get_parent_map',09:08
lifeless  ('///quack/', '\xe0\xb6\xab'))]09:08
lifelessb = [('call_expecting_body',09:08
lifeless  'Repository.get_parent_map',09:09
lifeless  ('quack/', '\xe0\xb6\xab'))]09:09
lifelessafter your most recent commit to bzr.dev.09:09
lifeless(you reviewed myy patch with this test in it; is it sane to replace /// with '' in my test and thats all ?09:09
matkorfullermd: Yah. So simple ... Thank you very much.  As far bzr has highest question to answer size ratio for me ;)09:15
=== brilliantnu1 is now known as brilliantnu
=== brilliantnu is now known as brilliantnut
PengOmgyay! The bzr+http path issue really was fixed!09:35
* Peng hugs spiv.09:35
PengHm, now that the pack format exists, I guess it's not so useful..09:45
PengI do still have one project in dirstate though.09:45
AfCbzr 1.1 now in Gentoo09:47
PengHmmm.09:53
PengWhat the heck? .bzr/smart for one branch gives a 404.09:55
PengIt works fine for every other one.09:55
Peng.htaccess issue. Apparently "RewriteEngine on" in a child .htaccess negates rewrites in parents?09:56
PengOr any mod_rewrite stuff at all, I guess.09:57
PengRewriteOptions inherit. Okies.10:03
PengI know, it was never on-topic, but I'm afraid of #apache and wanted somewhere to think out loud. :P10:03
spivlifeless: right10:09
Pengspiv: You rock!10:10
spivPeng: it's not totally fixed yet10:10
PengWhat's still wrong?10:10
spivPeng: but the client part of it was a pretty big part.10:10
PengIt's fixed enough that it works for me.10:10
spivPeng: http://bundlebuggy.aaronbentley.com/request/%3C20071214015112.GC14963@steerpike.home.puzzling.org%3E10:11
spivPeng: yeah10:11
spivPeng: that's the main thing :)10:11
* Peng watches hundreds of POSTs scroll by during a "bzr branch".10:11
PengAll the recent ones are for 680-690 bytes.10:13
PengOh, good, two 60 KB ones were thrown in.10:15
fullermdI can just see the paper...  "bzr smart requests as a PMTU discovery tool"10:15
spivPeng: yeah, the readv stuff with the smart protocol isn't particular, um, smart for some reason.10:16
PengSo I've noticed.10:16
PengOh, good, it finished in 8m36.343s.10:17
PengDumb http only took 1m14.493s.10:17
spivYeah, that's mainly the readv borkage I belive.10:17
spivEspecially now that lifeless has starting improving the remote graph stuff.10:18
PengThe remote graph stuff is making it better or worse?10:18
spivBetter.10:18
PengOh, good.10:19
PengThat's a client-side thing?10:19
spivBoth.10:19
spivNew smart verbs to more efficiently fetch graph info to find graph differences.10:20
PengOk.10:21
spivIf you have the latest bzr.dev on both ends you shouldn't get much readv borkage, I think.10:22
spiv(because it'll get the info it needs using other methods, rather than because readv has been fixed in bzr.dev)10:22
PengI do have the latest bzr.dev on both ends.10:22
spivOh.  Hmm.10:23
PengAnd it took 450 mostly-sub-KB requests to make a branch of a smallish project of 150 revisions.10:23
spivAh well, more to do then :)10:23
Peng(pytz).10:23
spivPeng: those requests were readv, I presume?10:23
* spiv is just double-checking10:23
PengUsing FastCGI definitely speeds it up.10:23
Pengspiv: I dunno. They read a few hundred bytes.10:24
PengI ran locally with lots of -D options so I can probably figure it out.10:24
spiv-Dhpss should give you plenty of info10:24
PengI used -Dhpss -Dhttp.10:24
PengIt appears to have recorded the full request and response headers of every request.10:25
PengYou want to sort through it? :D10:25
spivHeh.10:25
spivJust -Dhpss is probably a better bet in this case :)10:25
PengYeah. I did both because I was testing both http and bzr+http and wanted to use the same args for both of them.10:26
* spiv nods10:26
=== doko_ is now known as doko
* Peng wonders how much the debug data contributed to those times.10:31
spivPeng: probably a bit  :)10:35
Penghttp on a dirstate branch took 392 requests. bzr+http took 422.10:37
spivPeng: what took up the bulk of the bzr+http requests?  Was this a push or pull?10:38
Pengspiv: "bzr branch".10:38
Penghttp://bzr.mattnordhoff.com/bzr/pytz/pytz-current/ , FWIW.10:38
spivTa10:38
fullermdEvery time I look at the bzr+http setup, I get skeered   :|10:39
spivPeng: you don't seem to have the most recent bzr.dev on the server10:40
PengEeerrrr.10:40
spivPeng: if you did, you'd see the number of requests drop dramatically10:40
PengYou know what?10:40
Pengbzr.dev isn't in my PYTHONPATH.10:40
PengThat's 1.1.10:40
spivRight :)10:40
PengI knew that would bite me eventually.10:40
spivPeng: The "   result:    0.666s  'error', "Generic bzr smart protocol error: bad request 'Repository.stream_revisions_chunked'"10:40
spiv"10:40
spivgave it away10:40
PengHumm.10:40
spivThat verb is in bzr.dev, but not 1.110:41
PengHow do you think I should solve this?10:41
spivApache?10:41
PengAdd the path to bzr.dev to sys.path? "setup.py install" bzr.dev and remember to rerun it every time I update?10:41
spivPeng: you're using FastCGI, IIRC?10:42
Pengspiv: Yessir.10:42
spivPeng: you could put some sys.path hackery in the little glue script.10:42
PengThat's what I was thinking.10:42
PengWill do.10:42
spivOr build nightly debs of bzr.dev for us ;)10:42
=== asak__ is now known as asak
fullermdI s'pose someday I should apply some of my CFT to seeing if it's setupable...10:43
spivfullermd: wait till bug 129089 is fully fixed first10:44
ubotuLaunchpad bug 129089 in gnome-system-tools "Modified user not listed" [Low,Invalid] https://launchpad.net/bugs/12908910:44
spivEr10:44
spiv12408910:44
spivAhem, bug 12408910:44
ubotuLaunchpad bug 124089 in bzr "wsgi smart server chrooting does not manage additional paths" [High,In progress] https://launchpad.net/bugs/12408910:44
spivThanks ubotu10:44
* spiv wishes IRC bots were telepathic10:45
datojust live long enough ;)10:45
PengOk, fixed.10:45
fullermdWell, it just seems like it would be painful to do well enough.  Glancing over the doc, it's full of hardcoded paths.10:45
Pengspiv: How do I check if it's using bzr.dev?10:45
fullermdI don't think that bug would change that...10:46
spivPeng: judging by my -Dhpss output, it is :)10:47
spivPeng: also,10:47
spivandrew@steerpike:/tmp$ time bzr -Dhpss branch bzr+http://bzr.mattnordhoff.com/bzr/pytz/pytz-current/10:47
spivBranched 151 revision(s).10:47
spivreal    0m39.611s10:47
PengLucky low-latency/high-speed Internet connection bastard.10:47
spivI'm in .au10:47
PengWait, it took 27 seconds for me.10:47
spivI don't think the latency is low :)10:47
Peng27 seconds is awesome.10:48
spivI think it's the new smart verbs doing what they're supposed to do :)10:48
fullermdBranched 151 revision(s).10:48
fullermd2.262u 0.571s 0:21.20 13.3%     113+146k 0+0io 0pf+0w10:48
fullermdLooks like ~93ms latency from here.10:49
PengBlahg, 2 or 3 of us did things at once. Now I can't mentally parse my access.log.10:50
spivHeh.10:50
datobzr: ERROR: Not a branch: "bzr+http://bzr.mattnordhoff.com/bzr/pytz/pytz-current/".10:50
spivPeng: FWIW, I'm done hitting your branch10:50
spivdato: Are you using bzr.dev?10:50
fullermdOf course, .bzr/ has less than a meg and a half in it.  I should be able to move that much data in about 3 seconds   :p10:50
spivdato: I think you probably need a fix that landed earlier today.10:51
datospiv: ah, I didn't pull today10:51
spivfullermd: yeah, there's still a heap of unnecessary roundtrips in there10:51
datospiv: btw, do you plan to make http (as opposed to bzr+http) look if there's a smart server available?10:51
datoor is that done already?10:52
spivdato: I think that would probably be nice10:52
spivdato: Although I'm a bit scared to do that until bzr+http is a little more mature.10:52
datospiv: yeah, "at some point in the future"10:52
spivRight.10:52
datook10:53
fullermdWould it be a fair bet that we couldn't really dump some of those absolute paths in the config until we could turn off VFS methods altogether in the SS?10:53
PengWhat about making bzr+http fall back to http?10:53
fullermdOr maybe there's some way to get Apache to pass down paths for the chrooting?  Seems like it would dig deep into FCGI messes real quick, though   :|10:56
PengFWIW, I put up a copy of that branch in packs at http://bzr.mattnordhoff.com/bzr/pytz/pytz-current.packs/11:01
PengTook 13.7 seconds to branch.11:02
PengThat is, over http.11:02
Peng22 over bzr+http.11:02
PengFewer requests over http too.11:03
spivPeng: yeah, there's still plenty of dumb things to fix in the smart server.11:04
PengThose times count building the working tree too.11:06
* spiv nods11:06
PengSo bzr+http is a huge win for dirstate with bzr.dev, but not so much for packs.11:07
* Peng notices that the developer of the project is using dirstate while I am using dirstate-tags.11:10
=== mvo_ is now known as mvo
PengUm, did any of you poke my site from t-ipconnect.de, or do I have a bot on my hands?11:13
fullermdI'm a long way from anything .de...11:14
* dato too11:15
spivNot me.11:15
PengAlso, the user-agent was "CFNetwork/220", some library or something.11:16
PengHuh.11:16
PengHow can I switch a branch from dirstate-tags to dirstate?11:17
datoPeng: b init --dirstate foo; cd foo; b pull /path/to/dirstate-tags11:18
spivPeng: http://rafb.net/p/LS6bB821.html may make bzr+http with packs faster11:19
PengHm, what would Launchpad think if I did that?11:19
spivPeng: launchpad will cope just fine11:19
PengWill it change the format of the mirrored branch11:20
Peng?11:20
spivYep.11:20
PengOk.11:20
fullermdAre you sure you need to, though?11:21
PengOf course I don't need to.11:21
fullermdI mean, they won't be able to get your tags, but the repo format is still the same and all, so...11:21
PengI don't use any tags.11:21
PengUpstream uses dirstate and I want to use the same format.11:21
fullermdAnd going down to branch5 means your locations.conf gets all polluted again.11:21
PengIt's just the remote branch. Locally I use packs.11:22
spivPeng: FWIW, with that patch, time to branch pytz-current.packs with bzr+http drops to 29.7s from 38.3s.11:27
spivPeng: (vs 15.2s for plain http)11:27
* fullermd is very glad to see all the SS work lately.11:28
spivMe too!11:29
spiv:)11:29
Pengspiv: Send the patch in, then? :)11:30
fullermdYeah, we'll alibi you   ;)11:32
fullermd"No sir, he couldn't have sent anything to PQM.  He was sitting with us waiting for the smart server to finish branching a pack repo, see..."11:32
spivPeng: I am :)11:32
PengCool.11:32
PengWell, this has been a fun and bandwidth-wasting night. :)11:37
spivPeng: thanks for the feedback!11:37
datoPeng: oh, I thought you were in Europe?11:38
Pengdato: No, I'm just a bat.11:38
fullermdIf you can hear this, you're a bat:11:39
=== jamesh_ is now known as jamesh
poolienight...11:50
=== asac_ is now known as asac
lifelessspiv: is the client path change compatible with older servers?12:02
ubotuNew bug: #183156 in bzr "bzr branch uses too much RAM when not using a shared repository" [Undecided,New] https://launchpad.net/bugs/18315612:25
fullermdWell, I've pushed over bzr+ssh to a 1.0 server once or twice since I pulled down the change...12:36
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
=== mvo__ is now known as mvo
beunoanyone know where I can get a bzr 1.0 .deb for feisty?14:48
beunohttp://rafb.net/p/yPNFTT74.html14:57
beunohmmmm, I'm having a recurring problem with a packs repository, anyone know why this might be happening:  http://rafb.net/p/yPNFTT74.html14:57
lukshttps://launchpad.net/~bzr/+archive14:59
beunoluks, thanks!  (that should be added on the /Downloads page, shouldn't it?15:00
luksI don't know, for some reason everybody keeps talking how unofficial PPA is, but it's the only place with actually updated packages15:01
beunoalright, let's take this to the mailing list then15:02
mdz_I need to create some diagrams to explain how a set of branches are arranged.  Can anyone offer advice regarding suitable tools?15:04
Kinnisoninkscape?15:05
beunomdz_, related branches?   bzr-gtk has a neat tool, "visualize"15:05
Kinnisoninkscape can do 'attachment' lines15:05
Kinnisonotherwise I'd suggest something like visio15:05
KinnisonI think OO's draw thingy can do flowchart type stuff too15:06
mdz_these happen to be branches I haven't created yet, so I was thinking diagramming tools, but I suppose I could create them and try "visualize"15:06
mdz_what does the output look like?15:06
Kinnisonof visualise?15:07
mdz_yes15:07
=== mdz_ is now known as mdz
luksI think bzrtools has something to produce a graphviz sources?15:07
Kinnisonhttp://users.pepperfish.net/dsilvers/vis-example.png15:08
mdzthanks15:08
mdzI think bzr visualize would do what I want15:08
mdzI can just set up some dummy branches and do it that way15:08
mdzthanks15:09
Kinnisonno problem15:09
beunomdz, the branches have to be related, make sure you explicitly branch from each other and merge back into the parent so you get that kind of output15:09
beuno(eg. don't "cp" the repositories)15:09
* Kinnison ponders screenshotting the bit of aranha's history where unrelated branches are merged together :-)15:09
mdzbeuno: will do, thanks15:10
jdahlinHow can I set the default branch bzr push will use if I don't provide a branch argument?15:10
Kinnisonjdahlin: pardon?15:10
mtaylorhey guys... in cmd_commit(), there's a bit near the end where it calls tree.commit()15:10
beunojdahlin, you can do an empty push with --remember15:10
mtaylorbut I can't seem to find the definition of the commit method that takes a callback object as a param15:10
jdahlinbeuno, excellent, thanks!15:11
beuno:D15:11
mdzwill bzr visualize show tags?15:11
jelmermdz: it will show them once you've selected a revision15:12
jelmermdz: it doesn't put them in the tree view yet15:12
mdzoh15:12
jelmerand there'15:13
jelmers a menu item for going to a specific tag15:13
rjekToday's questions: 1) Can you export a SVG or similar from bzr vis?  2) Can bzr use HTTP PUT to push to http:// URLs?  3) Is there a C interface to bzr such that you can drive it from C or another language that can bind to C?15:13
mdzjelmer: would be great to see them in the tree view, but I can fake it for my purposes15:13
beunorjek, you *can* use http to push AFAIK, but I know it's not recommended (not ideal way to transport that amount of data)15:15
rjekWhy is it not ideal?15:16
rjekI'm beginning to get bored with having asymetrical respository access URLs.15:16
beunorjek, I'm not that familiar with it, but I think it's just not what it's built for15:17
Kinnisonit'd be fine if bzr smart server over http worked sanely15:17
beunorjek, why not use sftp/ssh instead?15:17
rjekbeuno: Because they don't allow for public access to a subset of my branches.15:17
beunorjek, and how does http solve that?15:18
* rjek idly wonders for a moment if HTTP PUT supports byte ranges.15:18
rjekbeuno: Err, it trivially provides unauthenticated access to a subset of my branches for reading.15:18
rjekWhere sftp and ssh cannot possibly15:18
mtaylorrjek: yeah - but you can push using ssh to a location that people can HTTP get from to branch15:19
rjekmtaylor: That's what I'm doing at the moment.15:19
rjek(well, read via HTTP, write via sftp)15:19
beunorjek, well, anonymous read-only sftp could work, couldn't it?15:19
rjekbeuno: Not that I know of, given sftp is based on top of ssh.15:20
fullermdWell, of course it _could_.  But it's not trivial.15:20
beunoand plain old ftp?15:20
beunoyou can give read/write access to different users trivially15:21
rjekThat'd involve me wanting to use ftp. :)15:21
* fullermd takes FTP out back behind the woodshed.15:21
mtaylorfullermd: do you happen to know what the status is of adding a commit hook to inject or modify commit messages?15:21
rjekI suppose the issue will be solved when the smart server works.15:21
mtaylorfullermd: I see a TODO in the source...15:21
fullermdNot really, though I don't recall anybody mentioning working on or thinking heavily about it.15:21
mtaylorok... so if I did some hacking on it, I wouldn't be stepping on anyone's toes that you know of?15:22
fullermdWouldn't expect so.15:23
=== mw is now known as mw|brb
jdahlinIs there support for something like svn:externals in bzr?15:34
PengNot yet.15:34
jdahlinWhen is it planned to be included?15:35
PengIn the fyooture.15:35
PengI dunno.15:36
=== mw|brb is now known as mw
mwwhen was 1.1 released?  i don't see the announcement on the mialing list15:53
jdahlintoday, it seems15:53
mwyeah15:53
mwmaybe mail's just taking a while to come through15:54
mwit wouldn't be the first time :)15:54
PengYeah, I've seen it on the list.16:05
PengThe announce list, at least.16:05
=== mez is now known as Mez
ubotuNew bug: #183244 in bzr "push aftp crash,  socket.error: (10054," [Undecided,New] https://launchpad.net/bugs/18324417:10
vagrantcis there a way to add the --append-revisions-only flag to a branch after it's been created ?17:35
vagrantcand is there a way to set it globally ?17:35
vagrantci tried adding "append_revisions_only = True" to ~/.bazaar/bazaar.conf, but that didn't seem to work17:36
datofor the former, add it to foo/.bzr/branch/branch.cof17:36
datobranch.conf17:36
vagrantcdato: is there a way to add it to a remote branch using bzr itself? or do i need shell access to do so?17:38
fullermdThere's no way to do it via bzr, no.17:46
vagrantcgah.17:46
fullermdYou don't necessarily need shell access; you can just copy down the file, edit it, and copy back up, using sftp or however you're pushing.17:46
vagrantcpusshing using bzr+ssh17:46
fullermdWell, so you probably have sftp and scp available.17:47
* vagrantc is trying to work with branches on launchpad17:48
fullermdLaunchpad supports sftp.17:49
PengIn Soviet Launchpad, branches work with you.17:49
PengI'm sorry.17:49
vagrantcsupports it, but do i have any idea where any of the branches paths are?17:49
fullermdWell, if you're pushing to them, I should hope so   :)17:50
vagrantcwell, it wasn't clear to me that the http/bzr+ssh/sftp URLs were basically the same paths17:50
fullermdAFAIK, the sftp and bzr+ssh paths are exactly the same, just with the different protocol specifier.17:51
=== abentle1 is now known as abentley
vagrantcthanks for help regarding append_revisions_only18:34
vagrantcso there's no global way to make this the default for a given user?18:34
hendrixski:-( I'm having some trouble pulling from an svn repository... I have bzr-svn installed... and I've tried a few things in the ~/.bazaar/subversion.conf file... though I'm not sure it's the right thing18:43
hendrixskiIt keeps saying that it's not a valid subversion branching scheme... I'm totally lost18:44
hendrixskioh... heh, I just deleted the damn file and it seems to have worked18:54
=== brilliantnu1 is now known as brilliantnut
abentleyvagrantc: Sounds like a bug to me.  I certainly intended it to work in bazaar.conf and locations.conf19:05
vagrantcabentley: i'll test it a little more just to make sure, then. i'm using 1.0-1~bpo40+1 from backports.org on debian etch19:06
abentleyMake sure you're using a branch format that supports it.19:07
vagrantcah.19:07
abentleydirstate-tags and later support it.19:07
abentleydirstate and knit do not.19:07
vagrantccat .bzr/branch-format19:08
vagrantcBazaar-NG meta directory, format 119:08
vagrantc ?19:08
vagrantcbzr info seems to think it's dirstate-tags19:08
datocat .bzr/branch/format fwiw19:09
vagrantccat .bzr/branch/format19:10
vagrantcBazaar Branch Format 6 (bzr 0.15)19:10
datoright, dirstate-tags19:11
vagrantcit's a little hard to keep up with all the branch formats19:12
Odd_BlokeWow, I'm just updating bzr.dev with packs and knits, and the difference is astounding.21:26
Odd_BlokeUntil now I'd never really seen them side-by-side.21:26
hendrixski_GGGGRRRRRRRRRRRrr22:14
hendrixski_ok, this really sucks.  I've been trying to get a branch from an svn repo22:14
hendrixski_I've pulled off of there before22:15
hendrixski_svn.asdf.org/svn/branches/release-##/directory   and the error message is "not a branch: trunk/asdf"  EVEN THOUGH NOWHERE in there am I trying to get anything from trunk, I'm trying to pull from tags22:17
hendrixski_what the hell is going on?  Where is it getting the "trunk" b.s. from????22:17
lifelesshendrixski_: have you changed bzr versions on the way?22:18
lifelesshendrixski_: was the branch copied from trunk?22:18
lifelessOdd_Bloke: we do try to improve things :)22:19
hendrixski_lifeless,  nope... it's still version .9022:20
hendrixski_and I cleaned out ~/.bazaar/subversion.conf, so it shouldn't be looking for trunk anywhere in there22:21
hendrixski_this is infuriating22:21
Odd_Blokehendrixski_: Nothing funky rewrite-wise happening on the server?22:22
radixhendrixski_: This is just speculation, but maybe it needs to read trunk if the branch has ancestry there. Not that I know anything about bzr-svn.22:22
hendrixski_Sooo. the tags on svn used to at one point have been called trunk/ and that's screwing up bzr-svn from reading it????22:22
Odd_Blokejelmer might save us.22:23
Odd_Bloke(SUBTLE PING)22:23
pooliespiv, did you fix, or have a fix in progress, for bug 82634?22:23
ubotuLaunchpad bug 82634 in bzr "smart server gives traceback on connection errors" [High,Confirmed] https://launchpad.net/bugs/8263422:23
poolieotherwise i might tackle it today22:23
jelmerOdd_Bloke: hi22:26
jelmerhendrixski_: tags was at one point named trunk?22:26
fullermdMan, what a great technique.  You sacrifice a goat on the proper altar, and jelmer appears.22:26
jelmerfullermd: I know sir, I should spend less time on IRC... :-P22:27
hendrixski_jelmer, I have no idea.  I'm asking if I understood the problem correctly.  That before it became tags, it was at one point trunk.  Is that where this "trunk" thing is coming from?22:27
jelmerhendrixski_: Yes, I think so.22:28
jelmerhendrixski_: is this repository public?22:28
hendrixski_jelmer, yeah.... lemme copy and paste that link22:29
hendrixski_http://svn.mythtv.org/svn/branches/release-0-20-fixes/mythtv/22:29
hendrixski_somebody else did something cool with that a while back, so I want to find the release that happened closest to the date they pulled from svn, then copy over their changes, then update to the latest... and then make a .deb package... but I can't even get started for some reason22:31
jelmerhendrixski_: At least I can confirm it doesn't work22:35
* hendrixski_ slams head on keyboard22:35
hendrixski_jelmer, thanks :-)22:35
jelmerhendrixski_: any chance you can file a bug about this?22:35
hendrixski_now at least I know to try a different strategy22:36
jelmerI don't have time to fix this bug at the moment, but I may have time later this week22:36
hendrixski_jelmer, I have the time to file one, yes22:36
jelmerthanks, that would be much appreciated22:36
hendrixski_!bugs22:36
ubotuIf you find a bug in Ubuntu or any of its derivatives, please file a bug report at: http://bugs.launchpad.net/ubuntu  -  Bugs in/wishes for the bots can be filed at http://launchpad.net/ubuntu-bots22:36
jelmerhttps://bugs.launchpad.net/bzr-svn/+filebug is the link you want22:37
hendrixski_lol, I was about to say, this doesn't look like an ubuntu bug :-p22:37
hendrixski_jelmer, is it like this one that you're already assigned on? https://bugs.launchpad.net/bzr-svn/+bug/6701022:40
ubotuLaunchpad bug 67010 in bzr-svn "Branch copies from non-branches don't work" [Medium,Fix released]22:40
hendrixski_or would it be best to file a new one, and submit a log message or two?22:41
jelmerhendrixski_: no, bug 67010 is a different issue22:41
jelmerhendrixski_: please file a new one, and mention the URL22:42
hendrixski_will do :-)22:42
hendrixski_jelmer, https://bugs.launchpad.net/bzr-svn/+bug/183361   :-)  is there any other info that would help?22:49
ubotuLaunchpad bug 183361 in bzr-svn "bzr-svn on a branches not working" [Undecided,New]22:49
jelmerthanks!22:50
jelmerlooks complete22:50
hendrixski_cool22:50
hendrixski_well, now I have to reformat my strategy of how I'm going to do this... well, vendor drop essentially22:50
hendrixski_jelmer, good luck22:51
jelmerthanks22:51
igcmorning22:57
foomhendrixski_: perhaps branching from http://svn.mythtv.org/svn/branches/release-0-20-fixes/ instead would work?22:57
spivpoolie: no, I don't think I have started on 8263422:57
pooliethx22:58
spivpoolie: I thought I remembered abentley had a patch for it that got rejected, but I can't find it now.  It might have been a good starting point.22:59
foomhey um, i'm looking at the bazaar-vcs.org site and I can't find any links to what changed in 1.123:01
pooliehttp://doc.bazaar-vcs.org/bzr.1.1/en/release-notes/NEWS.html#bzr-1-1-2008-01-1523:04
hendrixski_foom, lemme try that23:04
hendrixski_foom, that's ridiculous... that seems to be branching23:05
hendrixski_and  that's a TON of extra files23:06
hendrixski_way, more of the project than I need23:06
foomhendrixski_: in that case, you can probably do bzr svn-branching-scheme --set http://svn.mythtv.org/svn and then in the editor, put two lines: "trunk/*" and "branches/*/*"23:08
foomthen use your original command23:08
* hendrixski_ tilts head23:08
pooliespiv, re that patch23:09
poolieis it necessary to use bzr+http at all?23:09
spivpoolie: I don't quite understand the question.  You mean instead of http?23:10
Pengbzr+http is great for a dirstate branch.23:10
Pengs/dirstate/knit/23:10
PengNot so great for a pack branch.23:11
Pengs/branch/repo/g23:11
spivpoolie: Hmm,23:12
spivpoolie: there are a few significant speed improvements to the smart server in bzr.dev that aren't in 1.123:13
pooliei'm asking: in what way is 1.1 broken without this fix?23:13
hendrixski_foom, son of a gun.  That seems to have done it23:14
spivbzr+http:// URLs don't work (except in very unlikely circumstances, where the URL paths correspond directly to filesystem paths IIRC).23:15
hendrixski_I'm gonna go read about this branching scheme stuff... see what I missed,  but something about having to set up all that stuff doesn't seem right.23:15
pooliefoom, i added a link to the changelog from the download page23:15
pooliedo you think it should be anywhere else?23:15
foompoolie: I'd like to see a (much shorter) list of what changed on the main page with the release announcement.23:16
spivpoolie: so one thought that just occurred to me is that without the speed improvements in bzr.dev, perhaps there's not much practical benefit to bzr+http over http (assuming the webserver supports Range requests).23:16
spivpoolie: e.g. Peng last night reported that with a bzr.dev client and 1.1 on a bzr+http server that branching a knit branch was a bit slower (~10% IIRC) than plain http.23:17
spivpoolie: (with bzr.dev both ends, bzr+http was much faster)23:18
spivpoolie: (and for packs, plain http always won, but bzr.dev on the server was still a large improvement over 1.1)23:19
jamigc: ping, do you want to give me a call so we can make sure ssh is working?23:20
igcshall do in a few minutes if that's ok - family on phone currently23:20
pooliespiv, ok, so iiuc, this patch enables a feature that is not itself very useful yet?23:23
poolietherefor making a new release with this patch would not be a priority?23:23
igcpoolie: I think x.y.1 releases ought to be kept for critical bug fixes23:25
spivpoolie: yeah, I think so23:25
igcif the feature wasn't working previously, I don't think a 1.1.1 should be released to enable it23:25
igcwith a 4 week cycle, 1.2rc isn't far away23:26
igcif someone needs the fix before then, they can run on bzr.dev right23:26
igc?23:26
spivRight.23:27
jamigc: I sent you the details in an email. Try them out first, and then call me if you need to23:28
jamI'm going to be AFK23:28
igcjam:ok23:28
lifelessspiv: packs FTW huh ? :)23:31
spivlifeless: yep!23:35
poolieigc, i agree, i was just trying to determine if this was23:37
lifelessspiv: just wait till I get time to do the next index design23:52
spivlifeless: hmm, I seem to be getting worse performance with get_parent_map on an initial branch of bzr.dev, compared to using bzr.dev + recommended_page_size fix for RemoteTransport.23:57
lifelessspiv: bet you the remote end is 1.0 or so and the chunked stream is falling back to manual get_data_stream23:58
spivlifeless: -Dtimes -Dhpss says 187s to get up to Repository.stream_revisions_chunked, vs. 72s.23:59
spivlifeless: no, remote is bzr.dev23:59
lifelessok23:59

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