/srv/irclogs.ubuntu.com/2007/09/08/#bzr.txt

lifelessGzipFile is a wrapper around zlib in python that does what gzip does12:06
keirone sec on phone12:07
lifelessrobertc@lifeless-64:~$ python -m timeit -s 'one_hundred_million_bytes= "A"*1024*1024*100' -s 'import zlib' 'zlib.compress(one_hundred_million_bytes)'12:07
lifeless10 loops, best of 3: 2.64 sec per loop12:07
keircool12:16
keirlifeless, what do you think? or you haven't finished your coffee :)12:19
=== ionstorm [n=ion@70-58-119-250.phnx.qwest.net] has joined #bzr
keiri have to run, i'll be back in ~5 hours12:21
keiri'm going to be on a bus, i'll probably implement some stuff while i'm in transit12:22
=== grimeboy [n=grimboy@85-211-247-54.dsl.pipex.com] has joined #bzr
=== jbailey [i=jeffbail@nat/google/x-3909e46e0cdea95c] has joined #bzr
lifelessjbailey: long time no see!12:44
jbaileylifeless: Yup, finally settling enough to visit.12:45
jbaileyI understand that I missed your wife here on my first day.12:45
lifelesshow's the babe?12:45
lifelessoh shame12:45
jbaileyI couldn't get out of the orientation to sneak off and visit Leslie, though. =)12:45
jbaileyHe's terribly cute.  Much happier to not be stuffed into a car seat every day, though. =)12:45
lifelessyou drove all the way?12:46
jbaileyYeah.  We've put 3600 miles on the rental vehicle.12:46
jbaileyMmm.  Civilized measurements that's.. mm12:46
lifelessso thats what, 48 hours of driving ?12:46
jbailey5500km or so?12:46
jbaileyProbably a touch more.12:46
jbaileyIt was about two weeks, most days about 4 hours of driving.  Some with none, some with 6 or 7.12:47
=== tchan [n=tchan@lunar-linux/developer/tchan] has joined #bzr
=== mw is now known as mw|out
=== ionstorm [n=ion@71-35-73-85.phnx.qwest.net] has joined #bzr
=== BasicOSX [n=Basic@portcullis.real-time.com] has joined #bzr
Odd_Blokelifeless: As someone who's not particularly familiar with the innards of bzr is the work that keir is doing ATM aimed at reducing disk usage, decreasing computational overhead or a combination of the two?01:55
BasicOSXI did a bzr checkout --light-weight http://foo/bar/01:57
BasicOSXno when I cd into bar and do a bzr pull I get issues about read-only?01:58
BasicOSXbzr: ERROR: bzrlib.errors.UnlockableTransport: Cannot lock: transport is read only: <bzrlib.transport.http._urllib.HttpTransport_urllib url=http://bazaar.eqenchanters.org/WoW/AddOns/.bzr/repository/>01:58
thatchBasicOSX: yeah, that's because it's trying to pull _into_ the thing you did a checkout of01:59
thatchdo you mean to 'bzr up' instead?01:59
Odd_BlokeBasicOSX: You want 'bzr update'.01:59
Odd_BlokeToo slow. :(01:59
thatchmere seconds, Odd_Bloke...01:59
BasicOSXCan you point me to a url where it explains diff between pull and update? I assume a checkout --light-weight means bzr expects no changes will happen in that area and it's more or less r/o?02:01
thatchBasicOSX: if you have r/w access to the branch that it's bound to, doing a commit will write directly to that, and doing an update will read from it.  It's like push/pull but on a more svn-like scale.  I'm not sure if there's a good url... Odd_Bloke?02:05
Odd_Blokethatch: I've been looking around and there doesn't seem to be a brilliant explanation anywhere...02:07
thatchhalfway down http://bazaar-vcs.org/SharedRepositoryTutorial I find a decent set of steps02:10
=== fullermd considers his ML post on component description to be applicable :p
thatchI tried googling and didn't come up with anything, is it linked from the bazaar-vcs wiki?02:10
BasicOSXI'll take a look at that, thanks02:11
fullermdHm.  I think I'll steal that for a followup, actually, as a case in point.02:15
lifelessOdd_Bloke: keir is working on the index for pack repositories02:15
lifelessOdd_Bloke: I wrote a toy one, so that I could do some major restructuring vs knit repositories02:15
lifelessOdd_Bloke: with the intent of a) finding a victim^Wvolunteer to write a better one, or b) coming back later and doing a better one myself.02:16
=== gldnspud [n=gldnspud@72.171.93.139] has joined #bzr
=== calvin_ [n=calvin@wcnat-51-123.wheaton.edu] has joined #bzr
calvin_hello, how do i set up bzr to use a proxy in ubuntu?02:23
calvin_anyone?02:25
calvin_anyone alive at all?02:30
fullermdI think it checks a standard env variable, for HTTP at least...    HTTP_PROXY or http_proxy or something like that?02:30
calvin_yes, i know that much, but don't i need to put it into a config file?02:31
fullermdI'm pretty sure it'll read it out of the environment.02:32
fullermdThere may be a config file option for it as an alternate choice...  not sure.02:33
calvin_what do you mean 'read it out of the environment?02:38
calvin_do you mean it might detect my gnome proxy settings?02:39
fullermdI mean read the env variable, if it exists.  I dunno if gnome works via that or not; that's pretty far off my path.02:48
=== pete__c [n=pete@015-806-741.area5.spcsdns.net] has joined #bzr
=== Peng [n=mnordhof@fl-69-69-148-134.dyn.embarqhsd.net] has joined #bzr
=== yminsky [n=yminsky@user-0cevcqv.cable.mindspring.com] has joined #bzr
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #bzr
=== nir [n=nir@moinmoin/fan/nir] has joined #bzr
=== jml [n=jml@ppp121-44-214-123.lns1.hba1.internode.on.net] has joined #bzr
=== cypherbios [n=cyr@ubuntu/member/cypherbios] has joined #bzr
=== marianom [n=marianom@ubuntu/member/marianom] has left #bzr []
=== BasicOSX [n=Basic@fortress.tanners.org] has joined #bzr
=== BasicMac [n=Basic@fortress.tanners.org] has joined #bzr
=== michelp [n=michelp@70.103.91.130] has joined #bzr
=== abentley [n=abentley@bas8-toronto63-1088754407.dsl.bell.ca] has joined #bzr
=== luks [i=lukas@unaffiliated/luks] has joined #bzr
=== ipkiss [i=ipkiss@nat/ecp/x-3f8967539f089c2c] has joined #bzr
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #bzr
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #bzr
=== tchan [n=tchan@lunar-linux/developer/tchan] has joined #bzr
=== ddaa [n=david@canonical/launchpad/ddaa] has joined #bzr
=== mvo [n=egon@p54A667F5.dip.t-dialin.net] has joined #bzr
=== BjornT_ [n=bjorn@ip-213-190-55-148.static.b4net.lt] has joined #bzr
=== NamNguyen [n=namnt@cm246.delta196.maxonline.com.sg] has joined #bzr
=== mwh [n=mwh@81.187.73.203] has joined #bzr
=== g0ph3r [n=g0ph3r@p57A0949D.dip0.t-ipconnect.de] has joined #bzr
=== hstuart [n=hstuart@0x503e9913.virnxx12.adsl-dhcp.tele.dk] has joined #bzr
NamNguyenhi11:31
NamNguyenis there a service wrapper for bzr on windows?11:31
RadtooYou want to run bzr as windows service?11:35
NamNguyenyes i do11:36
Radtooas in "bzr serve" or something else?11:37
NamNguyenyes11:38
NamNguyenas bzr serve11:38
=== pygi [n=mario@83-131-3-200.adsl.net.t-com.hr] has joined #bzr
RadtooHmm, I haven't seen such a thing so far, tho I'm not doing this with windows either.11:42
RadtooI figure you could use srvany...11:45
hstuartNamNguyen, you should be able to use this to run bzr serve as a service: http://agiletesting.blogspot.com/2005/09/running-python-script-as-windows.html  though I'm not running Windows so I haven't tested it. Caveat emptor and all that stuff.11:46
NamNguyenthanks hstuart, i'll check it out11:46
Radtoooh you found a full howto. :D11:47
hstuartamazing what a google for python windows service can turn up ;)11:47
RadtooI see. :p11:48
RadtooTho looking at the tutorial, it's also amazing that you have to edit the registry, use one or many additional apps etc just to run a script as service :D11:50
hstuartWindows does pretty much everything through the registry, so I'm not terribly surprised by that11:51
RadtooI guess it was expected that everything setup related is handled by installers... hehe11:53
=== Demitar [n=demitar@c-212-031-190-120.cust.broadway.se] has joined #bzr
=== NamNguyen [n=namnt@cm246.delta196.maxonline.com.sg] has joined #bzr
=== mwh [n=mwh@81.187.73.203] has joined #bzr
=== phanatic [n=phanatic@dsl5400C472.pool.t-online.hu] has joined #bzr
=== sabdfl [n=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr
=== BjornT [n=bjorn@canonical/launchpad/BjornT] has joined #bzr
=== Gwaihir [n=Gwaihir@ubuntu/member/gwaihir] has joined #bzr
=== pygi [n=mario@83-131-94-96.adsl.net.t-com.hr] has joined #bzr
=== gldnspud [n=gldnspud@72.171.93.139] has joined #bzr
=== mwh [n=mwh@81.187.73.203] has joined #bzr
=== mwh_ [n=mwh@81.187.73.203] has joined #bzr
=== mwh_ is now known as mwh
=== ddaa_ [n=david@canonical/launchpad/ddaa] has joined #bzr
=== Zindar [n=erik@h188n1fls12o803.telia.com] has joined #bzr
=== Demitar [n=demitar@c-212-031-190-120.cust.broadway.se] has joined #bzr
=== tchan [n=tchan@lunar-linux/developer/tchan] has joined #bzr
=== nir [n=nir@moinmoin/fan/nir] has joined #bzr
=== fog [n=fog@debian/developer/fog] has joined #bzr
=== Zindar [n=erik@h188n1fls12o803.telia.com] has joined #bzr
=== Zindar [n=erik@h188n1fls12o803.telia.com] has joined #bzr
=== vila [n=vila@lec67-4-82-230-53-244.fbx.proxad.net] has joined #bzr
=== mwh [n=mwh@81.187.73.203] has joined #bzr
=== bigdog [n=scmikes@160-201-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== mwh [n=mwh@81.187.73.203] has joined #bzr
=== fog [n=fog@debian/developer/fog] has left #bzr []
=== hsn_ [n=radim@234.114.broadband5.iol.cz] has joined #bzr
=== bigdo1 [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== bigdo2 [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== bigdo3 [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== tchan [n=tchan@lunar-linux/developer/tchan] has joined #bzr
=== fog [n=fog@debian/developer/fog] has joined #bzr
=== keir [n=keir@bas15-toronto12-1168009096.dsl.bell.ca] has joined #bzr
=== grimboy [n=grimboy@85-211-255-93.dsl.pipex.com] has joined #bzr
=== bigdog [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
keirlifeless, around?06:05
abentleykeir: unlikely at this hour in Australia.06:06
abentleyHe usually shows up in around four hours, but not very often on weekends.06:06
keiryes, i just checked world clock :)06:09
=== nir [n=nir@moinmoin/fan/nir] has joined #bzr
=== bigdog [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
abentleykeir: $ TZ=Australia/Sydney date06:14
=== bigdo1 [n=scmikes@72-197-8-8-arpa.cust.cinci.current.net] has joined #bzr
=== asabil [n=asabil@ti0035a340-0802.bb.online.no] has joined #bzr
=== gldnspud [n=gldnspud@72.171.93.139] has joined #bzr
=== mathbr [n=info@p54B37D41.dip.t-dialin.net] has joined #bzr
mathbrHi. How can I tell bzr to ignore one or more files in a local branch no matter what happens? Those files should never ever be invoked in merge's and send's.06:32
abentleymathbr: You should not "bzr add" files if you don't want bzr to merge or send them.06:32
abentleyYou can use "bzr remove --keep" to un-add the files.06:33
mathbrAnd then they won't get touched when, let's say, someone modifies those files in the original repo?06:33
abentleyRight.06:33
mathbrI'll try that then, thanks.06:33
abentleyThe first time you pull or merge, after the files have been removed, they will be deleted.06:34
mathbrHm... Just saw that the deletion is also visible in a send... I don't want it to appear there either...06:35
=== mwh [n=mwh@81.187.73.203] has joined #bzr
abentleyIt's a one-time thing.06:36
mathbrHow to get to the second-time?06:36
abentleycopy the files before merging/pulling them.06:37
mathbrI did changes to some local files and want to create a patchfile now but without the deletion of that other file06:37
abentleyWell, if you just want to create a patch, you can do "bzr diff".06:37
abentleyThat lets you specify which files you want to include.06:38
mathbrI know. But I was told to create a branch and to patches via send to make merging easier.06:38
=== jbellis [n=jbellis@69.60.124.247] has joined #bzr
abentleySo either create a patch with just the files you want, or do a send, and deal with the fact that these files are gonna be deleted.06:39
=== jbellis [n=jbellis@69.60.124.247] has left #bzr []
mathbrI'll look into that, thanks.06:40
abentleyOr else, shelve the changes to the files, commit a new revision, send that, and unshelve.06:41
mathbrI'd have to do that for each commit, right?06:42
abentleyWell, I'm assuming you've already committed these changes to the local files.06:42
abentleyIn the future, you can avoid committing changes to those files.06:43
mathbrAh well, I'll just return to a normal checkout and drop my branch.06:48
mathbrabentley: Thanks for your help and bye06:51
abentleyNo problem.06:51
=== mathbr [n=info@p54B37D41.dip.t-dialin.net] has left #bzr []
keiris there a reason KeyboardInterrupt isn't caught at the top level?06:54
abentleyIt would suck if you couldn't ^C out?06:54
keirno, as in, i get a 5 page traceback06:54
abentleyThat's not typical.06:54
keirrather than 'bzr: interrupted'06:54
keirit happens for all my tests when i hit C-c right away after hitting 'enter' on the command06:56
keiralso: my repository should never be broken if I do a ctrl-C partway through, correct?06:56
keiron any operation?06:56
abentleyWell, you may be ^C-ing too early, but that's still surprising.06:57
abentleyIt's always safe to ^C.  The worst case, if you do it while writing to the repository, is that you'll get some unreferenced data.06:58
keiroh, but that won't get caught and cleaned up?07:00
abentleyNo, repository operations are strictly append-only.  Cleanup would violate that and increase the risk of data corruption.07:00
jelmer'evening keir, abentley07:00
keirmorning!07:01
jelmerabentley: has anything changed in the is_ancestor() code since 0.90 ?07:01
abentleyHi jelmer.  Was there something you wanted to ask me?07:01
abentleyI'm not aware of any changes to is_ancestor.07:01
jelmerabentley: It is trying to call get_revision(None).parent_ids in 0.90 but works fine in bzr.dev07:01
abentleyAre you passing None in as a parameter?07:02
jelmerI'm pretty sure I don't, but let me check..07:03
abentley'cause we did do a whole bunch of changes where we stopped returning None for the null revision.07:03
=== mwh [n=mwh@81.187.73.203] has joined #bzr
abentleySo if you're passing in Branch.last_revision, or Tree.last_revision, that might have been None in 0.9007:04
jelmerabentley: ah, you're right07:05
jelmerYes, I am passing in the result of Branch.last_revision()07:05
jelmerthanks!07:05
abentleyYou can use revision.ensure_null to fix it up.07:05
abentleyNo problem.07:06
jelmerI would expect Branch.last_revision() to return NULL_REVISION in this case though. Why is it still returning None?07:07
abentleyThe NULL_REVISION changes landed in two batches.07:08
abentleyFirst was input, second was output.07:09
abentleyBecause the output changes are API breaks.07:09
abentleyBranch.last_revision has returned None since the first release of Bazaar.07:11
=== bigdo1 is now known as bigdog
jelmerah, makes sense07:11
keirwow, is bzr share (aka zeroconf support) going to be targetted for upstream inclusion?07:20
mwhoh crap, i meant to mention that in my talk07:31
mwhoh well, i ran out of time anyway07:32
=== asak [n=alexis@201-1-44-165.dsl.telesp.net.br] has joined #bzr
keirbzr share is the type of polish that can make someone impressed enough to switch07:36
keirhas anyone considered build a 'branch registry' for umbrella projects with communities of developers?07:39
keirs/build/building/07:40
keirwhere bzr itself would know about the project (rather than just a branch or single repository)07:40
keirand you could do things like bzr list-community-branches07:40
keirbzr branch community://packs-refactor07:40
keiror maybe bzr branch project://branch-name07:41
keiris it possible for transports to be added as plugins?07:42
lukswith python it would be quite hard to _not_ make it possible :)07:44
abentleyCertainly: WebDAV is already implemented that way.  And see the lp: plugin07:45
keiraah, ok07:46
keirabentley, is there a page for the lp: plugin?07:48
=== sabdfl [n=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr
abentleyNo.  It comes with Bazaar.07:57
keiri see register-branch, but that's it07:59
abentleybzr help launchpad08:01
keirneat08:04
=== grimeboy [n=grimboy@85-211-248-174.dsl.pipex.com] has joined #bzr
=== grimeboy [n=grimboy@85.211.235.177] has joined #bzr
=== grimeboy [n=grimboy@85-211-251-122.dsl.pipex.com] has joined #bzr
=== g0ph3r [n=g0ph3r@p57A09CE8.dip0.t-ipconnect.de] has joined #bzr
=== ionstorm [n=ion@71-36-164-32.phnx.qwest.net] has joined #bzr
=== jdong [n=jdong@ubuntu/member/jdong] has joined #bzr
=== jdong [n=jdong@ubuntu/member/jdong] has joined #bzr
=== arjenAU [n=arjen@mysql/community/arjenAU] has joined #bzr
nirSome tests fail on Mac OS X11:59
nirFAIL: test_sftp_transport.SFTPTransportTestRelative.test__remote_path11:59
nir    not equal:11:59
nira = '/tmp/testbzr-xN4cVR.tmp/tmpRpl0nW/work/relative'11:59
nirb = '/private/tmp/testbzr-xN4cVR.tmp/tmpRpl0nW/work/relative'11:59
nirThe test is broken - /tmp is symlink to /private/tmp :)12:00
=== yminsky [n=yminsky@user-0cevcqv.cable.mindspring.com] has joined #bzr

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