[00:56] Good morning [00:57] news_merge should be active on PQM now [01:12] hiya spiv [01:12] yay! [02:07] mkanat: hi? [02:07] poolie: Howdy! [02:07] hi there [02:07] are you free to work on some loggerhead bugs now? or perhaps already doing so? [02:08] poolie: Yeah, I could do some. :-) [02:08] poolie: Not at this exact second, but probably today or tomorrow. [02:12] ok [02:12] i was just reminded by seeing a notice of another hang the other day [02:12] wbn to either get to the bottom of it, or go to a multiprocess thing [02:12] or both [02:13] poolie: Yeah, for sure. [02:13] poolie: The multiprocess thing is a big project, though. [02:17] well, actually fixing things is more satisfying [02:17] poolie: Absolutely! [02:17] poolie: I've done so many small, focused hang fixes that would all have been obsoleted if we just had a better architecture. [02:18] hm [02:18] poolie: Except for one deadlock, the hangs that I've fixed haven't really been hangs--they've just been the system getting overloaded. [02:18] i wonder if someone else could work with you on changing the process architecture [02:18] hm [02:18] poolie: Ultimately I suspect it's something that would be most efficiently done by one developer. [02:18] perhaps [02:19] poolie: The codebase isn't so large that it would have to be a team effort, I think. [02:19] it would be nice to at least get review of it by someone else [02:19] poolie: I'm not saying that that one developer has to be me. [02:19] poolie: Oh, absolutely. [02:19] poolie: One reviewer and one developer would probably be a good match. [02:46] mkanat: ok, let's do it [02:46] poolie: Sweet! [02:46] poolie: I'll start feasibility studies probably today or tomorrow. [02:46] if possible keep it isolated in wsgi stuff as much as is sensible so we can switch that layer later [02:46] and let's think about supportability/traceability stuff [02:47] like keeping oops reporting, perhaps something to show where time is spent [02:47] but mostly, see if you can get the basic switch done [02:47] have fun [02:47] don't go silent [02:47] poolie: Okay. :-) [02:48] poolie: Because we're switching from a threading model to a process model, though, there will be a lot of stuff that isn't in the WSGI layer. [02:48] poolie: Since we will be removing locks, and we can't share variables anymore. [02:48] ok [02:48] perhaps you could explain this in a mail rather than to me [02:48] probably we should talk about that in mail [02:51] poolie: Okay. I will as soon as I get further into finding out what's actually require.d [02:51] *required [03:20] I'm thinking of wrapping the docstrings in builtins.py in gettext calls in order to enable translation of at least the help text. Am I overlooking anything obvious? [03:21] It should work for class docstrings; would have to be more complicated if we used method docstrings in the help output. [03:25] performance [03:27] it depends on what you mean [03:27] if you mean 'pass the help text to gettext when rendering help' - that should be fine. [03:28] lifeless: well you still need to mark the strings for translation. [03:28] why? [03:29] lifeless: So that they end up in the POT file? [03:29] there are other ways of doing that [03:29] we know all things to translate via introspection [03:30] jbowtie: _() will run afunction for every string at load time for the system, its a terrible overhead [03:30] I'd be happy to know what those are, all the programs I translate use gettext. [03:31] jbowtie: for command in commands: text = command.help(); line = command.run._im_co.__line__ ... [03:31] * lifeless is handwaving [03:32] jbowtie: in C _() is free because the code is not executed unless you go down the code path; thats not the case for python. [03:32] static attributes are executed at module time. [03:32] lifeless: Well then maybe we shouldn't be using docstrings for documentation? [03:33] I'm just concerned that currently I can't translate bazaar via Launchpad. [03:33] jbowtie: why not? they are designed for it [03:33] jbowtie: so, definitely doable; some glue needed. [03:34] Handwoven glue that will need to be run every time a docstring changes? [03:35] I'm just dubious, everything ends up getting patched to gettext eventually, or programs end up not getting translated. [03:35] Well, like whatever bit of gettext that extracts _() syntax into POT files needs to be re-run when those strings change. [03:36] It's just that rather than having a "extract _() calls in source into list of translatable strings" step, we'd have "run $handwave that has no runtime penalty in Python" step. [03:38] lifeless: Is Launchpad using a multi-threaded or multi-process server, right now? [03:38] mkanat: multi threaded [03:38] We could even look at automating that step, e.g. PQM updating the set of strings to translate in Launchpad after every merge. [03:39] lifeless: Okay. Have you guys done any investigation on moving to multi-process, or are you scaling OK with multi-threaded? I'm starting to investigate possibilities for loggerhead. [03:40] mkanat: we have 12 or so machines running lp itself [03:40] All right, I'll go look at the source for xgettext for a while. [03:41] mkanat: I have concerns about performance with threads and am investigating single-threaded instances (one request at a time) - because we already have a solid layer 7 proxy handing stuff to the backends [03:41] we could point that at loggerhead very easily [03:41] mkanat: e.g. tell paste to use 1 thread only and run up 4 loggerhead instances [03:41] mkanat: no need, in such an approach, for any multi-process glue. [03:42] mkanat: I have a bias against multi process wsgi; U1 tried that had it was a fairly bad experience for them. [03:42] lifeless: So I've heard, but I didn't really get any details on what the trouble was. [03:42] me neither [03:43] anyhow the big thing for me is that we already have a multi-process multiplexing system [03:43] we don't need two. [03:43] for the launchpad deployment of loggerhead, that is. [03:43] lifeless: Hmm. [03:43] the simplest way to get one process per request is to drop the thread count to 1 and tell ha proxy to send to 4 instances (or however many we decide to use) [03:44] lifeless: That certainly would be less work. [03:44] lifeless: Although that doesn't get us process management. [03:44] mkanat: what does 'process management' mean [03:45] lifeless: Well, say, the ability to tell when a process is hung and kill it, and then spawn another process. [03:45] lifeless: It's something that could be done with sysadmin work. [03:45] lifeless: But it's nicer to just have it in the app. [03:45] ah, 'spawning' was the name of the thing that gave u1 grief, IIRC [03:45] lifeless: Right, that's the only major multi-process WSGI server. [03:45] lifeless: But it's been years since U1 used that, and there have been a lot of Spawning releases since then; it's a very active project. [03:46] long term I'd like to be able to share the bazaar.launchpad.net load with the rest of the servers; with safeguards for rogue stuff [03:46] but thats -long- term, we're nowhere near ready for that [03:47] lifeless: You mean make loggerhead part of the normal server pool? [03:47] mkanat: anytihng that makes it easier to switch between paste, paste-w/1-thread, spawning, and in-lpnet-appservers is a good investment [03:47] mkanat: yes, just another wsgi site in the app [03:48] in the middle tier [03:48] lifeless: Okay. [03:48] lifeless: Who would I ask about what the U1 problems were with Spawning? [03:48] what tz are you in? [03:49] lifeless: Pacific [03:49] America/Los_Angeles [03:49] statik: would be a good entry point [03:49] he's not leading the team anymore but he'll know who was involved [03:49] lifeless: Great, thanks. :-) [03:50] lifeless: So from your viewpoint on the Launchpad technical side, what you'd like to see from loggerhead is a framework that makes it easier to fit it into whatever WSGI configuration you want to use. [03:52] I think that that would be a wise thing to work on [03:53] I think fixing the hangs is important too, because a hang is a user not getting a response. [03:53] lifeless: The hangs are a scaling problem. [03:53] lifeless: Or a deadlock problem. [03:53] and I think fixing the performance is also important [03:53] lifeless: Both of which are fixed by having multiple processes. [03:53] mkanat: deadlocking on what? [03:53] lifeless: Depends. [03:53] lifeless: Last deadlock I fixed (it was several months ago) as I recall was in cache access. [03:54] so, bzr serve itself is threaded. [03:54] lifeless: I'm just saying in general that the hangs are either a performance problem or a deadlock problem. [03:54] mkanat: so by perf problem you mean 'not a hang, just slow' ? [03:54] lifeless: I mean either, really. [03:54] lifeless: Oh, yes, I see what you mean. Yes. [03:55] lifeless: It's so slow that it might as well have hung. [03:55] ok [03:55] and the actual hangs are generally deadlocks [03:55] lifeless: Well, there generally aren't actual hangs. [03:55] lifeless: I fixed one deadlock. [03:55] lifeless: Also, bzr itself is not thread-safe. [03:55] so [03:56] bzr needs to be threadsafe [03:56] or move to aprocess model for 'bzr serve', itself. [03:56] lifeless: That seemed like a pretty low priority, making all of it thread-safe to the degree that loggerhead would need. [03:56] mkanat: the thing is that we support 'bzr serve' so if loggerhead has an issue with bzr thread safety, so does bzr. [03:57] lifeless: Nobody runs a persistent bzr serve. [03:57] mkanat: yes, they do :) We get discussion from time to time. [03:57] mkanat: even if they don't, while we claim it as a supported feature... [03:57] mkanat: I'm not saying you shouldn't change loggerhead models [03:58] I'm just saying that poolie has a strong desire and incentive to have the core be solid and robust [04:02] lifeless: Okay. === timchen119 is now known as nasloc__ [04:11] lifeless: I didn't get the impression that global thread-safety across all of bzr was going to happen within the next few years. [04:12] lifeless: And even if you make "bzr serve" thread-safe, that doesn't make loggerhead thread-safe. bzr serve doesn't need to run the annotate code, for example. [04:12] At least, as far as I understand things. [04:14] mkanat: I'm not aware of many if any remaining unsafe things [04:14] mkanat: I think the right thing to do is ask poolie [04:16] lifeless: Okay. In any case, I don't think that multi-threaded server is a good future for loggerhead (or for any Python web app). [04:16] lifeless: I think that either your 1-thread solution or Spawning is probably a good way forward. [04:16] mkanat: sounds reasonable to me; for spawning I'd really want to know we're going to be able to jump on it when it dies. [04:17] lifeless: Dies as a project, or...? [04:17] one problem with spawning is that if the parent process has any threads, fork() becomes (sadly) dangerous [04:17] mkanat: the server [04:17] lifeless: Okay. So the parent just has to be single-threaded. [04:17] mkanat: yeah, which can be hard to enfoce. [04:19] lifeless: Well, but I have complete control over the entire application, so it shouldn't be too much of a problem. [04:20] We run persistent bzr serve :) [04:23] AfC: Okay. :-) Under a high load? [04:23] mkanat: no, not really [04:24] Yeah. I think loggerhead is the only high-load multi-threaded application that interacts with bzr. === Ursinha is now known as Ursinha-zzz [04:52] * poolie reappears [04:53] lifeless: as i said to mkanat when i started, i don't think mpm vs internal fixes are either or [04:53] except in the sense that you choose one of them to work on at any particular moment [04:54] yeah [04:54] makes sense to me [04:55] having spent X amount of timing doing fixes within a single-process multithread model [04:55] perhaps we should now alternate [04:56] That makes sense. [06:12] that pyutil patch looks nice, spiv [06:12] i haven't read it closely yet [06:13] Oh good :) [06:14] I was starting to wonder if it was too much of a yak shave, but the repetition of a bug-prone idiom was really grating. [06:14] ok [06:14] spiv: thank you [06:15] i'm going to try to interactively test my launchpad dkim/gpg fixes branch [06:15] then go back to stale lock detection [06:15] ubuntu mounted (using LABEL=) my snapshot of home, not the real home [06:15] which made things a bit interesting [06:15] thus my sudden disappearance [06:15] Getting an interactive test environment running for that sounds a bit intimidating. [06:15] Heh, tricky! [06:15] mm it might be [06:16] wgrant pointed me to doc/mailbox.txt [06:16] which might be a good way to test it [06:16] we'll see [06:16] in theory i can tell it to just pull mails from a directory, or get a test to run from a canned mail [06:16] *nod* [07:07] istr there's a bzr/gnome plugin that will update a desktop flag/alert that there are/aren't branches updated? Does that tool or one like it 1. access codehost bzr+ssh; 2. on a regular schedule? or more randomised? 3. thundering herd? ie all checks at once, vs randomly spread over the given period? [07:08] Or possibly something else. But evil is happening. https://lpstats.canonical.com/graphs/CrowberryLoadAverage/20100921/20100922/ [07:08] it seems to be the same bunch of branches too; fwiw. [07:09] Wow, interesting. [07:11] is that maybe vila's bzr-gardener? [07:24] hi all [07:25] hmm, me ? [07:25] no, not you [07:25] hi vila [07:26] let see, I have ~350 branches I think, and it takes a while to query them all [07:26] wow, *something* is happening indeed :) [07:26] vila: yeah, not you :-) [07:27] regarding bzr-gardener, it's not optimized at all so far, but should *reduce* the load on the server ultimately by doing *less* queries [07:28] spm: so roughly the load has doubled right ? [07:28] vila: yeah [07:28] spm: was there an update around this point ? lp or bzr / [07:28] ? [07:29] crowberry == code.lp.net right ? [07:29] yup [07:29] and no, no code update [07:29] I think. checking... [07:30] no. not since the release. [08:06] thanks for feeding my patches up spiv [08:07] the break-lock may fail pqm, i forget [08:07] That's ok, I'm curious to see what the failures are if there are any, and also I figure it might give news_merge a chance to show if it's working. [08:08] Although maybe those merges cause a bunch of NEWS entries to appear under 2.3b1 that will need to be moved to 2.3b2... [08:08] (not so much due to news_merge as due to letting branches sit unmerged for so long) [08:09] ah it was a conflict, but not in news [08:10] but it should be good now [08:11] spiv: yeah, that's why I gave the warning to the Patch Pilot, may be you missed it ? [08:14] vila: apparently! [08:14] It's not a big deal to fix them up just after they land. [08:14] And easier than fixing them up before, thanks to the way LP reviews work :/ [08:16] yeah.. we still need to fix the root problem but until then a single patch to fix the NEWS entries wfm [08:17] An option for news_merge to force new entries to be put in the latest release seems good, except for the times when you want to change older releases (merge from 2.x -> 2.x+1, or fixing typos, etc) [08:18] spiv: I see "Simplify connect_ssh/sftp error" in the pqm queue, great, I was about to report that babune repeatedly fail in test_bad_connection_ssh so if something is still wrong after your patch we hopefully know it soon [08:19] spiv: or allow a "floating" release so that you can insert the entries either in bzr-2.2.1 or bzr-next [08:19] or bzr-dev whatever [08:19] vila: yeah, I'm still not 100% comfortable with it, but after sleeping on it I think the best way to get comfortable is to get it in trunk and battle-tested. [08:20] spiv: I've run it across all platforms with success as mentioned in the mp, it's better than the actual (and faulty) access to e.errno [08:20] vila: or provide a way to override the always-add-to-newest behaviour per landing... [08:21] Yeah, I think it's ok, I'm just still bugged by the fact that I don't understand the intent of the old code. Probably that's because the old code was wrong :) [08:21] bzr-next *is* always-add-to-newest, if you don't use it... you don't use it :) [08:22] Sure. [08:22] spiv: it could be that the old code was relying on a bug in the test code... [08:22] Heh. [08:23] the comment can be read as: "We are time dependent here, let's catch it" [08:24] or rather [08:24] it may have been inspired by a time dependent behaviour [08:33] Yeah, that's true. [08:44] poolie: I'm a bit stuck on the SRU process, bug #528041 seems to imply that I need to propose a branch (and lifeless mentioned disjoint history :-/) plus pitti replied with: "please upload" [08:44] Launchpad bug 528041 in bzr (Ubuntu Lucid) "bzr: ERROR: exceptions.AssertionError: _remember_remote_is_before((2, 1)) called, but _remember_remote_is_before((1, 6)) was called previously. (affected: 22, heat: 145)" [Undecided,Confirmed] https://launchpad.net/bugs/528041 [08:45] poolie: both of which are close to chinese to me :-( [08:45] for the former I mean that building the same kind of branch as lifeless did is [08:54] vila: ? [08:56] spiv: why not approving the patch for 2.0 as well? [08:56] lifeless: I'm lost in the dependencies between the branch you created there, the bzr stable branches and the bzr packaging branches [08:57] lifeless: oh, and I forgot the debian branches [09:00] vila: oh; sorry ;P [09:01] bonjour vila! [09:01] bialix: _0/ === spike_ is now known as spikeWRK [09:02] never seen before this acronym: aTdHvAaNnKcSe [09:02] 's not an acryonym, just a visual joke. [09:02] * bialix thinks vila had too big head today [09:02] bialix: hehe, easier to decode with the caps :) [09:02] bialix: _./ [09:02] rotfl [09:03] \o_ [09:04] \o/ ^o^ /o_ /o\ [09:04] a gull? [09:04] (it's fun to stay at the...) [09:05] poolie: and on the overall releases, it seems that many things depends on the debian branches being updated, yet, I'm still unclear about which releases debian really cares about (my best guess so far is 2.1/2.2/2.3 though I think they carry only two of them :) [09:05] vila: packages.debian.org/bzr [09:05] heya poolie [09:06] hi bialix [09:06] poolie: ha, cool, I've mailed the debian packagers for bzr but I'm still waiting for an answer, this is indeed part of it ;) [09:06] vila mind you that doesn't exactly answer the question [09:06] i guess it's 2.1, 2.2, 2.3 [09:07] amazingly 2.3b1 is already there [09:08] ha, right, jelmer did that [09:08] i wonder when natty opens, or whether it's already open [09:08] It can't open until Maverick's released. [09:08] We'd like to change that, but it's Hard. [09:09] ah i thought so [09:09] ok, i'm going to head off [09:09] jelmer: pingaling [09:20] GaryvdM: stop reading my thoughts [09:20] ???? [09:20] Hi all [09:20] GaryvdM: Naoki just committed on bug #641557 [09:20] Launchpad bug 641557 in TortoiseBZR "error while trying to run command via context menu (affected: 2, heat: 12)" [Critical,Fix committed] https://launchpad.net/bugs/641557 [09:21] GaryvdM: I was thinking about you and it's irritating to see you arriving just as this second as if you were reading my thoughts *again*. I told you to not do that anymore ! [09:22] 1. Develop mind reader. 2 Use mind reader. 3. ????? 4. Profit [09:22] *2. Use mind reader on vila [09:22] yeah, yeah, they all say that ! That's not because I'm not paranoid that they aren't all after me ! [09:23] GaryvdM: more seriously, I was updating http://wiki.bazaar.canonical.com/Releases/2.2.1, you're currently building the windows installers right ? [09:24] I'm paranoid. But am I paranoid ENOUGH? [09:24] fullermd: never [09:24] That's just what I expected you to say! [09:24] vila: Yes - Sorry - I ment to do that, but got side tracked. [09:24] fullermd: did you notice those black helicopters *behind* you ? [09:24] fullermd: no need to turn around, they do that too so they are *still* behind you [09:25] GaryvdM: no need to be sorry ! [09:25] * fullermd nods wildly at vila. [09:25] lol [09:25] 's why I lay on my back. Then I only have to worry about the black subterrines. [09:26] Oh, I'm fine on this side... mines you know [09:27] Who build the OSX installers ? Gordon ? I can't remember his IRC nick. Someone ? [09:38] bialix: only because I didn't see it in the queue, it turns out it was the very last thing on the +activereviews page because someone else had already voted Approve [09:38] bialix: I just changed the status to Approved for you === bialix_ is now known as bialix [09:49] what exactly is stored in a versionedfile/text-object? each line with: text of that line, author, date? or just text + revid? [09:50] for current format if that changed over time [10:00] vila: Gordon is doxxxx (not sure about qty of Xs) [10:00] hey [10:00] bialix: ha right, of course, thanks ! [10:00] http://doc.bazaar.canonical.com/developers/integration.html comes from where? [10:00] I've got a request for some extra examples for that page [10:00] thumper: lp:bzr-alldocs [10:01] thumper, sorry [10:01] in the source tree you mean ? [10:01] I'd really like examples for getting a diff for a revision [10:01] thumper: it's inside bzr.dev/doc/developers [10:01] and a diff for a revision for a particular file [10:01] also, how do I get a revision id from a revno? [10:01] for a branch? [10:03] Branch.dotted_revno_to_revision_id ? [10:04] thumper: could be costly [10:04] vila: I'm only dealing with mainline revisions [10:04] If it's non-dotted, there's another method, which is oodles cheaper. [10:04] does that make it easier? [10:05] thumper: Branch.get_rev_id [10:06] thumper: in the worst case the whole ancestry graph is loaded :-/ [10:06] What's the quickest way (when no one at the server end is awake) to determine the version of an svn server? I just read the bit about metadata pumped into svn by bzr when the upstream svn server is 1.4. === bigjools is now known as bigjools-afk [10:07] dlee: programaitcally? [10:07] it's in the footer of the webdav repo browser usually if thats good enough [10:08] Ah, embarrassing - and yeah good enough. I'd looked in lots of places but not with a browser to the svn path [10:10] vila: what is the history optional param to the get_rev_id method? [10:11] thumper: no idea :) Let me see [10:14] it'd be useful if you added an example of how to turn the input from the revision option into a revision_id :) [10:14] or does it do that itself? I didn't check [10:15] thumper: shame it's not documented nor used a lot :-/ It seems to be a simple list with the revids int it indexed by revno -1 [10:15] s/int/in/ [10:16] thumper: but almost no callers use it [10:16] heh [10:16] thumper: do you intend to use it a lot for the same branch or is it just one call here and there ? [10:17] I intend to be able to walk back through history in jumps of say 20 revisions [10:17] for display on a web page [10:18] I could just have the revision history cached actually [10:18] as webapp overhead [10:18] it wouldn't be too bad [10:18] * thumper thinks of loggerhead [10:18] perhaps not so much of a good idea [10:18] lets skip caches I think [10:19] vila: primarily for page or site history for wikkid [10:20] how do you get commit history for a single file? [10:21] thumper: the clean way or the dirty way ? :D [10:21] actually, I might put down the laptop and watch Chuck :) [10:21] vila: clean please [10:21] efficient [10:21] thumper: hehe, the dirty is efficient ;) [10:22] but, well, wikkid context, so focus on single files, no dir contents involved and you always start with a known path/file-id [10:22] thumper: correct ? [10:22] yep [10:23] seriously though, I'm walking away ;0 [10:23] laptop is back in the office now [10:23] and the warmth is in the lounge [10:23] caio [10:23] thumper: ok, np, I've starting playing around with wikkid [10:23] cool [10:23] http://wikkid.biz/ ? [10:23] thumper: more as a user but with some opinoins :) [10:23] Glenjamin: lp:wikkid [10:24] oh wow, that sounds clever [10:24] Glenjamin: yeah, thumper is :) [10:26] thumper: I've been refactoring qlog's internals. One of the things I have done is separate the cache form the state, so that it can be used more easily in a web environment (I had loggerhead in mind). [10:27] thumper: One of the things it can do is show a history view, filtered by file id. [10:27] or file ids [10:27] thumper: so it my be use full to you. [10:28] My refactored code is here: lp:~garyvdm/qbzr/log_refactor/ [10:29] thumper: It's maybe to soon to use for your purposes, but please keep it in mind. [10:30] thumper: If you take a look, look at lib/loggraphprovider.py [10:33] thumper: You would cache a LogGraphProvider for the branch, and a FileIdFilter per file, and then create a GraphProviderFilterState per request. [10:41] hey GaryvdM [10:41] Hi bialix. [10:41] should I do the release of 0.19.2 tonight? [10:42] I don't mind doing it. [10:42] hello, what does this mean? bzr: ERROR: Connection error: while sending POST /bazaar/: [Errno 0] Error [10:42] GaryvdM: please, land your latest patch [10:43] ok [10:44] xrmx: it depends on your URL [10:44] bialix, bzr branch lp:wikipbx , works in my machine, does not work on a chroot [10:44] hmm [10:44] bialix, chroot can ping outside world [10:45] maybe because you need to run bzr lp-login on chroot? [10:45] bialix: Done [10:45] shouldn't do to branch [10:45] GaryvdM: thanks [10:45] xrmx: smells like a bug [10:46] bialix, my chroot is base debian squeeze plus apt-get install git bzr [10:46] bialix, bzr 2.1.2 [10:47] can you post the ~/bzr.log ? [10:47] setting bzr lp-login would require copying you ssh key to the chroot [10:48] Ah - I think I know what is wrong... [10:48] Glenjamin, http://pastebin.com/8QShrp9w [10:48] * GaryvdM finds bug [10:49] xrmx: Maybe try bzr branch http://bazaar.launchpad.net/~wikipbx-dev/wikipbx/trunk [10:50] GaryvdM, that works fine thanks [10:51] what exactly is stored in a versionedfile/text-object? each line with: text of that line, author, date? or just text + revid? (latest format version if that matters) [10:53] xrmx: I think your bug has a similar cause to bug 634466 [10:53] Launchpad bug 634466 in Launchpad Bazaar Integration "bzr branch lp:subvertpy fails as it gets a private branch url. (affected: 1, heat: 6)" [Medium,Triaged] https://launchpad.net/bugs/634466 [10:54] xrmx: Please log a bug: https://bugs.edge.launchpad.net/launchpad-code/+filebug [10:56] knittl: Disclaimer: I'm not fimilar with the internals of versionedfile. What I'm saying is based on my knowledge of the api. [10:56] GaryvdM: that's ok. versionedfile is just an API [10:56] and it's more than nothing :D [10:56] knittl: I think that it only stores the text. [10:57] The revid is in the reference to the versionedfile object. [10:57] how can the text be mapped to revisions? [10:58] let me explain shortly what i got so far, maybe you can fill in the missing bits. i'm going top down [10:58] revision object: stores message, time, committer, branchnick, random revid (mail+time+random) [10:59] plus a sha1 of the inventory [10:59] and parents of course [10:59] right [10:59] inventory maps file_ids to canonical paths [11:00] so there is no composite pattern, an inventory cannot contain another inventory [11:00] also stores the executable bit per path but that's unimportant compared to the other stuff [11:01] correct? [11:01] Think so [11:01] file_ids do not change. ever [11:02] right [11:02] i think inventory also stores some hash of the files, but that will not matter for our simple case (without verifying content) [11:02] so, how will an revision+inventory get the right version of the file? [11:03] that's the bit i don't understand [11:03] I'm looking at the code for RevisionTree.get_file [11:04] GaryvdM, bug filed at https://bugs.edge.launchpad.net/launchpad-code/+bug/644244 [11:04] Launchpad bug 644244 in Launchpad Bazaar Integration "can't bzr branch lp:wikipbx from chroot (affected: 1, heat: 6)" [Undecided,New] [11:04] Revision tree knows it's revid [11:04] And we give it a file id [11:04] so a revisiontree = state of an inventory? [11:05] That calls self._repository.iter_files_bytes((revid, fileid)) [11:05] ok, but the files have to store the revid of each line/change? [11:05] otherwise you cannot reconstruct a particular version [11:06] Revision tree is a abstraction of a inventory, + file texts. It has the similar api to a WorkingTree, and others [11:08] that does not really answer my question [11:09] knittl: the strict answer to your question is 'no, they do not' [11:10] there are many ways to implement that api [11:10] lifeless: ok. then how can we reconstruct an exact version of a file for a given revision/inventory/'whatever you call it' [11:11] My understanding is that there is an index to say (revid, fileid) -> where it is stored, and where it is stored just has the text - no knowledge of the revid it's for. [11:11] lifeless know much more than me :-) [11:11] * lifeless is going to sleep [11:11] GaryvdM has it right [11:11] GaryvdM: yes. but fileids do not change. so how can you map from revid -> fileid? [11:11] because fileids stay the same over all revisions [11:12] if the contents of a file change, its id stays the same [11:12] that's the part i am confused about [11:12] You start with a revid and a fileid and ask for the text. You don't start with the text, and get the revid. [11:12] GaryvdM: yes [11:12] you have a revision (revid) and the filename (which looks up the fileid in the inventory) [11:13] then what? how do i get the correct version of the file? [11:14] You allready have the revid - to get the text, you can call RevisionTree.get_file [11:15] The fact that the fileid may have only been edited by a previous revision is handled by the api. [11:15] so a file stores revids -> text? [11:16] * a versionedfile contains multiple revisions? [11:16] I *think* a versionedfile object stores (revid, fileid) -> text [11:16] and then maps revid -> state of file [11:17] well, you access a versionedfile 'textstore' (?) via its fileid [11:17] so it only needs to map revid -> text [11:17] Ok - my be wrong there [11:17] independent of weave/groupcompress/delta/snapshot storage? [11:18] and that is what i was saying all along: 'text' objects (versionedfile) map revid -> lines/state/text [11:19] VersionedFile is a very low level api. I'm not sure what you are trying to achive, but would recommend maybe working with I higher level api, e.g. RevisionTree [11:19] * GaryvdM reads the VersionedFile code [11:19] not interested in 'working with an api' [11:19] i'm interested in the inner workings and low level storage mechanisms [11:20] (still, because i haven't managed in weeks to fully understand and nobody in here could properly explain the bazaar object/storage model) [11:21] Ok - Then I'm the wrong person to answer - sorry. [11:29] knittl: the low-level storage in the current format is pretty complex, aside from the revision/inventory/versionedfile abstractions that you are starting to know your way around, you need to understand packs, groupcompress and possibly the CHK maps depending on what you want to know. And I suppose for completeness I should mention the btree indices for the stores. [11:29] spiv: yeah, i noticed it's complex, because nobody knows it xD [11:29] knittl: it's not so much that nobody in here can properly explain it as that to do so takes quite a bit of time :) [11:30] spiv: but tell me, am i right with my understanding of versionedfile? [11:30] versionedfile (accessed by fileid) stores revid -> content [11:30] That the key into the 'texts' versionedfile is 'fileid'? No. [11:30] or revid -> changes (depending on the storage format) [11:30] The key into that versionedfile is (file id, rev id) [11:31] but a versionedfile only contains a single file? [11:31] No. [11:31] what then? [11:31] The API is actually called VersionedFiles [11:31] Plural. [11:31] with single file i mean: all versions of a file over time [11:31] versionedfile.py here (singular) [11:32] Or rather the VersionedFiles class is the preferred abstraction. [11:32] which contains multiple versionedfile objects? [11:33] anyways, let me try again :D [11:34] to get the contents of a file for a particular revision i'm using (fileid, revid) [11:34] so somewhere inside file (text) storage there has to be a place to store the revid? [11:34] None of the APIs of VersionedFiles return a VersionedFile object. That's not the key to understanding this. [11:35] let's not talk about concrete implemantions of that api [11:35] I need to go in a moment, but I'll quickly reiterate what I described the other day. [11:35] Say you have a revision, and want the contents of the file known as 'doc/manual.txt' in that revision. [11:36] yes [11:36] i only know of that file because it's stored in the inventory for that revision [11:37] You have the revision already, so you know the revid. [11:37] So you can lookup the inventory for that revision by using that rev-id as the key for the 'inventories' store [11:37] but i don't know the filename [11:37] yes, and from the inventory i get fileid from filename [11:37] (or if you want to view the repository as a unified keyspace, by looking up ('inventories', rev-id) as the key) [11:38] Then you ask the inventory object for the inventory entry for that path, 'doc/manual.txt' [11:38] That inventory entry will have, among other attributes, a file-id and a "revision_id" [11:38] revid is the same as the revisions revid? [11:39] That "revision_id" might be the same as the revision id you already have, but for instance if the file hasn't changed in recent revisions it'll be some older ID. [11:39] ok [11:39] So you can't assume its value, you have to check the inventory for it. [11:39] but it's a revid that can be mapped to a revision [11:39] it's 'last changed revid' for a file [11:39] Then you can use that (file-id, revision-id) pair as a key in the 'texts' store [11:40] To get the bytes of the contents of that file. [11:40] It's not 'last changed revid' necessarily. [11:40] spiv: why not last changed? you said if it didn't change in the last revision it will be an older one [11:40] It may often happen to coincide with that, but in fact nothing in the implementation requires it matches the ID of any stored revisions at all. [11:41] filid+revid = content [11:41] knittl: maybe the file contents were reverted [11:41] spiv: so it could be any revid? not even existing? what's the sense in that [11:41] knittl: maybe an import from a foreign system stored things slightly differently to the default implementation in bzrlib [11:41] knittl: it's just an random, unique value — like rev-id is. [11:42] but again i ask: fileid+revid = content. so i need to store the revid for lines of text? [11:42] spiv: does it usually match a revision rev_id or is that unlikely? [11:42] I don't know what "I need to store" means here. [11:42] to be able to map from id -> content i need to store both id and content [11:42] It usually does, but I wouldn't rely upon it. [11:43] (it might match a revision not present in this repo, for instance) [11:43] id in an index and content in a binary file [11:43] What do you mean when you say "id" here? [11:44] in that case fileid+revid [11:44] I've described already exactly how to access the content, model-wise. [11:44] (the exact bytes on disk are of course involve many more details) [11:44] We call that a key [11:44] i didn't ask about exact bytes [11:45] filestore maps (fileid,revid) -> content? [11:45] The 'texts' store does that, yes. [11:46] As I'm pretty sure I've said at least three times now :/ [11:46] good. didn't i ask that ages ago? [11:46] And didn't say that ages ago? [11:46] and if it maps (which it does you tell me) [11:46] s/say/I say/ [11:46] it needs to store fileid, revid and content [11:46] right? [11:46] that's what i want to know … [11:47] What did you think I meant by "look up" and "use as a key", I wonder? [11:47] spiv: i asked several times, and you always denied and put it in different wordings [11:47] you said: »no, it blah« [11:47] i'm just confused about this overly complex system [11:48] If I contradicted you, it's because you're using terminology inconsistently with how we use it. [11:49] Which is only going to lead to confusion and frustration, so please be patient if I insist on being precise. [11:49] because it's easier for me to understand 'text store stores file id, rev id, content' than to say 'bla, api, maps, key, …' [11:49] i'm sorry, if i sound rude, but it's not easy to grasp all that [11:49] 'stores file id, rev id, content' is just too imprecise. [11:50] why? it stores all of them, and then establishes a mapping [11:50] but these are low level APIs, they're not supposed to be easy to grasp - they're abstracted away from the user/developer by APIs/UIs that are [11:50] It doesn't suggests to me that they are stored together as a composite value, rather than that 2 of those are used to map to the other. [11:50] Glenjamin: hg uses revlogs (easy), git uses hashes with references to other hashes (also easy) [11:51] but neither are a feature [11:51] We'd usually say the texts store stores, well, texts, or content if you like. [11:51] is format 2a the same as knitpack format? [11:51] And the key for a text is the (file id, rev id) pair. [11:51] spiv: and some index stores the ids and maps it to the store [11:51] No, 2a is quite different to knitpack. [11:52] where can i find docs on 2a? [11:52] http://doc.bazaar.canonical.com/latest/developers/packrepo.html [11:52] knittl: well, I think you can see simplifying it to "stores file id, rev id, content" is omitting important structural details. [11:53] 2a == groupcompress packs + CHK inventories. [11:53] where's the documentation/explanation of 2a? [11:54] http://doc.bazaar.canonical.com/latest/developers/groupcompress-design.html 2a? [11:54] See RepositoryFormat2a in bzrlib/repofmt/groupcompress_repo.py [11:55] spiv: reading thousands of sourcecode lines does not help me to understand, i'm sorry. i've already read function names, comments, … [11:55] That's a description of the "groupcompress" part, that doesn't cover the CHK inventories [11:55] knittl: Well, there are docstrings that say relatively useful things like "A CHK repository that uses the bencode revision serializer." [11:55] http://doc.bazaar.canonical.com/latest/developers/inventory.html [11:55] Which isn't immensely helpful, but it gives some pointers. [11:56] As does the classes it in turn references. [11:56] Anyway, I must go. [11:56] ok, thanks [11:56] I'm sorry you feel it's overly complex, but fortunately or otherwise we didn't write it for your comprehension ;) [11:56] Good luck, until tomorrow perhaps ;) [11:57] there should be documentation nevertheless [11:57] i want to understand the version control system i'd trust my data [12:00] (back very briefly) So you understand exactly how your filesystem turns your data into bytes on media? And partition tables? ;) [12:00] Ok, really gone :) [12:01] no, but i understand partition tables [12:01] and i guess there's documentation for filesystems [12:01] which format does not change every 2 months [12:03] knittl: Thats 1. rude, 2. no longer true. 2a is more than a year old, with a commitment to stay as the default for much longer. [12:03] Hoping to get help from people by constantly bashing their work, way to go ! [12:03] GaryvdM: it was true for the past [12:04] also i found a lot of 'in development formats' [12:04] so i'm wondering [12:04] vila: well, there is no 'documentationy' documentation which explains the inner workings, which i find very sad [12:05] EPARSE, I'm not an native english documentationy means ? [12:05] vila: it's a made up adjective from 'documentation' [12:06] for me comments in source code do not count as documentation [12:06] then we don't have a documentation suited to your needs [12:06] … which i find very sad [12:06] we know that [12:07] (both that we don't have this documentation and that you're sad) [12:07] yes, i said it twice already [12:07] is there at least a plan to add documentation? [12:07] oh of course there is a plan [12:08] see https://bugs.edge.launchpad.net/bzr/+bugs [12:08] 2000 are open, 200 of high priority, now is that plan part of these 200 ? I'm not sure [12:09] This is a GPL project, everybody is welcome to scratch his own itch, and a lot of people are... without this documentation so far [12:10] Don't get me wrong, I asked the same question very early after joining the project thinking it will help me to start quicker [12:10] vila: i could only write documentation if i understood the internals [12:10] Well, I didn't start quicker but that wasn't a blocking factor either [12:11] knittl: I didn't ask you to [12:11] didn't say that [12:15] vila, do you write documentation about the things you add to bzr (other the code comments)? [12:16] Hydrox: when needed yes, most of my time is spent fixing bugs though, so generally it means making the code respect what the doc says ;-) [12:18] Hydrox: most of our doc is also targeted at users, mozt of the bzr hackers hang around here and on the mailing list where most of the internal knowledge is shared via discussions, merge proposals, etc. Nobody felt the need to summarize to put that into proper documentation, but any start will certainly be warmly welcome === Meths_ is now known as Meths === bigjools-afk is now known as bigjools [14:17] jelmer: Pingaling [14:23] jelmer, hey are you following setuptoolsbzr at all ? [15:35] nice, bazaar install crashed windows explorer :) [15:37] Fuu: file a bug mentioning versions (OS, bzr, etc), that's unheard of AFAIK [15:37] i'll do that [15:38] it wasnt why i came here though, just joined before even attempting to install :) [15:38] Fuu: you're welcome in all cases ;) [15:38] thank you [15:38] vila: hi [15:38] rocky: hi [15:39] jelmer: hey ! [15:39] rocky: no, what about it? [15:45] jelmer: so my ping was about the new bzr releases and their impact on debian [15:46] jelmer: I see you already packaged 2.3b1 and I'm wondering what else needs to be done [15:47] jelmer: 2.2.1 for sid, 2.1.3 for squeeze and 2.0.6 for lenny-backports ? [15:47] jelmer: I'm not a debian expert, just reading: http://packages.debian.org/search?keywords=bzr :-D [15:49] jelmer: and also, may be more important, are the debian branches in sync with the packaging branches on lp ? Do they share the same history ? etc [15:50] jelmer: and before I ask for the ponny, feel free to update http://wiki.bazaar.canonical.com/Releases/2.2.1 (and 2.0.6, 2.1.3 and 2.3b1 though I already updated the later) [15:50] jelmer: where is my ponny ? [16:06] hello all! [16:06] I am getting this error when pushing a new branch: [16:06] > Using default stacking branch /~ubuntu-qa-website-devel/ubuntu-qa-website/trunk at lp-97781328:///~ubuntu-qa-website-devel/ubuntu-qa-website [16:06] bzr: ERROR: KnitPackRepository('lp-97781328:///~ubuntu-qa-website-devel/ubuntu-qa-website/trunk/.bzr/repository') [16:06] is not compatible with [16:06] CHKInventoryRepository('lp-97781328:///~ubuntu-qa-website-devel/ubuntu-qa-website/wordpress-theme/.bzr/repository') [16:06] different rich-root support [16:06] any ideas? [16:13] ara: one of them is in 0.92 format, the other is in 2a format, which are not directly compatible. (upgrading to 2a is a one-way upgrade) [16:13] it looks like trunk is in 0.92, and the one you are trying to create is in 2a [16:14] either: [16:14] a) Get trunk to upgrade to 2a [16:14] b) rework so that you're local stuff is in 0.92, and then push that to a new branch [16:14] how do I a) [16:15] ? [16:15] bzr --upgrade 2a? [16:15] ara: "bzr upgrade --format=2a lp:ubuntu-qa-website" [16:15] jam, thanks a lot! [16:15] (though --format=2a is now the default for upgrade) [16:21] the process crashed :( [16:22] http://pastebin.ubuntu.com/497788/ [16:22] I can report the bug, if it is interesting [16:24] I believe that's a bug in 2.2.0, fixed in 2.2.1. [16:25] fullermd, can I use a bzr daily build to test? [16:26] If it's new enough, I guess. It's probably just as easy to use 2.2.1 though. [16:27] 2.2.1 isn't in the PPA yet, so a good option might be to branch the release branch and build it [16:27] bzr branch lp:bzr/2.2 && cd 2.2 && python setup.py build_ext -i && ./bzr whatever [16:27] ara, fullermd: I just changed and https://edge.launchpad.net/~bzr/+archive/proposed [16:27] seems to say that the packages haven't been uploaded yet [16:27] ara: is this your personal project ? (you have direct admin access?) [16:28] jam, I do have admin access [16:28] if you want to join me to the group, I can upgrade it for you, and then leave group [16:28] jam, OK, is jam your lp id? [16:28] jameinel [16:29] jam, added [16:35] ara: working on it [16:35] jam, thanks! [16:36] ara: hmmm it is giving me permission denied errors [16:37] jam, weird, as the owner is ubuntu-qa-website-devel and you are now part of it... [16:37] yeah, but I'm getting the same error elsewhere, still investigating [16:42] ara: I'm guessing it might have had something to do with the new URLs that thumper worked on (bazaar.launchpad.net/+branch/ubuntu-qa-website vs ~ubuntu-qa-website-devel/ubuntu-qa-website/trunk) [16:42] I don't know that for sure [16:42] but I got it working [16:43] thanks! [16:43] ara: I'll let you know when the upgrade finishes [16:43] jam, cool :) [16:48] ara: looks to have completed [16:51] jam, thanks a lot, will try now the push === beuno is now known as beuno-lunch [17:08] Hello all. [17:10] jam, it worked, thanks! [17:10] ara: happy to help [17:12] I'm writing a thing wrapper to some choice VCS systems and I'm wanting to add Bazaar support to my application. I've read the integration wiki page but one thing it doesn't talk about is repository creation. [17:13] I'd really like to understand the moving parts a little better. Anyone got a minute to help me understand what a bzr repository is composed of? [17:13] Basically, I'll be creating server-side repositories that will only be accessed via a network server and NEVER locally. [17:14] jeremyw: is your wrapper for the client or the server? [17:14] jeremyw: Be sure you're ascribing the right level of meaning to 'repositories'... [17:14] Where I've gotten to at this point is I've found bzrlib.builtins.cmd_init_repository.run(). [17:14] fullermd: That's what I'm learning is that I think my terminology is different than what bzr uses. [17:14] i think you actually want a bzrdir [17:15] Glenjamin: This would be a library uses on the server for things like repository creation and repository browsing. For simplicity, let's just pretend I was writing a repository browser. (That being said, please don't try to get me to use XXX repository browser as this is just an example scenario.) [17:16] Glenjamin: Yeah. I see that being used in the function mentioned above. [17:16] but repository browser XXX is great! D: [17:16] haha [17:16] Glenjamin++ [17:16] I always worry about projects to create wrappers like that. It's sure to wind up being an ugly force-fit to one system or another... [17:17] Well, this tool needs to create repositories that can be accessed remotely by users but also accessed locally via my API to do things like creating the repository browser. [17:17] jeremyw: http://doc.bazaar.canonical.com/bzr.2.2/en/user-guide/core_concepts.html [17:17] fullermd: Well, I'm trying to do less wrapping and more direct bzrlib usage. [17:17] admittedly its not exactly clear on repositories [17:17] Right now, I just subprocess.Popen to "bzr init PATH". ;) [17:18] if speed isn't an issue, thats likely to cause the least surprises [17:18] Glenjamin: That's what I'm seeing right now...everything I've seen (docs/examples/etc) barely talk about repositories. [17:18] basically, bazaar doesn't have the repository concept in the same way as other VCSes [17:18] I mean wrapping in a conceptual sense. In svn, frex, you have to take a lot of care where you put a repository, because you can't do anything outside of one, and can hardly to anything between them. [17:19] Glenjamin: Well, I'd still rather do this in a Pythonic way so I'll likely use bzrlib.builtins.cmd_init_repository.run() but I'm wondering if that is ideal/performant. [17:19] a repository is simply somewhere revisions are stored, normal branches just have their own repo [17:19] fullermd: Understood. [17:19] Whereas in bzr, it's totally different. Meanwhile, in bzr, you have a branch granularity you center around, whereas in svn-land branches practically don't exist, and you deal with semi-arbitrary subdivisions of the repository. [17:19] in most cases, the repository concept in other VCSes maps to a bazaar branch [17:19] sort-of [17:19] That's what rockstar was telling me. [17:20] i think that calling bazaar commands is likely to be the safest option, maybe going one level down and using the API the command wraps [17:20] but no lower [17:21] Cool. Now if I wanted to understand these terms a little better and how they interact, where should I start? [17:22] from fullermd wiki page I'm searching vainly for a few minutes [17:22] I'm only really familiar with the concepts from using it i think [17:22] I'm reading that wiki page and the integration page. [17:22] http://wiki.bazaar.canonical.com/MatthewFuller/SpotDocs/PiecesInBrief [17:23] The Length-ier discussion linked at the bottom has some inter-VCS comparisons at the end too, which may be useful. [17:23] yeah, this one, damn ff [17:23] fullermd: Thanks man. I appreciate it. [17:23] are there other articles like this? I'm about to introduce 40 or so students to bazaar with a centralised smart server next week [17:24] in previous years we gave them svn+tortoise, and i want something less rubbish. [17:24] I agree that wrapping vcs is usually bad but my project practically requires it. I have a tool that will support N VCS systems so I need a way to do this stuff programmatically. [17:26] Glenjamin: I've got those SpotDocs covering general concepts (which I still need to do some weed-whacking on the editing of), the interactions of push/pull/merge/etc, and how the rev numbering and history structuring affects things. [17:26] If my tuits would stop being all rectangular... [17:29] vila: sorry, I was interrupted bny breakfast [17:29] jelmer: sure, and since it was a long one, you had to take a nap :-D [17:29] vila: >-) [17:29] jelmer: kidding :) [17:30] vila: What are the lp branches you were referring to? [17:30] Mmmm... nap... [17:30] fullermd: By a quirk of history and naming, that whole conglomeration (Repository, Branch, and Working Tree) is often colloquially called a "branch". [17:30] Loving it. :) [17:30] jelmer: the lp:ubuntu/xxx/bzr [17:31] jeremyw: In retrospect, sure, it's lovable. When I started using bzr, and vented some epic ranting about it on #bzr, not so much :p [17:31] jelmer: well, the lp:~bzr/unbuntu//bzr to be precise [17:31] vila: No, they're different. lp:debian/xxx/bzr would be the ones matching those on bzr.debian.org, except they have the same contents but different revision data [17:31] jelmer: argh [17:32] hence my question :-/ [17:32] fullermd: Well, I was speaking more about how that summed up what you were saying in here. :) [17:32] vila: james_w might be able to fix that [17:32] james_w: ^ [17:33] jelmer: fixing as in updating/rewriting the debian branches ? [17:34] vila: making the lp:debian/ branches use the ones from bzr.debian.org directly rather than having it create them from scratch based on the source packages [17:35] jelmer: ha, right, yeah good first step, but the disjoint history will remain. [17:35] jelmer: and which bzr releases are supposed to find their way in the debian world ? 2.3b1 has, but what about 2.2.1, 2.13 and 2.0.6 ? [17:36] 2.1.3, I don't care (yet) about 2.13 [17:37] I do. Can I have 2.13 right now plz? [17:41] fullermd: bzr pull --from-future lp:bzr/2.13 [17:41] fullermd: you may encounter ENOTIMPLEMETEND though... [17:41] * jeremyw expects to be a bzr expert after reading these four pages... [17:41] ;) [17:42] bzr: ERROR: exceptions.ReversedEntropyArrow [17:42] bug 202374 might actually be easy \o/ [17:42] Launchpad bug 202374 in Bazaar "pull and update should accept --show-base (affected: 0, heat: 0)" [Medium,Confirmed] https://launchpad.net/bugs/202374 [17:43] except for the tests, maybe, and all the error checking [17:43] oh well [17:43] fullermd: ha cool, so --from-future has been implemented, the error you're seeing should be shallow [17:44] Oh, very shallow, if you perceived it from 4 dimensions. Just infinitely deep in 3 :p [17:44] get new glasses :-D [17:45] I heard good things about 3D ones.. should work there too I'm sure (otherwise they wouldn't be talking so much about them) [17:46] What, you suggest Klein bottle lenses? [17:48] yeah [17:48] Well, it would be a unique look, I guess. The chicks would dig it. [17:51] dogs too [17:54] jelmer: So, for the immediate series of releases, should I wait until 2.2.1 lands in a debian branch before I do the PPA packaging, or should I go ahead with the PPAs anyway? [17:55] jeremyw: Well, that's the goal :) Understanding the foundations, working out what various commands yield, or what should be done to achieve a given end-state, _should_ (at least in theory) be a fairly straightforward exercise. [17:55] jeremyw: And those pages are a (sadly time-limited) attempt of mine to lay out those bricks. [17:56] maxb: my gut feeling is that you should go ahead, but we need a better short/middle/long (dunno) term solution === beuno-lunch is now known as beuno [17:59] oh urgh [18:00] the bzr ppa brances are a complete mess [18:00] The debian packaging history and the udd parallel import have been merged together [18:01] maxb: which means you can merge from debian branches but ignore everything except the debian dir ? [18:01] maxb: or worse ? [18:01] which means the history is an evil incomprehensible mess [18:02] maxb: ha :-/ [18:03] maxb: dir you tried bzr qlog bzr-* ? It helps a bit [18:03] Also, the debian experimental branch contains a .bzrignore.THIS.THIS file, which is just silly :-) [18:03] operator error :-/ [18:06] maxb: bzr qlog bzr-maverick bzr-lucid bzr-karmic bzr-jaunty bzr-hardy [18:06] maxb: ^ is not *that* bad [18:06] is just about bearable, yes [18:06] not what I'd call pleasant, though === Ursinha is now known as Ursinha-lunch [18:07] maxb: yeah :-/ [18:07] Hmm, I definitely need to talk to jelmer, as he seems to have switched from using bzr merge to using bzr merge-upstream for branch maintenance with 2.3b1 [18:08] Is there a quick way to test if two branches have any revisions in common? [18:09] maxb: ok, let me know if you're blocked or need anything, I'm about to EOD but I may pass around later [18:09] maxb: /join #tmlabs [18:09] maxb: just a sec [18:09] maxb: oops [18:09] wrong button [18:09] maxb: bzr missing will tell you [18:09] dash: I don't want missing, I want bzr not-missing :-) [18:09] heheh [18:10] * fullermd . o O ( bzr gnissim ) [18:10] Also I want people to have not applied different merge structures to the hardy ppa branch vs the maverick ppa branch [18:25] fullermd: I apprecite it. [18:28] jeremyw: Were they helpful? [18:28] fullermd: I just got out of the shower. I'll be reading in about half an hour. I'll let you know. Will you be here for a bit? [18:28] (unfortunately not really aimed directly at your problem, but ...) [18:29] Oh, good. My writing hates stinky people 8-} [18:29] I'll probably be around for a little while, yah. [18:31] No sweat...you're not on the hook or anything. Just hoping not to miss you when I give my feedback. ;) === deryck is now known as deryck[lunch] [18:35] Well, I'll be in IRC even if I'm snoozing up a storm, so I'll have it in logs if nothing else. [18:36] (if I logged out, who knows what vila would say about me behind my back...) [18:38] fullermd: That's why I wget and grep irclogs.ubuntu.com...... ;-z [19:14] Hi, I did "bzr bind lp:myproject" now my bazaar repository works like subversion (centralized mode). I want revert to distributed mode, how to make it? [19:14] bzr unbind === Ursinha-lunch is now known as Ursinha [19:14] just that? I have many member on the team, Should they have bzr unbind too? [19:15] bzr unbind undoes the bzr bind operation [19:15] It's a setting on your particular branch. If they have a checkout/branch of their own, theirs is independent of yours [19:15] thanks LeoNerd === deryck[lunch] is now known as deryck === khmarbaise_ is now known as khmarbaise === Meths_ is now known as Meths [21:48] How can I download a specif old revision from launchpad? [21:48] *specific [21:48] ellimistd_: bzr get -r $old_rev [21:52] great, thanks [22:03] jelmer: Hi, are you around? (wanted to talk about debian packaging) [22:36] fullermd: Just finished reading your docs...they helped a lot. Thanks. [22:36] maxb: hi [22:36] maxb: somewhat [22:40] jelmer: hi. I'd like there to be a branch which I can use as a basis for PPA packages of 2.2.1, but so far I've held off preparing a 2.2.1-1 for sid and asking for sponsorship, on the basis that it's probably easier for someone to just do, than to review [22:40] What's your thoughts on that? [22:41] Also, I note that with 2.3b1, it looks like you've changed to using 'bzr merge-upstream' to integrate new upstream versions into the packaging branches for Debian [22:42] Also, what's the general criteria on Debian pkg-bazaar membership, and would it make sense for me to request membership if I'm working on this sort of stuff? [22:43] maxb: A sponsorship request for sid would be futile - squeeze is frozen [22:43] maxb: Yeah, you're more than welcome to join the pkg-bazaar team [22:43] sid is already ahead of squeeze [22:44] Therefore I assumed sid was being kept up to date regardless of the freeze making it less important than usual [22:45] maxb: That's because of unfortunate timing - I uploaded to sid less than 24 hours before squeeze was frozen. [22:46] aha [22:47] In that case, is there intent to put 2.2.1 into sid, or will we now leave sid alone until squeeze has released? [22:50] hello maxb, jelmer [22:50] fullermd: ping [22:56] I did 'bzr init' and then i create branches via bzr branch, which creates a subdirectory. [22:56] I accidentally did a bzr pull in the parent directory [22:56] any way to revert it? [22:57] bzr revert doesn't seem to do anything [22:57] 'bzr init' creates a new empty branch. 'bzr branch' creates a new branch copying from somewhere else. Doing what you said suggests you may have some confusion between 'bzr init' and 'bzr init-repo' [22:58] maxb: ah [22:58] i think you are correct [23:11] maxb: thanks for the help [23:16] Let's pretend I was a hosting company for Bazaar. If I understand correctly, 'bzr init-repo' will create a directory that will contain branches. 'bzr init' will create a directory that is a branch. It seems the former would let the users of the repository create/use as many branches as they want/need while the later will only allow one branch. Is this correct? [23:16] The more I think about it, the less it makes sense but I had to ask. [23:17] jeremyw: Yep, you're right. [23:24] jeremyw: well that's a way of seeing it [23:25] bzr init-repo creates a shared repository [23:26] bzr init (and bzr push, bzr branch, etc.) create a branch, if the branch is located in a shared repo, it will use the history store of the shared repo, instead of using a branch-specific store. [23:26] IMO, whether you allow creation or one or multiple branches is not a property of init-repo [23:27] However, using a shared repository has a strong impact on access contral. [23:27] I'm learning here so bear with me. I think the analogy of me being a Bazaar hosting tool makes the msot sense. The usage pattern I see is: You create a repositroy on the server and N number of users will access this repository by cloning it and pushing to it. [23:27] well [23:27] strictly speaking, in bzr you don't clone a "repository" [23:27] Well, you clone a branch. [23:28] So if I wanted to allow a repository to have N branches, I'd need a shared repository right? [23:28] yup [23:28] that's what shared mean [23:28] "shared history store for multiple branches" [23:28] not "shared by multiple users", that's an orthogonal kind of sharing [23:29] I got you. [23:31] as a commercial hosting, you could also use stacked branches, and a custom bzr+ssh server that optimize new branch uploads without giving write access to everything to every user [23:31] actually, that's exactly what launchpad does :-) [23:36] Nice...that's something I'll look into as well. [23:37] Well, I don't plan on being a Bazaar host but at the same time, the needs of my project were easier to explain that way. [23:41] well, there's definitely a niche for "github for bzr" [23:42] launchpad is too complicated and featurful/confusing for some people [23:42] When you have a shared repository, is there still a default branch? [23:42] default branch? [23:42] there's no such thing in bzr [23:42] Well, 'bzr init' creates a default branch doesn't it? [23:42] no, it creates a branch [23:43] I have no idea what you mean by "default branch" [23:43] Oh yeah...it's named the same as the parent dir. [23:43] Doh. [23:43] ddaa: I'm probably mixing terms here. My fault. [23:43] well no, it's named the same as the directory of the branch [23:43] because well, that's what the name of a branch is, the url of its directory [23:43] That's what I meant. Sorry. [23:44] and no, bzr init-repo does not create branch at the root of the repository [23:45] you could probably set up something like that, and it would probably work, but I'm not sure you can even achieve it using the command line, without moving stuff in and out of .bzr by hand [23:45] I wonder if a shared repository is necessary. Let's say I created a repository the same way 'bzr init' did. I could create another repository the same way and fill it with the contents of another branch riht? [23:46] So I wouldn't need to have a shared repository. [23:46] yeah, we call that a "standalone branch" [23:46] that's a branch with its own non-shared .bzr/repository [23:47] the key object in bzr is the branch [23:47] repositories are just support for branches [23:47] But you can still create a branch from another branch. [23:47] why "still"? [23:47] a shared repo is never necessary [23:47] Too many concurrent conversations. [23:48] it's just a nice optimization [23:48] I got you. [23:48] Cool. [23:49] Well, this has been enlightening. [23:51] ddaa: I appreciate explaining things to me.