[12:03] Yeah, IIRC bzr-svn will create consistent changeset IDs. [12:03] so you could even each do your own checkout from the svn source. [12:03] (Not sure how one handles sharing between svk instances... but that's probably just due to ignorance on my part.) === pygi [n=mario@83-131-22-165.adsl.net.t-com.hr] has joined #bzr === Rotund [n=rotund@d28-101.rb2.lax.centurytel.net] has joined #bzr [12:19] Hmm. It looks like bzr-svn can't handle HTTP authentication for a svn repo. [12:19] Unless I'm missing something. Why do I always have to be the corner case? :p [12:20] :D [12:23] Ooh, nope, found a bzr bug. [12:24] NfNitLoop, 0.90 has that problem, 0.18 should work fine [12:24] at least I've used http auth since 0.12 === mthaddon [n=mthaddon@canonical/launchpad/mthaddon] has joined #bzr [12:28] Hmm, 0.90 was using urllib, so I installed pycurl. [12:28] Now it's complaining that my cert is invalid. :p [12:28] (self-signed) [12:29] urllib is fine [12:29] NfNitLoop: for svn [12:29] NfNitLoop: use the svn client to authenticate [12:29] NfNitLoop: then it will work, nothing to do with urllib/pycurl [12:29] beuno: ^ FYI [12:30] Hmm. how so? [12:30] I'm doing bzr branch, how would I use the svn client to auth? [12:32] aaah, right, I use http auth directly to bzr, don't use svn at all :D thanks lifeless for the info though [12:32] beuno: do you know what he's talking about? [12:33] How do I auth with the client? [12:33] lifeless: or do you mean do 'svn co', then use bzr on the checked-out copy? [12:33] that's not really what I want. I want a native bzr branch. :) [12:33] NfNitLoop: right [12:34] NfNitLoop: 'svn ls URLYOUWANTTOUSEWITHBZR' [12:35] still not quite following. [12:35] svn list isn't going to get me a checkout. :p [12:35] (or branch) === jml [n=jml@ppp121-44-221-92.lns1.hba1.internode.on.net] has joined #bzr [12:40] NfNitLoop: it will cause svn to authenticate [12:40] and cache the credentials for libsvn to use [12:40] which bzr-svn uses [12:40] you could actually try doing what I suggest you know [12:41] hmm, I'm grumpy today; excuse me and I'll get breakfast - blood sugar++ === beuno hands lifeless a donut [12:42] irc is so cheap... :p [12:48] lifeless: aah. well I suspect it still wouldn't work since it's barfing on my SSL cert at the moment. [12:48] but if authentication fails I'll give that a try, thanks. === arjenAU [n=arjen@mysql/community/arjenAU] has joined #bzr === poolie [n=mbp@ppp112-44.static.internode.on.net] has joined #bzr === marplatense [n=marplate@252-58-231-201.fibertel.com.ar] has joined #bzr === marianom [n=marianom@ubuntu/member/marianom] has joined #bzr === marianom [n=marianom@ubuntu/member/marianom] has left #bzr [] [01:17] lifeless: Hmm. svn ls works and has saved my auth. bzr branch still fails saying: Unable to handle http code 401: expected 200 or 404 for full response. [01:17] Oh, 401. *doh* [01:17] No, yeah, that's authentication failed. [01:17] I thought it was 404 for a sec. :p === Rotund [n=rotund@d28-101.rb2.lax.centurytel.net] has joined #bzr [01:24] jelmer: ^ === abentley [n=abentley@bas8-toronto63-1088754407.dsl.bell.ca] has joined #bzr [01:28] NfNitLoop: please try prefixing with svn+ [01:29] bzr branch svn+ [01:31] I did that and got the same error... [01:31] though I jsut tried bzr svn-imoprt svn+https://... [01:31] and it's... doing something. [01:31] Oh, nope, failed. "Undefined tunnel scheme: https" [01:32] (This is all with bzr 0.90 and bzr-svn 0.41, btw.) [01:33] please try the current 0.4 brancxh [01:33] is this a public svn repository? [01:34] No. [01:34] It's using HTTP Auth & SSL. [01:34] that should work ok in current 0.4 [01:35] 0.41? Or the dev branch? [01:35] the dev branch [01:35] ok, I'll download that and give it a shot. [01:35] I've fixed the handling of svn+https:// [01:35] aaah. [01:35] cool. Thanks! === igc [n=igc@ppp59-167-96-213.lns3.bne1.internode.on.net] has joined #bzr === yminsky [n=yminsky@user-0cevcqv.cable.mindspring.com] has joined #bzr [01:44] jelmer: It's doing something now. It didn't like that I had it in a shared repo directory, so I'm doing it outside of there. [01:44] Is it not able to use shared repos? [01:44] it uses an unsupported repository format [01:45] the nested trees one [01:45] if your repo format is in that format it will work, but you can't interoperate with most bzr trees [01:46] ah, I could create a shared repo in that format? [01:46] That's good. This could get large. :) [01:46] yes, 'bzr init-repo --dirstate-with-subtree' [01:49] hey, looks like tortoisehg is based on tortoisebzr [02:00] Good morning. [02:01] 'morning [02:03] Hmmm. I use the typical svn trunk/ branches/ tags/ root. Should I be branching the root, or trunk? [02:05] igc: morning [02:05] spiv: morning [02:05] spiv: visiting? [02:05] igc: ring my mobile if you would, lets talk commit [02:06] shall do - give me a few more minutes to scan emails [02:06] NfNitLoop: You should be branching /trunk or use svn-import to import the repository (which will splitup into multiple branches) [02:08] lifeless: yeah, I'll head off fairly soon. [02:08] Ooooh. *lightbulb* :) === poolie [n=mbp@ppp112-44.static.internode.on.net] has joined #bzr === keir_ [n=keir@76-10-155-93.dsl.teksavvy.com] has joined #bzr [02:16] So it's plugging away at my very large svn repo. and in the meantime, in another dir, I'm trying to check out a tiny test repository. [02:16] if I try to branch /trunk, I get ... [02:16] KeyError: 'readme.txt' [02:17] and if I try to svn-import the root, I get ... [02:17] bzr: ERROR: Invalid revision-id {None} in SvnRepository(my repo URL) [02:19] which bzr-svn branch are you using? [02:19] the 0.4 branch. [02:19] parent branch: http://people.samba.org/bzr/jelmer/bzr-svn/0.4/ [02:20] hmm, that should be ok === jelmer runs bzr-svn selftest just to make sure nothing is broken atm [02:21] hey, find_previous_heads() has been deprecated? [02:21] I wonder if my little test repo is somehow a "special" (ie: foobar'd) case. === jamesh [n=james@canonical/launchpad/jamesh] has joined #bzr [02:22] bzr-svn has worked ok against a large number of repositories with all sorts of weird changes in them [02:23] it's been a while since I've come across a pull bug [02:24] the 'readme.txt' it's complaining about was checked in in the first revision, along with the dirs trunk/ branches/ and tags/ [02:24] (I notice that is not the case in my larger... seemingly working repo) [02:25] hi jelmer [02:25] lifeless, i have no objection to removing get_deltas [02:25] NfNitLoop: if the test repo doesn't contain any private data, can you perhaps send me a svn dump of it? [02:25] 'morning poolie [02:26] morning poolie [02:26] jelmer: Sure. [02:27] better yet, I'll try to reproduce it. [02:27] and send you that, for a smaller case. [02:27] igc, hi [02:27] NfNitLoop: cool, thanks! My address is jelmer@samba.org === mw is now known as mw|out === kanhaiya_kk [n=kanhaiya@freemap.in] has joined #bzr === jml_ [n=jml@203-113-250-169-static.TAS.netspace.net.au] has joined #bzr === BasicOSX [n=Basic@fortress.tanners.org] has joined #bzr [03:07] poolie: then send a bb:approve :) === jml_ is now known as jml [03:07] i thought i read an rfc about it not a patch [03:07] keep reading [03:07] :) === wedderburn [n=andrew@ppp194-10.static.internode.on.net] has joined #bzr [03:08] this is your thread about knits and get_deltas()?_ [03:09] i see [03:13] i'm reading it [03:15] hello all, i have a rather cryptic message spat out when i pushed a new revision of something - "ERROR: Can't rename /srv/sm-ng/push-branches/00/00/0c/bf/.bzr/repository/lock/wbei8a3n94.tmp to /srv/sm-ng/push-branches/00/00/0c/bf/.bzr/repository/lock/held: /srv/sm-ng/push-branches/00/00/0c/bf/.bzr/repository/lock/held already exists" does anyone have a idea what it means, thanks [03:16] wedderburn, it's failing to acquire a lock [03:16] um, it's strange that you're getting this rather than just 'waiting for lock' [03:16] jml, spiv: ping? [03:17] poolie: hi [03:17] poolie: wassup? [03:17] jml, can you look on the sm at the directory wedderburn talks about [03:17] thanks [03:17] wedderburn, did bzr just stop after giving that error? [03:18] can you try it again with [03:18] bzr -Derror push ..... [03:18] poolie: alas no, I don' t have access to that yet. [03:18] really [03:18] poolie: yes bzr stopped after the erro [03:18] r [03:19] i'll try the command now and tell you what it spits out [03:21] poolie: yeah, it's in the works though. [03:22] poolie: heres what it spat out http://andrew.wedderburn.googlepages.com/bzr-error.txt [03:28] thanks [03:32] spiv, the traceback shows we're raising this because we don't understand what the sftp error means [03:32] did anything change with the sftp server there? [03:32] yes. [03:33] jml, does that error message look like something you wrote? [03:34] poolie: it could well be. [03:34] I guess bzr+ssh:// instead of sftp:// might dodge this error. [03:36] That error message comes straight out of twisted.vfs.backends.osfs I think. [03:36] Where it raises AlreadyExistsError [03:37] Which the sftp adapter should turn into a FX_FILE_ALREADY_EXISTS in the SFTP protocol. [03:40] wedderburn, could you try substituting bzr+ssh for sftp in the url please [03:40] I thought we had acceptance tests for bzr's treatmnet of the sftp behaviour [03:40] in lp [03:40] yes, but apparently the lp behaviour has changed [03:40] this is a different misbehaviour to the one you might be thinking of [03:41] lifeless: we do. [03:41] poolie: i'll do that now [03:41] poolie: the ExistingContent review comment [03:42] poolie: I'm confused, when I look at the patch without the trimming the fmt string is quite clear to me [03:42] poolie: so I'm not sure - are you asking me to duplicate the format string into the doctstring? [03:42] poolie: the lp behaviour changing should be caught by lp acceptance tests. [03:42] poolie: I mean, what comes to mind is 'This is an exception raised when the content being inserted is already present' [03:42] poolie: and that doesn't seem helpful. [03:43] you could change the docstring to just a comment [03:44] it seems like a very strange docstring at presentt [03:44] poolie: Unable to obtain lock lp--1216787156:///lock [03:44] held by andrew.wederburn@gmail.com on host andrew-laptop [process #10620] [03:44] locked 22 hours, 50 minutes ago [03:44] Will continue to try until 02:47:26 [03:44] wedderburn, thanks [03:44] assuming that process is not still running [03:44] just use bzr break-lock $url [03:44] ok [03:44] poolie: I'll make it a comment then. Though I thought you wanted introductory-api notes in docstrings, which is why I added it (most exceptions dont have docstrings at all) [03:45] on either sftp or bzr+ssh [03:45] iirc the thing i said we should document the introduction of was rpcs [03:46] oh, I took it to be all api's [03:47] poolie: and now? [03:48] now you should be fine to push [03:49] k [03:50] poolie: using the sfpt://... ? [03:50] either way [03:50] bzr+ssh will be a bit faster [03:51] poolie: :) it works now thanks === pete__c_ [n=pete@015-806-741.area5.spcsdns.net] has joined #bzr [03:51] thanks for reporting it [03:52] :) [03:52] well im off thanks for all the help everyone === wedderburn [n=andrew@ppp194-10.static.internode.on.net] has left #bzr [] === keir_ is now known as keir [03:59] poolie: is it ok with you if I merge http://bundlebuggy.aaronbentley.com/request/%3C20070903164726.GA22003@steerpike.home.puzzling.org%3E ? === jml_ [n=jml@203-113-250-169-static.TAS.netspace.net.au] has joined #bzr [04:00] does it fix the bugs with tag branhces on initial pull [04:00] that is does it stop using the tarball hack ? [04:00] It stops using the tarball hack. [04:00] then I'm pro it going in noweth [04:00] but today would be the latest I think [04:00] I don't know about the tags issue; should there be an automated test written for that? [04:01] (It stops using the tarball hack on the client entirely; it will fallback to VFS operations) === mkanat [n=mkanat@c-71-202-202-106.hsd1.ca.comcast.net] has joined #bzr [04:02] Is there a machine-readable output that would consistently allow me to tell that a plugin is installed? [04:02] bug 129717 I think [04:02] Launchpad bug 129717 in bzr "Bizarre error when checking out from bzr server mode" [High,Triaged] https://launchpad.net/bugs/129717 [04:02] I don't necessarily want to rely on "bzr plugins" since that text could change. [04:02] mkanat: python -c 'import bzrlib.plugins.pluginname' [04:02] lifeless: Thank you. :-) [04:02] spiv, thanks for that [04:03] lifeless: looking at http://bundlebuggy.aaronbentley.com/?selected=pending&unreviewed=n, have the manually tracked ones been merged yet? If not, do we want them in 0.91? [04:04] igc: we're in freeze [04:04] igc: so everything needs poolies magic pixie dust [04:04] jelmer: Hmmm. checking out my big repository fails. It locks up my box for a while, while the HD thrashes, then it just says "Killed" and stops. The box only has 512M RAM. How RAM intensive is it? [04:04] poolie: can I merge the one you approved for 0.91 ? [04:04] i approved a few... [04:04] sure. I'll take that as a "no" to not yet merged. [04:05] all up, we have 10 changes approved or conditionally approved [04:06] NfNitLoop: yes, there's a leak in the python-subversion bindings (see bug 54253) [04:06] Launchpad bug 54253 in bzr-svn "Excessive memory usage in bzr-svn" [Undecided,Confirmed] https://launchpad.net/bugs/54253 [04:06] NfNitLoop: but you can restart the process if you're importing to a shared repository [04:06] lifeless: And is there a way to get from bzr the path to its default python interpreter? [04:06] for http://bundlebuggy.aaronbentley.com/request/%3C1187769804.17572.104.camel@localhost.localdomain%3E, [04:06] mkanat: I think bzr --version will show that [04:07] i agree with john's comments [04:07] lifeless: Yes, it does! :-) [04:07] lifeless: Thank you. :-) [04:07] i guess there is no small way to address them? [04:10] poolie: fyi, one change I had hoped we'd see in 0.91 is this one: http://bundlebuggy.aaronbentley.com/request/%3Cfaekm0$qvu$1@sea.gmane.org%3E [04:11] poolie: I will fix that one, haven't yet. [04:11] New bug: #137668 in bzr "bzr doesn't understand new 'directory already exists' message from codehosting sftp server" [Undecided,New] https://launchpad.net/bugs/137668 [04:11] jelmer: is there any way to do it in small chunks? [04:11] http://bundlebuggy.aaronbentley.com/request/%3C1187769900.17572.106.camel@localhost.localdomain%3E [04:11] same, ok to merge with john's change [04:11] jelmer: instead of waiting for it to get killed? :p [04:11] abentley approved it but I wanted some changes ... [04:13] we haven't heard back from Fabio though and it would be a shame to see it fall into limbo because no one was driving it [04:13] poolie: any thoughts? [04:13] igc: that patch is broken [04:13] + filtered_list.append(f) [04:13] + except: [04:13] + invalid_filenames.append(f) [04:13] bare except: it will stop ctrl-C [04:14] lifeless: can you explain further? [04:15] ctrl-C at the right time will make the path being sorted into an invalid path, even if its valid, and bzr will continue rather than exiting [04:15] 'except:' is verboten [04:15] Ahhh [04:15] its only *ever* ok when there is a 'raise' immediately after it. [04:15] interesting: [04:15] mbp@grace% bzr merge http://bundlebuggy.aaronbentley.com/download_patch/%3C1188888611.6248.3.camel@nemo%3E [04:15] M NEWS [04:15] All changes applied successfully. [04:15] bzr merge 1.08s user 0.09s system 35% cpu 3.282 total [04:15] mbp@grace% bzr di === sri [i=[k1wKiGW@onyx.spiritone.com] has left #bzr [] [04:22] poolie: can I merge http://bundlebuggy.aaronbentley.com/request/%3C1189031297.27465.2.camel@lifeless-64%3E for 0.91 === Kamping_Kaiser [n=kgoetz@gnewsense/friend/kgoetz] has joined #bzr [04:23] with those doc changes [04:23] yes [04:23] thanks [04:23] thanks for writing it :) === jamesh_ [n=james@canonical/launchpad/jamesh] has joined #bzr [04:29] lifeless: Ah, I have a proooooblem. :-) [04:29] lifeless: I need to know if a plugin is installed by the functionality it offers, not by its name. [04:29] lifeless: That is, because the name can be anything the directory is called, and I need some reliably way of determining if the functionality is available. [04:30] *reliable [04:30] mkanat: no [04:30] mkanat: plugins have canonical names [04:30] plugins depend on other plugins by name [04:30] its not installed if its not under its official name [04:30] lifeless: Hrm. [04:31] lifeless: And that's true for xmloutput? [04:31] lifeless: bzrtools I have no problem with. :-) [04:31] That will always be called bzrtools. There's almost always a distro package for it, too. [04:32] mkanat: this is the contract for bzr pluigns [04:32] if someone does something different they haven't isntalled the plugin correctly === ion [n=ion@70-58-119-250.phnx.qwest.net] has joined #bzr [04:33] lifeless: Okay. [04:33] I mean, if I put bzr on my path as 'bzr-temp-copy' [04:33] you can't be expected to figure that out [04:34] this is the same problem basically [04:34] Hahaha. :-) Okay. :-) [04:35] given you want to be able to use a command [04:35] just run 'bzr xmloutput' [04:35] and if you get an error show the user the output from bzr [04:35] Well, that particular plugin doesn't provide a command. [04:35] it provides options though [04:35] But I'm using the import method, that works fine. :-) [04:35] Yeah, it does. [04:35] and if its not installed the option will error [04:36] Just so you know what I'm doing, I'm writing tests that I have to skip if bzrtools and xmloutput aren't installed. [04:37] (But from another language.) [04:38] ok === Verterok [n=Verterok@184-220-114-200.fibertel.com.ar] has joined #bzr === jml_ [n=jml@ppp121-44-221-92.lns1.hba1.internode.on.net] has joined #bzr === NfNitLoop [i=codyc@cpe-70-112-28-217.austin.res.rr.com] has joined #bzr === Rotund [n=rotund@d28-101.rb2.lax.centurytel.net] has joined #bzr === ollie [n=orutherf@dsl092-164-022.wdc2.dsl.speakeasy.net] has joined #bzr [05:24] BTW, <3 bzr, guys. :-) [05:25] Every time I have to use CVS or some other crazy VCS, I wish it was just bzr. [05:25] mkanat: y'know, bzr can act as a front-end to other VCSes. :) [05:26] (I'm playing with bzr-svn this evening.) [05:26] NfNitLoop: Cool. :-) [05:26] NfNitLoop: Well, see...I'm the author of a library that interfaces with VCSes. :-) [05:26] So I have to actually *use* them. :-) [05:26] Doh. :p [05:27] I thought bzr was kind of hard to understand for newbies, until I tried git. :-) === jml_ is now known as jml [05:28] mkanat: Yeah... I tried out several DVCSes a while back... [05:28] I think I started with gnu arch. [05:28] it seemed... tedious. [05:28] Wow. :-) [05:28] Yeah, I'd imagine. [05:28] I don't anybody really uses Arch anymore. [05:28] Yeah. It was just the one I'd heard of. [05:29] so I started with it. [05:29] Yeah, as far as ease of use and sensible, complete implementation of features, bzr is the best one I've used. [05:29] anyone: How do I remove a lock on a shared repository if the process that created the lock has died? is it safe to rm -r .bzr/repository/lock/ ? [05:30] NfNitLoop: bzr break-lock [05:30] jml: thanks. I figured there'd be some command. :) [05:33] jelmer: Doh. Yeah, resuming from a shared repo didn't work too well. :p [05:33] jelmer: bzr: ERROR: exceptions.KeyError: 'design' (the name of a folder in the repo) [05:48] lifeless: pong [05:50] spiv: I'd prefer to merge the reconcile fix first. I don't want to break fetch without providing a way to fix fetch. [06:05] abentley: ok, I will do a revision-index cross check patch [06:05] Wow, you really have a hate on for RevisionParentsProvider. [06:06] heh, I don't think I would have put it that way [06:17] but I don't think we should add additional code to work around other code that we should have being absent [06:18] and for things like check/reconcile on a remote repository this is clearly going to be doing much more work than we want [06:24] a$ rm -rf .bzr && bzr --no-plugins init --experimental && bzr --no-plugins add > /dev/null && time ~/source/baz/repository/bzr --no-plugins commit -m "Initial commit" -q [06:24] [06:24] real 2m12.203s [06:24] thats annotation-less packs [06:24] user 1m58.647s [06:24] sys 0m6.256s [06:24] I'm aiming for 1m12 [06:24] so 60 seconds to go [06:25] This is for moz? [06:25] yup [06:25] 550MB of source, 55K files === uws [n=mathilda@213.207.93.150] has joined #bzr [06:26] I suppose delta generation time doesn't come into play at all for the initial commit? [06:26] not at all [06:26] unless we were to do deltas-against-NULL [06:26] Which should be fast-pathed. [06:27] so initial commit is great for finding constant factors that will affect all commits [06:27] like zip overhead [06:27] and api friction [06:27] in should be only slightly slower than for path in paths: compress(path) [06:27] lifeless, i'm pretty sure i know how to build a graphindex nicely now. compressed and tightly encoded and spatially coherent. [06:27] s/in/it/ [06:28] keir: thats excellent news. Care to describe it in a mail to me/the list ? [06:28] yes [06:28] Yeah, I was a little worried about your earlier talk of removing get_deltas, but then I realized it's not what I'm using to get matching blocks. [06:28] abentley: yah, that why I was pinging in fact, but Ifigured it out [06:28] lifeless, it's going to take me some time to write up, but absolutely. there are a couple little things i have to think about, but hopefully i'll have a description ready before tmrw night [06:29] keir: cool. Don;t worry about those things- I mean do worry, but don't block on documenting your thoughts, because perhaps I can offer some feedback that will help you with them [06:29] I was expecting Xdelta was going to go into pack repos, but I haven't heard anything on that front for some time. [06:30] keir: also tomorrow is a public holiday for me, so you may not hear back till my monday - but it won't be me ignoring you :) [06:30] abentley: IIRC there was some performance issue there. [06:30] Oreilly? [06:30] abentley: and open questions about bytes vs lines as the delta form [06:30] didn't john say xdelta application was slower due to bytecode interpretation or something? [06:31] I thought it was creaming MPdelta, which was creaming knit in turn. [06:32] anyhow, I'm happy to support a few pack repository versions if we can deliver something moderately high performing in the short term and rev it - getting past the current 'you are too slow kthxbye' is the immediate priority [06:32] not that I want to do that [06:32] just that I think its ok [06:33] I am okay with that also. [06:33] But I would rather have Xdelta or MPdiff than knit. [06:34] I'll talk to John. [06:35] why is mpdiff faster than knits ? [06:36] is it faster in both directions, and does it need more or less data on average to construct a text (how do full-texts fit in etc) [06:36] if this is already on-list thats fine [06:41] lifeless: the mpdiff text reconstruction algorithm doesn't generate intermediate texts, and never inserts in the line list, only appends. [06:42] I don't know whether it's faster or slower for creating the mpdiff. [06:43] "more or less data" is tricky to answer. More revisions, less data in each revision. [06:43] lifeless, i'm confused - the 'implement chunked encoding' patch is not yet approved [06:43] poolie: thats not he patch under discussion [06:44] poolie: so indeed, you are confused :) [06:45] abentley: ok; and presumably this no-insertion behviour is hard to do for knits [06:45] lifeless, ok so here's the short version of what i'm thinking [06:45] lifeless: You just have to massage the offsets more. [06:46] New bug: #137681 in bzr "bzr: ERROR: Unable to delete transform temporary directory" [Undecided,New] https://launchpad.net/bugs/137681 [06:46] lifeless, there are three parts to a graphindex. 1) index preamble (an index to the index) 2) the index, which lets you map from string key -> integer hash, and also contains the values 3) the graph store, which is just like the current storage scheme, but the keys are entirely ommitted. [06:46] But what I really dislike about knits is they don't properly delta the final newline, and screw up attempts to extract matching blocks. [06:47] You have to extract the fulltext to get the matching blocks out. [06:47] 1) is a lzw'd or other streaming compressed index (just like in a book) into the 'chunks' of the index. [06:48] They also don't provide an indication of the number of lines in the file. [06:48] 2) is a series of 'chunks' each indepently lzw'd, which contain key->hash,val_len,val ... [06:48] each 'chunk' in 2) is the same size. because of how lzw works, we can still make each chunk mostly the same size [06:49] then 3) is just a list of the edges as straight up offsets; the id of a key is just the byte offset in section 3) of that node [06:49] section 3 is toposorted, such that the enumeration of the hashes corresponds to the toposort of the keys [06:50] this has a variety of nice properties for traversing the graph [06:50] abentley: these are all good points. [06:51] there is some debate on whether to include the values in 2) or 3). in 2), the keys will be compressed; but if they are in 3), then if you only care about the values it traversal, you get them for free without having to re-query the index for each key [06:51] abentley: I'd be happy to see packs using mpdiffs given them. Its not top of my priority list (my time on bzr at the moment is really focused on helping out with perf - I'm not in the bzr department @ canonical these days) [06:52] lifeless: I am happy to ride my hobbyhorse into pack land :-) [06:52] abentley: and while they will clearly help with performance, I'm currently tackling things surrounding the delta layer rather than the deltas themselves :) [06:52] then there is the debate on how big to make the chunks. [06:53] lifeless: is revno 2744 current? [06:53] keir: this is sounding very interesting; An email would be much easier for me to digest as I'm deep in commit's guts at the moment and I'll need to look at this later [06:54] lifeless, sure [06:54] abentley: pushing [06:54] lifeless, there is some measurements i need to do regarding lzw tradeoffs; i'll do those now then write it all up [06:54] abentley: (its not, but the changes are mainly merges of other branches) === tchan [n=tchan@lunar-linux/developer/tchan] has joined #bzr [06:55] rm -rf .bzr && bzr --no-plugins init --experimental && bzr --no-plugins add > /dev/null && time ~/source/baz/repository/bzr --no-plugins commit -m "Initial commit" -q [06:55] real 2m2.092s [06:55] user 1m48.035s [06:55] sys 0m5.564s [06:56] lifeless, one last question: how big do you think it's reasonable to make the 'minimum size read chunk'? [06:59] 4K? thats a disk cluster isn't it ? [07:00] ok, but if you're roundtripping, is't something like 32k more reasonable? if we assume people are on broadband... [07:00] well [07:00] transport.get_recommended_page_size() might be your friend :) [07:01] hmm, but the indexes will have a block structure which is independent of the transport [07:01] so we'll need to find a reasonable middleground. [07:01] so [07:01] more data -> more processing [07:01] less latency impact [07:02] so when there is low latency you want low processing [07:02] and when there is huge latency we're willing to spend more cpu [07:02] if you were to (say) have a 4K page in the index, which must be entirely read if read at all [07:03] then you can do ceiling(recommended_page_size/4k) * 4k [07:03] to get the amount to read [07:03] yeah, ok [07:03] the problem is that if you're compressing blocks, you don't win much on 4k [07:03] you really want > 16k [07:03] we win plenty on 200 bytes in knits [07:03] really! [07:03] ok [07:04] nevermind then, i'll make it a knob [07:04] 44 bytes is the break-even for libz [07:04] and libz is lzw? [07:04] lzw78 IIRC [07:04] might be 77. I dunno offhand, check the library :) [07:05] so for compression we win on entropy in the data [07:05] ok. i need the following thing for implementation: given a large string, compress until your compressed size is N bytes, then terminate and tell me how much of the source string you chomped, and give me the compressed string [07:05] lifeless, you mean we win on lack of entropy [07:05] the amount we win and the entropy are lnked :) [07:06] anyhow, that API is a problem for all compressors I can think of [07:07] because i'm a C loser, i want to go off and code it in C by using an existing lzw algo [07:07] every compressor API I've seen has internal state for the current symbols that have not yet selected a terminal representation [07:08] this state is cleared by calling flush() === marplatense [n=marplate@252-58-231-201.fibertel.com.ar] has left #bzr [] [07:08] which in pathological cases can output 1/2 the already processed input IIRC [07:08] (as the longest match-to-date) [07:08] particularly for dictionary compressors [07:08] wait, but doesn't lzw's dictionary get built implicitcly? [07:09] so it's never put directly in the output stream? [07:09] so you can just 'stop' compressing at any stage? [07:09] (i haven't implemented it for some years...) [07:09] well. It would be really nice not to require C; that keeps us more portable. C as optimisation - Great!. C as requirement - if we have too we have too, but do we have too ? [07:09] keir: the dictionary is built from the symbols processed [07:09] keir: say we compress AAAAAA [07:09] first symbol A - its a terminal, output it [07:10] keir: We were all C losers at one point or another. Remember tla, lifeless? [07:10] next symbol A - its a hit for A, keep it, next symbol A, output reference-to-first A, then A. [07:10] next symbol A, hit for A, next symbol A, hit for AA, next symbol A, output reference to AA, then A [07:11] this ummary is wrong, I'm just demonstrating that there are things that are not yet output, and the number of bits that have tobe output to represent them is determined by the compressor state [07:11] that is - its eaten the input, but not output it yet. [07:12] ah yes [07:12] abentley: oh yes. [07:12] abentley: 2753 is pushed btw [07:12] ok, so if i hack lzw itself, it's fine because i can estimate the current compressed size if we were to terminate [07:12] lifeless: tx [07:14] libz is zlib? i'm not sure how to get at a lzw compressor in python [07:14] Um, is it pushed to the packs version of your branch? [07:16] abentley: yes, not to the knits version yet [07:17] I'll ssh in and clone it across to knits, one sec [07:17] keir: Yes. http://docs.python.org/lib/module-zlib.html. === srid [n=srid@unaffiliated/srid] has joined #bzr [07:20] keir: yes, but see above - requiring C is undesirable. You can achieve a version of this without requiring C though, (just add until a page size is within some figure, then flush, and accept slack space) [07:25] yeah, that's the plan [07:26] so it looks like you get smack on 0.2 compression ratio for 4k, 16k, 32k blocks [07:26] at least for rev id's [07:26] i'm out for tonight but i'll write this up tmrw morning [07:27] http://www.smh.com.au/news/national/chaser-duo-held-over-motorcade-stunt/2007/09/06/1188783378804.html [07:27] keir: thanks! [07:48] lifeless: re your changes to test_versionedfile.py just merged, it looks like you have a duplicate routine name - test_add_lines_nostoresha. I gather that's the one test and it got duplicated by a merge maybe? [07:49] my merge of your 0.92 patch has the routine name 4 times. :-) [07:55] abentley: oh I've pulled it to the knit copy of packs [07:55] The current version of pyflakes notices that sort of mistake. [07:56] igc: .dev$ grep test_add_lines_nostoresha bzrlib/*/*.py [07:56] bzrlib/tests/test_versionedfile.py: def test_add_lines_nostoresha(self): [07:56] bzrlib/tests/test_versionedfile.py: def test_add_lines_nostoresha(self): [07:56] I see it twice [07:57] yup - twice in bzr.dev [07:57] when I merge your patch, I get it 4 times [07:57] igc: and it should be twice with a slight change to the name [07:58] fixed and sent to pqm [07:58] thanks [07:58] igc: I am down to m48 [07:58] neat [07:58] 1m48 I mean lol [07:59] i knew that :-) [07:59] 2m2 wall clock [08:02] lifeless: does merging my "improved commit reporting" patch help as well? [08:03] I'm running with -q [08:03] so I'd hope not :) [08:03] even with -q, show_change (or whatever it's called) is still being called unnecessarily without my patch [08:04] in bzr.dev at least [08:08] igc: ok [08:21] igc: did you see my /query? [08:22] I saw the times, yes [08:24] hard to tell when you dont reply :) === hdima [n=hdima@idealer.cust.smartspb.net] has joined #bzr [08:25] I did [08:25] I bet you are not logged in [08:26] hmm [08:26] tomorrow I'm going to make clean patches for several of these things for bzr.dev [08:26] cool. I've got a quick review if you want it .. [08:26] on bb ? [08:26] just on paper here so far :-) [08:26] :) [08:27] want a quick email now or a more complete one [08:27] I'm calling it a day, or really a week [08:27] ok - I'll go with the complete one in the next few hours [08:27] gotta luv APEC :-) [08:28] lifeless: do you have a branch I can pull? [08:29] lifeless: just emailed you my gaim session - not sure why you didn't see my times [08:42] heh [08:42] no, I don't have everything committed, I'm do sketch-tests [08:42] then I take the uncommitted change and test in isolation to make a real branch for it [08:42] then submit that [08:43] ok [08:43] if you merge all my pending bundles [08:43] and disable annotations as previously documented [08:43] and disable the _check_lines and _check_present_parents in knit.py's _add_lines method [08:43] then I think you will have my tree [08:44] so your times are with packs, not knits, right [08:44] rm -rf .bzr && bzr --no-plugins init --experimental && bzr --no-plugins add > /dev/null && time ~/source/baz/repository/bzr --no-plugins commit -m "Initial commit" -q [08:45] cool [08:45] enjoy your day off [08:45] okies :) === matkor [n=matkor@beauty.ant.gliwice.pl] has joined #bzr === AfC [n=andrew@office.syd.operationaldynamics.com] has joined #bzr === allenap [n=allenap@212.233.37.68] has joined #bzr === poolie [n=mbp@ppp112-44.static.internode.on.net] has joined #bzr === mvo [n=egon@p54A675A7.dip.t-dialin.net] has joined #bzr === Lo-lan-do [n=roland@mirenboite.placard.fr.eu.org] has joined #bzr === g0ph3r [n=g0ph3r@p57A0BC2C.dip0.t-ipconnect.de] has joined #bzr === luks [i=lukas@unaffiliated/luks] has joined #bzr === Zindar [n=erik@host217-42-238-84.range217-42.btcentralplus.com] has joined #bzr === pygi [n=mario@83-131-64-132.adsl.net.t-com.hr] has joined #bzr === matkor [n=matkor@beauty.ant.gliwice.pl] has joined #bzr === mrevell [n=matthew@canonical/launchpad/mrevell] has joined #bzr === jrydberg__ [n=Johan@c80-216-246-123.bredband.comhem.se] has joined #bzr === mrevell_ [n=matthew@82-47-122-108.cable.ubr05.wolv.blueyonder.co.uk] has joined #bzr === mrevell_ is now known as mrevell === asabil [n=asabil@62.70.2.252] has joined #bzr === sabdfl [i=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr [10:32] hey guys, when last was lifeless around? [10:32] 3:07 my time [10:32] was the last time he said something :) [10:33] sabdfl: 1h45m ago === pygi wasn't here then o.O === pygi hides [10:34] thanks dato === sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr === sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr === sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr === asabil [n=asabil@62.70.2.252] has joined #bzr === asabil [n=asabil@62.70.2.252] has joined #bzr === sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr === metze_away is now known as metze [11:34] Woah. _patiencediff_c.c is real C, not Pyrex. === luks [i=lukas@unaffiliated/luks] has joined #bzr === dato [n=adeodato@tarrio.org] has joined #bzr === herzel [i=herzel@gateway/tor/x-b26a66002a991971] has joined #bzr [12:00] Hmm, easy way to run patiencediff on a directory? python -m bzrlib.patiencediff only accepts files. [12:00] (as of 0.90, at least) === gabe_ [n=gabriel@91.84.56.254] has joined #bzr === dato [n=adeodato@tarrio.org] has joined #bzr === Ng [n=cmsj@mairukipa.tenshu.net] has joined #bzr [12:29] are there ubuntu packages of 0.18 for dapper lurking anywhere? [12:32] What about 0.90? [12:32] oh yeah, I'd forgotten that was out. 0.90 then :) [12:33] Well, I don't know. [12:33] http://bazaar-vcs.org/releases/debs/feisty/ [12:34] oh sorry [12:34] bazaar-vcs.org only seems to have 0.17 [12:34] yeah and the feisty debs for 0.90 seem to be arch dependent and not happy with dapper's libc === Peng points out that python setup.py install isn't too hard. [12:35] Ng: i would _hope_ that the debs would build easily enough on dapper [12:36] mwhudson: I expect so, I was just hoping someone was continuing the fine bazaar tradition of doing it for me :) [12:36] unless the build-deps are hard to satisfy, e.g. missing a new enough pyrex [12:39] Ng: fair enough [12:39] i'm not the one to help here though :) [01:08] Ng: we will [01:09] Ng: need to backport the debs and python build rules [01:09] because dapper has that very different python setup [01:09] lifeless: ok, thanks :) === abentley [n=abentley@bas8-toronto63-1088754407.dsl.bell.ca] has joined #bzr [01:14] lifeless: up? === Ng [n=cmsj@mairukipa.tenshu.net] has left #bzr [] === EtienneG [n=etienne@ubuntu/member/EtienneG] has joined #bzr === metze is now known as metze_food === mrevell is now known as mrevell-lunch === sverrej_ [n=sverrej@pat-tdc.opera.com] has joined #bzr [02:00] Hm. How odd. [02:00] Where does 'info -v' get its "first revision" from? 'cuz it's wacky. [02:01] I've got a branch with 3 initial revs, and the one it picks for 'first' isn't the left-path initial. Nor is it the oldest of the initials. === ddaa [n=david@canonical/launchpad/ddaa] has joined #bzr === sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr === niemeyer [n=niemeyer@200-103-134-216.ctame705.dsl.brasiltelecom.net.br] has joined #bzr [02:17] NfNitLoop: that appears to be a recent regression, working on it at the moment [02:18] NfNitLoop: looks like a http-specific bug === ieei [n=ieei@62.70.2.252] has joined #bzr === deadwill [n=deadwill@146037.fln.virtua.com.br] has joined #bzr === mw|out is now known as mw === mrevell-lunch is now known as mrevell === effbiae [n=jack@cust5166.vic01.dataco.com.au] has joined #bzr [02:49] hi all, bzr's great. how do i turn a local branch into a sftp branch, retaining all the history? === mario_ [n=mario@83-131-64-132.adsl.net.t-com.hr] has joined #bzr === mario_ is now known as pygi [02:51] effbiae: it already is === sverrej_ [n=sverrej@pat-tdc.opera.com] has joined #bzr === sverrej [n=sverrej@pat-tdc.opera.com] has joined #bzr [02:52] so just sftp to the dir, yeah? [02:53] or `bzr push sftp://host/path/to/branch` === matkor_ [n=matkor@beauty.ant.gliwice.pl] has joined #bzr [02:57] push doesn't work well for me via sftp [02:57] it doesn't update the trees [02:57] my branch is in ~/mysql.5.bak , then bzr clone sftp://jack@192.168.0.4/mysql.5.bak results in ... [02:57] because it is too expensive via sftp [02:57] bzr: ERROR: bzrlib.errors.NotBranchError: Not a branch: sftp://jack@192.168.0.4/mysql.5.bak/ [02:58] does mysql.5.bak have a .bzr directory? [02:58] yup [03:02] bzr check returns clean bill of health [03:04] effbiae: You probably mean "sftp://jack@192.168.0.4/~/mysql.5.bak [03:05] fullermd: brilliant. [03:05] fullermd: yeah [03:06] now is a local commit the same as an sftp commit? [03:06] didn't know you could do a sftp commit! [03:06] ETERMINOLOGY [03:07] EAGAIN? [03:07] It's hard to answer without knowing what you mean by 'local commit' and 'sftp commit' :) [03:10] hmmm, i think i'm confused. i want to run a server, like CVS. === ddaa_ [n=ddaa@nor75-18-82-241-238-155.fbx.proxad.net] has joined #bzr [03:13] well, i want a central repository that i can get and put revisions. don't want more than one branch at this stage. which man page should i look at? [03:15] Well, in that use case, you want to use checkouts of a single branch. [03:15] So you'd have a branch "somewhere" (whether it's local, or via sftp, or bzr+ssh, doesn't matter), and you'd "bzr co" it wherever you want to work. [03:19] so the key is to 'checkout' and then future commits will update the .bzr directory from where i checkedout, yeah? [03:21] Right. [03:22] thanks for all your help. good night. === effbiae [n=jack@cust5166.vic01.dataco.com.au] has left #bzr [] === bwinton [n=bwinton@mail.phantomfiber.com] has joined #bzr === Rotund [n=rotund@d28-101.rb2.lax.centurytel.net] has joined #bzr === AfC [n=andrew@office.syd.operationaldynamics.com] has joined #bzr === asabil [n=asabil@62.70.2.252] has joined #bzr === mthaddon [n=mthaddon@canonical/launchpad/mthaddon] has joined #bzr === gldnspud [n=gldnspud@72.171.93.139] has joined #bzr === ddaa_ is now known as ddaa === statik [n=emurphy@189.66.188.72.cfl.res.rr.com] has joined #bzr === mwhudson [n=mwh@62-31-157-102.cable.ubr01.azte.blueyonder.co.uk] has joined #bzr === gldnspud [n=gldnspud@72.171.93.139] has joined #bzr === mrevell is now known as mrevell-tea === marianom [n=marianom@ubuntu/member/marianom] has joined #bzr === cory [i=cory@zeus.penguinhosting.net] has joined #bzr === joe99 [n=joe@146-115-30-99.c3-0.wtr-ubr1.sbo-wtr.ma.cable.rcn.com] has joined #bzr [05:00] Anyone have any suggestions for how to setup a repository on OS X that more than one person can commit to? [05:01] Give all the contributors accounts? === mrevell-tea is now known as mrevell [05:01] (That's what I did, but I trusted the other person with an account.) [05:01] (And set his shell to /bin/false just in case. ;) ) [05:01] Everyone has accounts. But how do you handle the file permissions? [05:01] That rather cramps the ability to use bzr+ssh :p [05:01] Group writable. [05:02] It does, but he could push over https. [05:02] Yeah, I did the group-writable thing. [05:02] Or I set them up to be owned by him, and sudo-ed everything I needed to. [05:02] Well, if you go over https (bzr+, I presume), you don't need accounts period. [05:02] Yes, but new files created don't seem to keep the permissions. [05:03] They should. I've tried a couple times, and bzr always DTRT. [05:04] If I create something as root & make everything writable new files created by others are not compatible. Is there a simple solution to this? [05:04] do you need g=ws or however it's spelt? [05:04] How are the perms showing up wrong. [05:04] I'm pretty sure OS X doesn't have that SysV brain damage... [05:05] (Er, that first was supposed to have a '?' at the end...) [05:05] New files reflect the ownership of the creator and -rw-r--r-- permissions. [05:05] The dir they're in is 77x? [05:06] Yes. [05:09] Mmm. Works for me. [05:09] dir is 770, files end up like -rw-rw---- 1 fullermd wheel 94 Sep 6 10:08 a-20070906150753-pzfx8evgly2b3tep-1.kndx [05:09] Let me try again. [05:09] Make sure it's all set to start out. [05:09] find .bzr -type d -print | xargs chmod 770 ; find .bzr -type f -print | xargs chmod 660 [05:11] sudo chmod 770 foo; cd foo; touch bar; ls -l; results in -rw-r--r-- [05:13] Yes, but that's touch, not bzr. [05:13] Also, I tried bzr serve --allow-writes as an alternative, but it didn't work, and I'm not sure of the security model for it. [05:13] Sure, but why would bzr be different? [05:13] You only care about the files bzr makes. [05:14] Because bzr checks the perms and intentionally preserves g+w if it's around. [05:14] But bzr is run by the users ssh-ing. [05:14] Well, maybe my experiment is flawed. [05:14] touch just does an open(). bzr looks at the perm of the parent dir (I think; maybe the perm of the .bzr/ at the root) and uses that as a template for the new file. [05:15] So as long as nobody actually does anything by hand in that directory it should work fine? [05:16] Well, anybody doing something in .bzr/ by hand needs a good thwapping just on general principles :] [05:17] Not in .bzr, I meant creating, adding, commiting, etc in the branch in the shared directory. [05:17] What, multiple people in one working tree? That's a nightmare waiting to happen. [05:18] I wouldn't consider it except in very specialized cases (like /etc, where there's only one uid that's ever there) [05:18] Doesn't somebody have to create the initial tree? [05:19] Yes, but everybody would have their own WT (either by having their own branches in a dist-like setup, or their own checkouts in a central-like setup) [05:19] How do I put a tree there in the first place? [05:20] I mean, I have one. Can I branch it there and have that branch be the branch acts as the central branch that everyone can push to? [05:21] Yes, that'll work. Push it there (one way or another), then do the chmod's on that "central" location, then have everybody else branch from and push to that, or checkout it, or whatever. [05:22] And bzr will DTRT with respect to file permissions regardless of who is ssh-ing? [05:23] Should (and in all my testing, does), yah. [05:23] I'll give it a try. Thanks. [05:23] If OS X uses SysV filesystem semantics, you'd need g+S on the dirs to properly propogate the group ownership to new files. [05:23] I don't _think_ it does. But if new .knit's and the like show up with the wrong group, that's the thing to try. [05:25] How do you set g+S? [05:25] Do you mean g+s? [05:25] Yah. === gldnspud [n=gldnspud@72.171.93.139] has joined #bzr === p4tux [n=p4tux@189.169.92.184] has joined #bzr [05:27] Hi, is there a way to cleanly remove a branch from a shared repository (and any cruft it might have left behind)? [05:27] Not really. [05:30] Ok, I suppose I can always just branch everything I want to a different shared repository and let it sort itself out if I really care. I was just curious and having trouble searching, thanks. [05:30] Yeah, that's the usual way. [05:31] It's a fair bit of work, and it loses branch-local config (like parent/push/etc branches). === p4tux [n=p4tux@189.169.92.184] has joined #bzr [05:31] There was a proof-of-concept 'cleanup' plugin somewhere once. It's certainly on the list to add, just nowhere near the top of anybody's todo list. [05:32] Mostly, disk space is cheap enough that we all just ignore it for now. === cory nods. [05:32] Mental note: Don't put my video collection under bzr... :) [05:33] Oh, we have lots of big binary files. :S [05:34] Disk space is rather cheap, but bandwidth (and time) isn't. [05:34] Well, most of any given branch will be common with other branches in the project, so it's not like you'd save much in most cases. [05:34] Sure, but if it's not referenced, it doesn't cost you any bandwidth. [05:34] So remote backups of obsolete data is less than optimal. [05:34] (well, maybe a little in throwing around inventories or something, but...) [05:34] Oh, non-bzr? Yeah, it'll hit you there. [05:35] Yeah, like, you know, backups :-) rsync, or amanda, or tar+scp, or whatever [05:35] Backups are for pessimists ;) [05:36] Backups are also for fat-fingered people and (maybe more importantly) their sysadmins. === sabdfl [i=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr [05:38] It was more a policy thing. I'm trying to get some people to switch from p4, and I'm inclined to push lightweight checkouts and lots of branching in a centralized repo, and it was the difference of whether I say, "it mostly doesn't matter to leave it sitting around," or, "you can push this button to clean up an old branch, and it will be obliterated." === orospakr [n=orospakr@132.213.238.4] has joined #bzr [05:39] Unrelated to the issue at hand, but you probably want to look at something like bzrtools' 'cbranch' with that workflow, too. [05:40] Interesting, just to set the default branch root? [05:41] Well, it lets you remotely 'branch' and create a local checkout in one step (AIUI; I've never done more than glance at it) [05:42] I know that abentley uses the separate repo/checkout workflow more than most people here, so there are a few things (cbranch, switch, at least) in bzrtools aimed at supporting those workflows. [05:44] Yes, switch is key. Thanks. [06:02] jelmer: Hmm. I just realized that the BzrForeignBranches/Subversion says that bzr-svn needs some fixes from svn 1.5 trunk. [06:02] jelmer: Is that still the case? I hope that's not the problem I've been having and pestering you about. :p [06:02] Actually, last I heard, it still needed some fixes that weren't even in svn trunk... [06:03] fullermd: Heh, well, there is that nasty memory leak... :) === samurai [n=sam@75.8.21.41] has joined #bzr [06:11] morning all === mthaddon [n=mthaddon@canonical/launchpad/mthaddon] has joined #bzr === sverrej [n=sverrej@192.80-203-27.nextgentel.com] has joined #bzr [06:17] Is sftp access safe for concurrent users? Or do you need to use bzr+ssh? [06:18] both create lockfiles [06:18] sftp should be as safe. [06:18] (of course, if you can use bzr+ssh, it's probably better performing etc. anyway) [06:19] I'm not sure how to setup bzr+ssh on OS X. The instructions are for inet.d, which OS X apparently doesn't use anymore. And I don't really have a handle on launchd. [06:20] bzr+ssh doesn't need any setup (other than having bzr in $PATH) [06:20] If you're looking at inetd stuff, that's for bzr://, not bzr+ssh:// [06:22] What's the difference between bzr & bzr+ssh? [06:22] bzr+ssh ssh's in and runs bzr, and chats with it over the ssh connection (like :ext: CVS does) [06:23] So does that make it more secure? [06:23] bzr:// talks over TCP to a server talking the bzr protocol, either via 'bzr serve' (which runs it as a daemon), or through something like inetd (that accepts the connections and passes them to bzr) [06:23] Well, it means that ssh handles all the authentication and such. With bzr://, you get no authentication (at least, not currently) === Kamping_Kaiser [n=kgoetz@gnewsense/friend/kgoetz] has joined #bzr === grimboy [n=grimboy@85-211-253-25.dsl.pipex.com] has joined #bzr [06:26] Does anyone happen to remember which file on OS X is the right one for setting the path to bzr? [06:27] Depends on your shell, probably. Something like /etc/profile or /etc/csh.cshrc or something else for zsh, etc. [06:37] Heh, I'm reading the "svk book". It looks like someone just took the subversion book and did s/svn/svk/g [06:37] If I branch with sftp that seems to work. If I use bzr+ssh I get an error that says bash: line 1: bzr: command not found bzr: ERROR... and then this long traceback. [06:38] joe99: That probably means that bzr isn't found on the remote path. [06:38] Yes. But wouldn't have been found by sftp? [06:38] does the remote machine have bzr installed? Is it accessable by ssh's default path? [06:38] sftp doesn't use bzr on the remote end. [06:38] sftp does not use bzr on the remot... [06:39] :) [06:40] That may be it then. I added /opt/local/bin to path in /etc/profile. So it's there when I ssh in. But maybe that's only for login shells. It must be one of those other files I can't remember the name of. [06:40] Yeah... I never remember either. I'm glad bzr doesen't require a remote copy to function. :) [06:41] Avoiding Bourne shells does the trick for me ;p [06:42] If the sftp command fails do bad things happen? [06:43] God kills a kitten. [06:43] (Though I'm not sure what happens to your branch.) [06:43] Does it keep the kitten company? [06:44] that or it just lands in intensive care. [06:44] I've not had luck with partially-completed bzr-svn branches. [06:44] Though that may be a special case. [06:45] I'm not concerned that much about the branch as the push. [06:47] Heh. Good point. I would hope they would be atomic. [06:47] there are a couple commands: bzr break-lock and bzr check, that would probably help with recovery. [06:48] yeah, you'll often end up with dangling locks [06:48] but that should be the worst of it, afaik [06:49] NfNitLoop: well, the python-subversion package in recent ubuntu and debian contains a backport of those changes from subversion 1.5 [06:51] jelmer: aah. I'm running Debian etch. [06:52] jelmer: you got my e-mail with the sample svn dump? === p4tux [n=p4tux@189.169.92.184] has joined #bzr [07:19] sftp doesn't update the working tree of a remote branch. Is this of any concern if nobody ever works on that branch directly? Does it require any special considerations for conflicts or anything that are pushed to that remote branch? [07:20] Only if you want the files there and up to date for some reason. bzr doesn't need them. [07:21] Unless you need 'em for some other reason (and thus go through other steps to keep them up to date), you can just as easily get rid of the working tree altogether. === mrevell is now known as mrevell-dinner [07:22] At some point I might want to run automated tests. But for now I was hoping to use a remote branch as a central repository for things everyone was happy. [07:22] ..with. [07:23] I'd probably run automated test in their own checkout anyway. === silwol [n=silwol@d91-128-236-90.cust.tele2.at] has joined #bzr === sverrej [n=sverrej@tul-1x-dhcp016.studby.uio.no] has joined #bzr [07:35] Yes. Assuming everybody actually runs them. But some live by the motto "If it compiles, ship it." And with interpreted code there are those who don't even compile. [07:35] No, I mean automated tests would run as an automated job, but with its own checkout that it updates and works with. [07:36] That makes sense. === herzel [i=herzel@gateway/tor/x-65aeb146c7ac6819] has joined #bzr === herzel [i=herzel@gateway/tor/x-b6c989ddb8048cdc] has joined #bzr === jrydberg__ is now known as jrydberg [07:47] somebody here who can help me about how to best package my piece software that is checked in to bzr? === gabe_ [n=gabriel@91.84.56.254] has joined #bzr === fog [n=fog@debian/developer/fog] has joined #bzr [08:13] silwol: Just like you would package any other software. [08:13] all of bazaar's files are in .bzr [08:13] so just exclude that directory. [08:15] NfNitLoop: i remember chatting with pitti (from ubuntu) and he told me it was best to keep a separate bzr branch for packaging [08:15] so the main branch has no debian directory, and is always merged into the packaging branch where the debian directory is maintained [08:16] but packaging requires a original .tar.gz so i can not directly pull from the main branch [08:16] ...i hope you understand what i mean [08:19] aah. Yeah, I'm not that famailiar with Ubuntu's packging process. [08:19] keeping a separate branch for debian/ sounds like a good idea, since that doesn't have much to do with the original source. [08:20] I vaguely recall that debian sources are packaged as the original.tar.gz, plus a debian.diff.tgz or something like that. [08:21] diff.gz, yes [08:21] so you would zip up the source repo. then diff your 'debian' branch to create the diff. === grimeboy [n=grimboy@85-211-254-100.dsl.pipex.com] has joined #bzr [08:21] beyond that, I'm afraid I won't be much help. [08:21] okay, but thanks anyway, NfNitLoop [08:22] i think i'll try to catch pitti when he is online [08:22] silwol: so you are the upstream author of the software? [08:23] dato: yes, but it is not very advanced yet. [08:23] just trying to package in order to get some people to try it out [08:23] silwol: and you will be maintaining the packages as well? or you intend for a separate person to do that? [08:24] actually, i don't mind if it is me or somebody else on the long term. for now i just wanted to create packages, but if somebody else wants to maintain them, why not [08:25] although i think i will in future need the knowledge about how to more often [08:25] well, then my advice would be: [08:25] should mean about how to package [08:26] (1) when you create the upstream tarball for a release, never include the debian/ directory in it, if one exists in your repository [08:27] that's what pitti told me too [08:27] and for where to keep debian/, you have several options [08:28] (2a) keep debian/ out of trunk, and have a packaging branch; you `bzr branch trunk packaging`, and `bzr add debian/` in packaging. when an upstream release happens, you `bzr merge ../trunk` inside packaging, and make any packaging changes as well there [08:29] I think that's the one prefered in Ubuntu [08:29] another one, (2b) would be to keep the debian/ subdirectory in its own branch, one that is not a full branch of the whole source === GaryvdM [n=chatzill@mtngprs5.mtn.co.za] has joined #bzr [08:31] and then there is (2c), the one I use for my projects (since I'm also the maintainer), keep debian/ in trunk, at release time build the package from trunk, and if there is another upload to make while trunk has diverged, make the debian packaging changes in a new branch created from the release tag, and merge that back to trunk. it may look a bit messier, but I like it. [08:31] silwol: I guess I recommend (2a). do you have any questions about it, or about something else? [08:32] anyone other than lifeless familiar with the uses of the graphindex code? [08:33] i'm wondering if there's cases where you need to do a DFS type search, where you only care about the values and the ordering, not the actual keys encountered on the way [08:33] dato: until here it seems okay for me, and i would prefer the (2a) way. [08:34] dato: what confuses me a little bit is that the ubuntu packaging guide talks about having the source in a package-x.y.z directory [08:34] dato: this means that i would have to rename my packaging branch each time [08:34] dato: well, the directory where it lives [08:35] well, the real truth is it doesn't need to be named srcname-x.y.z (you'll just get a warning from dpkg-source if not), but it's good practice [08:36] do you see a problem in renaming it? [08:36] (you can rename it, or do `bzr branch packaging srcname-x.y.z` instead, commit in srcname-x.y.z and then `bzr push ../packaging` when finished) [08:37] (the latter approach seems a bit cleaner, because you can throw away the directory you built the package on after pushing) [08:38] okay, that seems to make more sense to me. [08:39] ...here some of the real benefits of a distributen versioning system seem to open up [09:04] NfNitLoop: yep, thanks === grimboy_uk [n=grimboy@85-211-251-122.dsl.pipex.com] has joined #bzr === silwol [n=silwol@d91-128-236-90.cust.tele2.at] has left #bzr [] === ieei [n=ieei@cm-84.215.120.219.chello.no] has joined #bzr [09:23] Heh. playing with svk.... it's got one central store that's based on svn. If you're done with a project, there's no way to get rid of just that project's data without blowing away data for other projects. [09:28] (afaik) [09:29] aren't bzr shared repos no different? [09:29] or would 'repack-dropping-empty-refs' take care of that? [09:30] my graphindex is going to be sweeeeeet! === Treeform [n=me@c-76-104-152-100.hsd1.wa.comcast.net] has joined #bzr [09:33] hey can any one help me! Is there a difference they way bzr handles text and binary files? I think it handling one of my 100mb files as a text file and cosing massive mem usage === Gwaihir [n=Gwaihir@ubuntu/member/gwaihir] has joined #bzr === sverrej [n=sverrej@tul-1x-dhcp017.studby.uio.no] has joined #bzr === pygi [n=mario@83-131-64-132.adsl.net.t-com.hr] has joined #bzr === phanatic [n=phanatic@dsl5400C5E7.pool.t-online.hu] has joined #bzr === grimboy_uk [n=grimboy@85-211-248-12.dsl.pipex.com] has joined #bzr === Demitar [n=demitar@c-212-031-190-120.cust.broadway.se] has joined #bzr === pmezard [n=pmezard@nor75-4-81-56-59-92.fbx.proxad.net] has joined #bzr [10:02] keir: with bzr, you can easily create a shared repo for each project, then delete the shared repo & project all at once, not affecting your other shared repos. [10:02] oh [10:02] keir: and even if you just used one central shared repo, I think I've read in here that there are tools to prune unreferenced changesets. [10:03] NfNitLoop, what i mean is, if you have a shared repo, then you decide you don't care about 2 of the branches, deleting them doesn't remove the stuff in the shared repos which was only ref'd by those branches. [10:03] ^-- see my last comment. :) [10:03] i was 90% of the way through mine when i saw yours so i finished and hit enter anyway :P [10:04] I forget what they are.... but in the worst case you can create a new shared repo and migrate into there, then delete the old shared repo. [10:04] inefficient, but at least *possible*. [10:04] I mean, disk space may be cheap, but endlessly growing files still aren't a good idea, IMO. :p [10:05] yeah [10:06] New bug: #137823 in bzr "bzr selftest failures and haning unit tests?" [Undecided,New] https://launchpad.net/bugs/137823 === bwinton [n=bwinton@mail.phantomfiber.com] has left #bzr [] [10:38] aw, this new 'Committing revision x to "/path"' line that commits outputs is unexplainably getting on my nerves. === sabdfl [n=sabdfl@ubuntu/member/pdpc.silver.sabdfl] has joined #bzr [10:39] lifeless, are you around? === asabil [n=asabil@ti0035a340-0802.bb.online.no] has joined #bzr [10:43] i'm confident i can make repacking the GraphIndex's super fast because AFAICT, old nodes are never changed; new nodes only refer to old ones. [10:44] because my new format is toposorted, repacking sould be 2x linear in len(pack1 + pack2 + ...) [10:44] Mmph. I think "ghost filling" is the usual answer to that sort of thing... [10:44] ghost filling? [10:46] If you've got revs referencing ghosts, the graph cuts off at that point, but if the ghosts get filled that leg suddenly gets extended. [10:47] yes, that's exactly the algorithm i imagined in my head [10:48] is the pack format described somewhere? the parts that aren't the graph index === fullermd has no earthly idea. [10:48] lifeless would be your best source for that I imagine, and I think he's mostly afk until next week. [10:49] yeah, ok [10:49] i'm tempted to go ahead and implement my new format in C [10:49] mercurial is beating us in popularity, and they have C [10:50] besides, the code i'm going to write is very general; it stores highly packed DAG's which are k->v and k->k* [10:50] it so happens that it's a perfect format for the ways bzr uses it === Kamping_Kaiser [n=kgoetz@gnewsense/friend/kgoetz] has joined #bzr === grimboy_uk [n=grimboy@85-211-251-75.dsl.pipex.com] has joined #bzr === phanatic_ [n=phanatic@dsl540282FF.pool.t-online.hu] has joined #bzr === phanatic_ is now known as phanatic === niemeyer [n=niemeyer@200-103-134-216.ctame705.dsl.brasiltelecom.net.br] has joined #bzr