[00:07] poolie: it rang out, trying again === mw is now known as mw|out [00:57] 68 failing now [01:20] 8 === kiko is now known as kiko-zzz [01:29] heads down on ssh locking [01:58] woo [01:58] full test time, think its finally hammered into submission [02:01] lunch time too [02:02] lifeless: when you get some free time, can I harass you about the get_parent_map/old-server reauthenticate-over-ssh issue again? [02:05] why doesn't this work: $ bzr log -r date:2008-03-14.. [02:05] bzr: ERROR: Requested revision: u'date:2008-03-14' does not exist in branch: BzrBranch6(...) [02:06] note it is the first one _after_ that date according to the source [02:06] still, it seems a strange error [02:08] you'd rather "no revisions after xxx"? [02:08] anyhow is it in fact true there are no revisions on or after that date? [02:08] or did you expect it to just log nothing? [02:28] * Odd_Bloke would expect it to log nothing. [02:29] Logging nothing or saying "no revisions after xxx" both make sense to me [02:29] Logging nothing is more consistent with what we do in an empty branch. [02:31] printing the error message avoids the user wondering why there was nothing logged though [02:31] similarly, I wouldn't be opposed to printing "Empty branch" when running bzr log in an empty branch [02:33] Nor I, I was just commenting on current behaviour. [02:33] I can't say I'm massively bothered either way. [02:34] poolie: there are no revisions after that date [02:35] what jelmer said is what I think ( Logging nothing or saying "no revisions after xxx" both make sense to me) [02:44] I also find the default silence of bzr to be a little eerie sometimes [02:52] remind me how to do this: I've made some changes in a working tree, I haven't committed, and now I realise I want them in a new branch. [02:52] jml: make a new branch [02:52] cd into it [02:52] bzr merge --uncommitted ../old-branch [02:53] bzr reconfigure --checkout ; bzr branch . wherever ; bzr switch ../wherver [02:53] mwhudson: thanks. [03:38] ok really the last time. fingers crossed [03:41] lifeless: why do you not want the inventory_validator_type in Revision objects? [03:42] I think its making an abstraction violation worse [03:43] I would be quite happy to ditch the validator entirely, but if we're keeping it, I think we need to know what it means. [03:43] I think it is happily hidden behind Repository/Revision themselves. [03:43] The validator? [03:43] yes [03:44] its exposed at the moment, and only well defined some of the time, but all the uses for it are things that should be methods on either Revision or (probably better given our current object use style) Repository [03:45] So if I were to introduce a new repo format whose revisions didn't have validators in their serialization, that would be fine with you? [03:45] if we can somehow validate the revisions without that, in principle, yes. [03:45] You mean "validate the inventories"? [03:46] no, I mean the revision - which is a transitive validation of all the stored data [03:46] The inventory_sha1 does not validate the revision. [03:46] thats true [03:47] I was making a more general statement. I really precise one would be 'if it is no less capable of validating the inventory for that revision', but thats much more awkward [03:48] lifeless: It sounds like you're significantly increasing the difficulty level. [03:48] Validating the inventory is one thing-- validating the whole revision is another. [03:48] right now we get revision validation via the revision signature [03:48] clearly if thats not there we only have validation of the data the revision references [03:49] and I did not intend to raise the barrier higher than that [03:51] I don't really get your second statement. [03:51] ok, well lets start over [03:51] are you planning on removing inventory validation? [03:52] (aka not reenabling it) [03:52] No. I was planning to ignore it until you started saying this was a blocker for rich-root-pack [03:53] I think its a pretty severe defect in the current code [03:53] Now I want to do the minimum necessary to keep you happy and ensure we don't have this problem again. [03:54] I will be happy if: pack-rich-root repositories validate their inventory [03:54] during 'check' [03:54] If I simply introduce a new revision serialization just to indicate the inventory serialization, that's going to be wasteful. [03:54] such that an edited inventory causes a check failure [03:54] Because I'll have to introduce at least two, and possibly many more as time goes on. [03:54] I don't think you need to introduce a new serialisation, but you were adamant that you needed to [03:55] If we don't know what a validator is, we can't hope to use it correctly. [03:55] erm [03:55] clearly that statement is true, but we know what validators we have [03:56] I wrote the code to fix things so that I would be happy [03:57] I think that sticking the validator in the revision is horrid. It's local data; it doesn't belong there. [03:57] its very simple: change repository.get_inventory_sha to actually use the text, and change fetch to update the sha1 during rich root tree root addition [03:57] those two changes, in total, made me happy. [03:57] At the cost of making me tremendously unhappy. [03:58] Because bazaar is a distributed system, and values should really be write-once. [03:58] which is not an acceptable cost [03:58] well given that the inventory is being rewritten *already* [03:59] the inventory validator being updated is a consequence of the rewrite being done by the plain->rich root fetcher [04:00] lifeless: it is being rewritten, true, but in a deterministic way. The new values are implied by the existing values. [04:00] the same holds for the inventory sha change [04:00] in the format under discussion the new inventory serialisation is deterministic, as is the resulting sha [04:01] The problem with the inventory sha change is that it is tied to the inventory format, but affects the revision format. [04:01] If the revision format implied that validator, that would be acceptable to me. [04:02] uhm, those two things are part of a repository format though; they can't be used in isolation or arbitrary combinations [04:02] you can't use an original format revision serialiser today [04:02] You can shove anything in a bundle, and it will translate as necessary into the target serializers. [04:03] directly? or via install_revisions? bundles should not be serialising, they should be using the object model [04:04] I would have to check. [04:04] if they use serializers directly they are profoundly hostile to e.g. bzr-svn [04:05] serialisers are private on a repository [04:06] Well, it looks like it only handles inventory, not revisions. [04:07] If the repository doesn't use the same inventory serializer as the bundle, then it converts it to an object and calls Repository.add_inventory [04:09] so the basic thing here seems to be - we have individually versioned formats for code reuse and to catch some cases of bugs; There are dependencies between our formats such that changing anything about e.g. inventory changes the value of fields in e.g. revision [04:09] so yes, I think you need a new revision format to be strictly correct; the new format needs no changes other than a version string bump IMO. [04:10] and I think every inventory change will do that if you want to be able to analyse serialised revisions outside of the repository that owns them. (I think that being able to do that is of questionable value FWIW). [04:11] And as you can imagine, I don't want that kind of churn. [04:12] I'd rather specify what the validator means. [04:13] maybe I don't understand what you mean [04:13] but unless you define the validator as being an arbitrary datatype (and thus needing a format bump _anyway_ when it changes), I don't see it preventing any churn [04:14] hello, i've kind of goofed up my bzr history on the bzr repository/server. i didn't do a bzr bind, and several other people committed changes that i just merged in, and then pushed up a few of my changes. the content is accurate, but the history is fscked. is there a way to fix/correct the history? [04:15] what do you want it to look like? [04:15] i want the prior history to be shown. 108 revisions were removed from the branch, and replaced by my generic 'a bunch of updates' commit messages. [04:16] :( [04:16] j1mc: sure thing, what you need to do is do 'bzr branch -r revid:XXX trunk local; cd local; bzr merge -r revid:YYYY ../trunk; bzr commit; bzr push --overwrite ../trunk' [04:16] lifeless, can you please explain to me what that will do? [04:16] j1mc: where XXX is the revision id (not revision number) of the last commit that should have been on the mainline before you pushed [04:16] (thanks, btw) [04:17] j1mc: and YYY is the revision id of the tip of your branch (possibly even the current mainline tip) [04:17] j1mc: what it will do is do the merge that bind would have done via 'bzr update' [04:18] j1mc: you can get revision ids via bzr log --show-ids [04:18] lifeless: this is on launchpad, will it cause 108 emails to be sent out with the updated revision history [04:18] s/updated/corrected [04:18] j1mc: presumably :(. thumper ^ [04:18] haha [04:19] after you ahve done this [04:19] there is an option you can turn on in your branch to prevent this mistake [04:19] its in the manual I believe [04:20] Kamping_Kaiser: look at that ^^ [04:20] thanks... [04:20] lifeless: If we have different types of inventories, we can just specify the validator type, e.g. "inventory6sha1" [04:20] That means we don't need a different format for every inventory format. [04:20] abentley: so the validator becomes a tuple essentially - (type, validator) [04:21] Sure. [04:21] abentley: this seems redundant to me, because the repository already knows the type. Which is why I don't think we need a new revision format in the first place. [04:22] The bundle does not know the type. It is not in a repository format. [04:23] abentley: but if you feel its essential in the disk format, go ahead I guess. I really think its wrong, but we seem to be at an impasse [04:24] I think bundles are buggy then (grin-joke) [04:24] well, play on words. I really do think that a bundle has the same duty of integrity as any other revision storage format [04:24] A few minutes ago, you said "I think you need a new revision format to be strictly correct" [04:25] I can see the logic for why you want one; I don't think its needed because its conflating two different things [04:25] lifeless: Bundles have very good integrity checking. [04:26] good; so they _must_ know whether they came from a rich root or non rich root repository [04:26] and if they know that, they know whether the sha in their revision is for a rich root or plain inventory [04:26] sha for the inventory in their revision [04:27] The one does not follow from the other. [04:27] given our data model I think it does [04:27] They store a sha1 of the expected text output. [04:27] The sha1 of the fulltext. [04:28] But this is stored in private data-- the text of the revision is completely ignored. [04:29] which clearly will differ if the source and target repository differ [04:30] If the source and target differ in format, it generates the fulltext of the source, verifies it, and then convert it into the target format. [04:30] where you mean 'serialisation of a single object type' by format [04:30] and when I talk formats I mean 'entire repository' [04:30] Right. [04:31] if bundles had the repository format there would be no problem, you wouldn't try to use a fast path that doesn't fit [04:32] Or alternatively, if inventory format didn't affect revision contents, there would also be no problem-- we could mix and match. [04:32] anyhow, we agreed on a compromise in London, which was a new revision format, so lets do that. I'm really unkeen on inventory_validator being (type, opaque_data), because you have to have a new bzr to read new types and validate them anyway [04:32] so I don't see that we gain anything over just revving the revision serialiser itself; which is trivial and tiny amount of code [04:35] lifeless: Okay, fine. I'll implement two revision formats, one for each inventory format. [04:36] But *you* get to implement the new revision format when you do journalled inventories. [04:36] surely its [04:36] class SubX(parent): [04:36] revision_version = 7 [04:36] class SubY(parent): [04:37] revision_version = 8 [04:38] I have no idea. [04:38] I suspect it's a bit more than that. [04:38] Once you've implemented the serializers, you've got to update the places they're used. [04:39] assuming you ditch knit based rich root and subtrees [04:39] which I recommend [04:39] then its just a new subclass of the two Pack repo formats, with a single line override in the same manner [04:42] lifeless: you responded pretty quickly to my "history" issue above. is that a common situation? [04:42] j1mc: no [04:43] you just know bzr well. and other people bind their branches.... so it doesn't happen to them? [04:43] lifeless: And registering the formats in xml_serializer.format_registry, and I'm pretty sure they pop up in some other places. [04:44] abentley: ok, so 10 lines then ? :] [04:44] j1mc: I'm one of the old hands yeah :) [04:45] ok [04:45] :) thanks so much for your help, lifeless [04:45] I've nuked VersionedFile.get_parents, now to make the implementation within knit.py smooth. Then a patch we shall see. [04:45] btw, i'm in the general vicinity of john meinel (sp?). i've met him once before... he's a good guy. [04:46] j1mc: cool, yes he is [04:46] abentley: btw, export-loom, am I expecting a new patch, or should I remove the default and commit myself? [04:46] Please go ahead. [04:47] abentley: will do [04:48] I'm for bed. [04:48] wow [04:48] must be very late now [04:49] hmm, I think I forgot something.. [04:49] Eh, not even 1:00am [04:49] jelmer: hah! [04:49] jelmer: Was it 'going to bed'? Because I've done exactly the same... [04:51] Odd_Bloke: :-) [04:54] I'm new to Bazaar and I'm having problems figuring out how to pull an older revision of a branch. Could somebody help me out with the command? [04:58] Symgeosis: bzr pull -r revno --overwrite [04:58] Thanks Lifeless. [05:01] lifeless: i have an additional question about your prior suggestion. [05:01] lifeless: I lost the context, can you explain (launchpad emails)? [05:01] you wrote, "and YYY is the revision id of the tip of your branch (possibly even the current mainline tip)" [05:02] would that be a revid of one of the earlier revisions? [05:02] i don't know what a branch "tip" is [05:03] thumper: http://pastebin.ca/948485 (context) [05:03] j1mc: The branch tip is the revision that the branch points to. The head, in git terminology (I think). [05:05] Odd_Bloke: thanks, but i still don't quite understand. [05:05] j1mc: you could set you subscription level to "No email" for the change and then edit it back afterwards to avoid the email [05:11] hm, so should i do this locking change by passing a parameter down saying "don't wait", or by having the smartserver set a global option not to wait for locks? [05:12] relying on global state is undesirable, certainly [05:12] otoh it really should not normally be waiting [05:13] lifeless: sorry to keep bugging you (if you are even still around), but i'm having a hard time knowing what i should be selecting as the second (XXX) revid. [05:14] would it be a recent revid (from just before i goofed up the history)? or one of the ones from earlier in the history? [05:18] do you mean second (YYY)? [05:19] bob2: yes, the second YYY [05:19] j1mc: it's the last one that had what you consider "good" history [05:19] probably the one just before your merge [05:20] YYY should be the revid of the top of your branch (second part of the output of bzr revision-info) [05:21] maybe it would help if i posted the last good revision to pastebin [05:21] http://pastebin.ca/948518 [05:22] 3651.1.108 is the last good revno [05:22] i think i would use that for the XXX part [05:23] (that's a revision number, not a revision id) [05:23] bob2: correct [05:23] revision-id:asommer70... [05:23] that's the revid [05:24] i'm hesitant to use the "asommer70@gmail.com-20080318135647-hbbpj5bl819nu1oa" as both XXX and YYY, but that's what i think is being suggested. [05:25] XXX is supposed to be the last revision id before things went wrong, YYY is the tip of your currently wrong branch (which, as lifeless said, might still be the tip of the lp trunk) [05:26] afaict [05:27] so in that example, my "incorrec" push has a revid of "jwcampbell@gmail.com-20080319032336-pyefchhxbdwyrsjp" that would be YYY [05:27] (it is the most recent push to the branch" [05:27] (sorry for the typos, it's late) [05:32] bzr branch -r revid:asommer70@gmail.com-20080318135647-hbbpj5bl819nu1oa trunk local; cd local; bzr merge -r revid:jwcampbell@gmail.com-20080319032336-pyefchhxbdwyrsjp ../trunk; bzr commit; bzr push --overwrite ../trunk [05:33] does "bzr log" in trunk show what you want it to show? [05:33] hi soerry [05:33] been on phone [05:33] bob2: yes. [05:34] on my local copy [05:34] lifeless: np [05:34] j1mc: so [05:34] j1mc: to find XXX, run bzr log --show-ids [05:35] j1mc: somewhere amongst your merged revisions will be a commit to the trunk that *should* be on the mainline (that is have a whole number revision number, with no dots), but that is shown nested [05:35] j1mc: the first one of those, is the one you want as XXX [05:35] http://pastebin.ca/948518 [05:36] the first one listed is the most recent commit and push to the branch. it's the one that screwed everything up. the one after that is the last good one [05:36] based on that, i think this is correct: [05:36] bzr branch -r revid:asommer70@gmail.com-20080318135647-hbbpj5bl819nu1oa trunk local; cd local; bzr merge -r revid:jwcampbell@gmail.com-20080319032336-pyefchhxbdwyrsjp ../trunk; bzr commit; bzr push --overwrite ../trunk [05:37] where "asomer..." is the last good one [05:37] j1mc: ok, then use asommer70@gmail.com-20080318135647-hbbpj5bl819nu1oa as XXX [05:37] and where "jwcampbell..." is the tip, or most recent commit [05:37] and whatever revision id revno 3666 has for YYYY [05:44] lifeless: in my log, there is no 3666 [05:45] uhm [05:45] 3667 and after a while 3666 and so on [05:45] what command are ou running [05:45] to get the log [05:45] do you have an alias set overriding revision selection [05:45] bzr log --show-ids > ~/Desktop/ids [05:45] no [05:46] then look further down the file :) [05:46] :) got it [05:53] lifeless: i see the smart server locking tests specifically ask for knit repositories [05:54] do you suppose that is an accident, or because they want one that has more locking than packs? [05:54] hm [05:54] the former I believe [05:55] i'll mail spiv [05:56] annotate doesn't blame me ? [05:56] * poolie looks [05:56] btw did you know gannotate supports Ctrl+F [05:56] yes [05:57] ah yes, it is you [05:57] > Make test_smart use specific formats as needed to exercise locked and unlocked repositories. [05:59] so do you still want it? [05:59] yes thanks [06:00] running against packs may be interesting too, but running against knits is essential until we stop using them. [06:00] i'm confused [06:00] you said it was an accident [06:00] but you still want it? [06:00] oh [06:00] I meant deliberate;) [06:01] gee look at the time, gotta go :P [06:03] (seriously, I woke at 4am, I am rather shattered - getting former and latter confused is not good. I'm going to go have a cat nap) [06:06] hehehe [06:13] sure [06:29] actually, going to call it a work-day [06:31] I need to dig up the python C api and turn a list to a tuple to finish this patch [06:47] lifeless: you rock. your command helped me to fix it. [06:48] \o/ [07:01] hi ho [07:01] hi === jml_ is now known as jml [07:02] So many jmls! [07:03] Odd_Bloke: ... I'm j1mc :) [07:03] but yeah... kind of strange [07:04] I'm on a crippled system atm. [07:06] jml: :( [07:13] Night! [08:26] is 'bzr selftest' supposed to work using the 1.3rc1 debian package? [09:03] siretart: are you seeing failures? [09:35] james_w: http://paste.debian.net/51435 [09:39] siretart: wow. you're not in a directory with a directory named "tests" or a "tests.py" are you? [09:42] james_w: no, I'm not [09:43] bzr & bzrtools seemed to work anyways, so I've decided to just upload bzrtools 1.3.0 to sid [09:43] I saw that, thanks. [09:45] is that perhaps because of python 2.4 instead of python 2.5? [09:45] no, doesn't seem so [09:47] is tests/* shipped in the binary package? [09:47] ha, it seems that builddeb is breaking selftest [09:47] after removing bzr-builddeb, the 'selftest' command works fine again [09:47] ah, you're not doing bzr --no-plugins selftest [09:47] well, I wanted to run the selftests on bzrtools [09:47] ok. I want to prepare a builddeb upload today, and it should fix all of this nonsense. [09:47] great! [09:48] sorry for breaking it. [09:48] just drop me a note, I'll sponsor it [09:48] no worries [09:48] great, thanks. [09:48] btw, are you DM or was that just jelmer? [09:48] that was just jelmer [09:48] ok [10:04] I use cygwin on Windows. Am I generally better using the cygwin supplied bzr or the windows version? [10:05] cygwin's python is usually slower [10:05] I'm currently using the Windows version which mostly seems OK but I am having problems with the sftp protocol. [10:05] VSpike: would you like to describe the problems? [10:05] I've found this https://lists.ubuntu.com/archives/bazaar/2008q1/036410.html [10:05] commit to sftp repo freezes [10:05] works from dos box, freezes in cygwin bash [10:06] so you have exported that variable? [10:07] I tried export BZR_SSH="paramiko" and that makes it output an extra line "Connected (version 2.0, client OpenSSH_4.6p1)" before freezing [10:08] I have not set up keys, so in DOS it prompts for password. I was basically wondering as next step, either try to set up keys or try out a full cygwin stack instead [10:09] I can install Cygwin paramiko, but I think I will have to use cygwin bzr to take advantage of it? [10:10] In the DOS box, it outputs exactly the same line and then prompts for a password [10:11] I thought paramiko linked to putty/pageant not openssh? [10:23] my windows bzr is 1.2 and the cygwin version is 1.1 ... will i have any problems if i downgrade? [10:30] Due to the fuss from the emacs camp, does 1.3 have any speedups for trees with large file counts? [10:31] cd .. [10:31] oops [10:32] awilkins: I think it was all a bit late for much stuff to go in to 1.3 [10:32] and it's not the large file count that the operations they are discussing are having problems with, it's the depth of history [10:32] which is >87000 revisions [10:33] Ah, ok then [10:33] My problems are the opposite :-) - 8000-ish revisions, about 30,000 files [10:34] But it's still worlds faster than SVN [10:34] (except the branching-from-svn part :-) ) [10:37] awilkins: that should hopefully be sped up soon. (if you are using bzr-svn) [10:37] awilkins: Yes, I hear those new pyrex bindings are the bees knees [10:37] awilkins: if you are having trouble with large trees posting to the list with the operations and profile data may help. [10:37] * awilkins is talking to himself again [10:37] :-) [10:38] james_w: I think my problems are less to do with bzr and more to do with filesystem performance on Win32 [10:38] it's more the "don't pack after every commit" that will make a difference, that's a separate issue to the bindings [10:38] james_w: I'll consider it, but as I said, it kicks the pants off SVN [10:38] james_w: Yes, that too [10:38] awilkins: ah, well you're on your own then :-) [10:39] seriously though, there may be ways to speed it up, so consider it [10:39] I can help you collect the profile data if you like. [10:39] james_w: Yup, after thursday I'll have some time ; I want to have a crack at building those pyrex bindings on Win32 (I have MinGW AND the MS 2003 compiler sitting in the wings wiating) [10:40] that would be very valuable, thanks. [10:40] Big Feature Push on at the moment (ie, meeting the consumers for an iteration meeting tomorrow :-) ) [10:40] james_w: I had a try at building them last week ; it's a TOTAL pain in the arse [10:41] I can imagine. [10:41] It's mostly SVNs fault ; APR is a breeze to build on Win32 [10:41] "Load the Visual Studio project we provide and as long as you have the SDK it works" [10:42] * awilkins rolls on the drum for Vista SP1 [10:44] "Your computer will reboot several times during installation" (you could write that on Bill GAtes grave....) [10:48] james_w: Are pack repos reverse-delta or forward-delta? [10:48] awilkins: they are based on knits [10:49] * awilkins is ignorant of what a knit is [10:49] hang on, which way round is reverse-delta? [10:49] You keep the current revision verbatim and store the deltas to get back to the previous revision [10:49] (at least, that's what I mean when I say it) [10:49] What RCS does [10:50] awilkins: no, it's forward-delta then I think. [10:50] I was thinking maybe if you had checkpointed verbatim revisions in there it might make the emacs deep-history thing better [10:50] But I am a novice :-) [10:51] it's graph/index operations that are slow, not the delta decompression of actual files === doko_ is now known as doko [10:51] oh, I think it does store full texts when the delta chain is too long or an individual delta is too large. [10:52] Jolly good, I'm glad something so obvious as to occur to me wasn't overlooked :-) [10:52] but as luks says, operations like log etc. are what they are talking about, which doesn't access the texts [10:52] Are per-file logs slow? [10:52] (as opposed to whole-tree logs)? [10:52] any log [10:53] * awilkins is surprised [10:53] log in bzr needs to sort the graph in many ways, in git just dumps the (almost) raw index [10:53] which is one reason why it's slower [10:54] Fair enough.... time to reboot for me, back in a mo [10:55] luks: git does need to sort the revisions, it just has less constraints on the sort. [10:56] in particular it needs to load all revisions with pointers to their parents, and then traverse the graph once before it can output any revisions. [10:56] it still takes bzr about 10s to do even that on the emacs repo [10:57] james_w: if I'm not mistaken, git doesn't even topologically sort them by default [10:57] luks: true, sorry, it date sorts them. [10:57] However it can still topo sort them very quickly. [10:58] but I was surpsised that with my toy repository format I was playing with a few months ago, I had log faster than in hg [10:58] and hg does much less work on sorting there [10:58] git log --date-order > /dev/null 2.76s user 0.09s system 98% cpu 2.900 total [10:58] luks: that's good to hear. How did your repository format differ? [10:58] getting rid of the xml revision format would also help bzr [10:59] --date-order is the strictest git log format, and the above is warm cache. [10:59] different indexes, bulk reads, no xml, ... [10:59] luks: that sounds good. [11:06] Well, you can say almost anything, and as long as you include "no XML" it sounds good :p [11:06] "I like to eat babies with mustard, relish, and no XML." "Wow, really? That sounds great!" [11:07] luks: What became of your toy format? [11:08] empty disk space, I think :) [11:08] or maybe it's still somewhere on the laptop [11:09] It sounds like it was good work. [11:10] well, in my experience with submitting patches to bzr, something like that would never be accepted [11:11] SVN working copies used to use XML, they traded "down" to a KV format instead and got large perfomance increases [11:11] I had a few more interesting private branches here, but almost never finished them because I realized I'm just wasting my time [11:12] I'm surprised that BZA is using XML in any of it's disk formats, to be honest [11:12] it's legacy thing, I guess [11:12] XML is not a serious bottleneck and if it works, why replace it [11:12] luks: why do you think they wouldn't be accepted [11:12] I mean, what, just loading those enormous libraries must account for a substantial fraction of startup time :-) [11:13] james_w: because even trivial patches sit in BB for months [11:13] awilkins: it doesn't use the large libraries I don't think. [11:13] luks: but if it has benefits I'm sure it will be appreciated, and I think it would get people looking at it pretty quickly. [11:14] james_w: Hmmph, I wrote a toy library for parsing XML in VB3 once ; I was amazed by the speed you can get when you just walk a pointer through a string buffer on it. [11:14] james_w: as an example, see the ML discusion about the revno patch [11:14] luks: If you still have it at least I would like to have a look. [11:14] james_w: I sent two mails to the mailing list, it improves performance significantly, and I got no responses [11:14] luks: true, that one has been overly long. [11:15] luks: with code? [11:15] mails? yes with working code [11:15] awilkins: yeah, bzr uses a very basic XML, so it's not hard to parse. [11:15] luks: ok, let me dig them out. [11:15] in my experience, patches by non-Canonical people are reviewed only if it touches somebody's favorite code [11:16] james_w: no need, I'm not going to finish that patch :) [11:16] and if it touches somebody's favorite code, they will nickpick on unimportant details [11:17] luks: I'd still like to look. [11:17] I really see bzr development as "closed" and that's why I somehow stopped being interested in it [11:17] luks: http://article.gmane.org/gmane.comp.version-control.bazaar-ng.general/35667 <- that one? [11:17] no [11:18] see jam's "[MERGE] lookup revno by iterating history" thread [11:22] luks: that's not the repository format one though? [11:22] ah, no [11:22] luks: I agree that should have been looked at though. [11:22] hopefully jam will pick it up and work on it. [11:22] the repository format was never really finished [11:22] yeah, but it would still be interesting to look at it to find the good ideas. [11:25] http://bundlebuggy.aaronbentley.com/request/%3C64ab70ac0802041811u61752e66l3a04f025336390ae@mail.gmail.com%3E is another nice example [11:27] yeah, I was just looking at that one, it's a real shame there's been no real review. [11:28] it's not really about real reviews, but at least telling the person that "the patch is completely wrong" or "it looks good but we don't have time right now" would help [11:29] also I think there are people on the mailing list capable of reviewing patches like this, but their vote wouldn't count anyway, so they just don't [11:30] anyway, enough ranting from me :) [11:30] bah [11:31] luks: I agree. [11:31] swapped to cygwin version and now bzr status shows everything as modified or conflicting [11:32] I realised the other day that apparently anyone can BB:comment, so at least that allows non-reviewer reviewers to have their comments given some status. [11:32] even in a just committed tree [11:32] VSpike: that's not good. [11:32] luks: thanks for your comments. [11:32] james_w: heh. nope [11:33] what does it mean when a file has a * after it? not seen that before [11:33] VSpike: so you're using the same tree as you just were with the native version, but now with the cygwin version. [11:33] yes [11:33] I've no idea actually. [11:33] VSpike: executable bit change [11:33] were you using the native through cygwin before? [11:34] james_w: i was executing it from a cygwin shell [11:34] luks: that could be the problem [11:34] ok, so it might be the jump of going from windows->posix. [11:34] how does the windows version comprehend executable bits? [11:34] I don't know if native via cygwin behaves as windows or posix. [11:34] VSpike: it doesn't [11:35] there's a plugin you can use to change the execute bit if you need to. [11:35] VSpike: I think it's just that the dirstate is confused [11:35] could you pastebin the output of bzr status? [11:35] james_w: it would be windows, would be my guess. Running a windows program from cygwin doesn't change it's environment afaik [11:35] if you don't have any uncommitted changes, try branching it again off the existing one [11:35] ok, thanks. [11:36] VSpike: yes, try branching, or bzr remove-tree, bzr checkout may also work. [11:38] hi Zindar [11:39] hey Jelmer... how's things? [11:39] pastebin.com/m7a81b1ef [11:39] quite well.. fighting with pyrex [11:39] that's bzr diff and bzr status [11:40] jelmer: :) [11:40] I'm enjoying the emacs bzr mailing threads :) [11:40] jelmer: I'm writing support for apple Mail.app in bzr send btw... almost done... [11:40] VSpike: ah yeah, that's the problem, the windows version has made everything appear executable to cygwin. [11:41] VSpike: a branch should save you. Otherwise install the xbit plugin and remove the executable status of them all. [11:41] VSpike: or just chmod in cygwin should work and be less effort. [11:41] Zindar: ah, nice [11:41] james_w: I'm just trying to recall, but I think cygwin shows everything +x [11:42] james_w: I don't think you can remove with chmod [11:42] appletalk is not like other languages :) [11:42] Zindar: the emacs thread is interesting indeed. It would be nice if we could get them onboard [11:43] Zindar: their requirements would probably drive some more performance work, and would be good pr [11:43] james_w: oh, ok i lied. you can [11:43] yeah.. but I understand the performance problems... it's almost too slow for me.. and I'm working with a smaller project than emacs [11:43] Zindar: that would be cool, thanks. Especially when jelmer's child_submit_to patch lands bzr send will be great, so having it work everywhere will be cool. [11:44] james_w: just scratching my own itch :) [11:45] * awilkins is infuriated that Branch.rename_one isn't implemented [11:45] james_w: it has already landed :-) [11:46] ah, that's better. find -type f -exec chmod a-x "{}" \; [11:46] jelmer: ah, cool, I'll start setting it everywhere, thanks. [11:52] Dammit, how do you move files from a python console [11:52] (in bzr, not the plain os) [11:52] WorkingTree.rename_something [11:52] awilkins: Tree.rename() I think [11:53] rename_one() maybe [11:53] Branch.rename_on() isn't implemented.... can you gte a Tree from a branch? [11:53] There's also move() I think, but it has slightly different semantics. [11:53] you can't, the other way around [11:53] you get a branch from a tree [11:53] tree.bzrdir.open_workingtree() [11:53] (that means, open the working tree, not the branch) [11:54] branch.bzrdir sorry [11:54] oh [11:57] I did "frombzrlib.workingtree import WorkingTree ; tree = WorkingTree.open('.') [11:58] awilkins: perfect. [11:58] I'm walking my tree renaming all my .xml files to .pxml [11:58] It was taking forever from a shell with all the process spawning [11:58] It's taking a while from the console.... [12:00] Just proves the earlier point about XML being bad for performance ;> [12:00] Yeah, they'll be much faster when they are pxml files [12:00] :-P [12:01] It's just so my diff tool can use a custom rule on the without applying it to other xml files [12:02] siretart: are you going to fix your bzrtools upload? it is uninstallable against 1.3. (hint: `bzr diff -c -1` vs `bzr diff -c -2`) [12:03] Someone should set child_submit_to on bzr.dev (and all the other branches too) [12:04] Damn, this rename is still going [12:05] 'tis only 3500 files [12:06] http://pastebin.ca/948729 << anyone see anything wrong with this in terms of performance ? [12:10] Is it rewriting my 6 MB dirstate file after each call, for example? [12:11] awilkins: nothing specifically. [12:11] I may be missing something though [12:11] I have a feeling it's because I'm using rename_one and the tree has 18,000 files in it [12:11] seems so [12:11] It's only done 1300 / 3500 files [12:12] there is a flush call, which seems to save the dirstate [12:12] The dirstate is definitely increasing [12:13] I'll have a crack with .move() [12:15] jelmer: bzr-svn (latest 0.4 branch and bzr.dev) fails at branching http://codespeak.net/svn/pypy/dist/: Failed PROPFIND on /svn/!svn/bc/45181/pypy/dist [12:16] Peng: One sec, I'll see if I can reproduce it here [12:16] Thanks. [12:19] Bah, I don't think move() can rename the file, just moves the folder it's in [12:19] (from reading code) [12:20] Brings back memories of when 'mv' and 'move' and 'rename' were separate commands. [12:20] I don't think theres an API call that can do bulk renames :-( *sulk* [12:21] Well, not a "public" one, I think [12:33] Peng: this is a server side issue [12:33] svn ls -r45181 http://codespeak.net/svn/pypy/dist fails as well [12:34] (or a svn client library issue, depending on how you want to look at it) [12:38] jelmer: Ok. That sucks. [12:39] "trivial commit to test pushing from bzr" === mrevell is now known as mrevell-lunch [12:43] wow, ok [12:43] that's either a very big coincidence or there's something funky happening here [12:43] ah, 45182 fails too [12:45] (45181 is probably related to https://code.launchpad.net/~mwhudson/pypy/bzr-svn) [12:45] s/probably// [12:49] siretart: ok, I'll fix [12:53] Oh you have to be frickin' kidding me [12:53] Seems the new Vista SP1 has some "security" fixes in it [12:54] I can no longer change the permissions on "notepad.exe" so that I can overrwrite it with something non-crap [12:54] Friend of mine once had a Win2k machine that did something like that. It would reappear every time it was deleted. [12:54] Oh, that's not too hard to get around. [12:55] No, this is different ; I'm an admin user but I can't change the file permissions [12:55] I could before [12:55] Obviously, anybody trying to harm notepad is a hax0r and must be stopped. [12:56] I wonder if I reboot in Ubuntu and copy over it it will notice / moan ? [12:56] Bah [13:13] dato: BAH, sorry, I was in the wrong branch :( [13:13] siretart: no worries, fixed now. [13:13] dato: thanks! [13:13] np [13:13] I experimented in a private branch for the snapshotting, and botched the merge for the 'offical' branch [13:14] :/ [13:15] * awilkins has remembered the fix for his "notepad nazi-ism" problem === mrevell-lunch is now known as mrevell === kiko-zzz is now known as kiko [14:04] dato,siretart: hi [14:04] Would either of you be able to sponsor the first upload of bzr-dbus these days? [14:04] *one of [14:08] jelmer: There is no debian/watch file, so can't use that to retrieve upstream tarball [14:09] (message from bzr bd) :) [14:12] jelmer: any reason to not use debhelper 5? [14:23] siretart: it should get a snapshot from launchpad [14:23] siretart: No, that's a mistake on my part === bigdo1 is now known as bigdog [14:26] siretart: should be fixed now [14:27] would you care to commit a watchfile? [14:27] see the bzrtools package for an example [14:28] well, I don't think bzr-dbus has released tarballs? [14:28] yeah, that's the problem at the moment [14:29] oh, I see. bzr-builddeb is in export-upstream mode [14:29] bzr: ERROR: No such tag: bzr-dbus-0.1~bzr34 [14:29] siretart: what version of bzr-builddeb are you running? [14:30] ii bzr-builddeb 0.92 bzr plugin for Debian package management [14:31] perhaps http://bzr.debian.org/pkg-bazaar/bzr-dbus/unstable/ doesn't have the necessary tags? [14:31] newer versions will interpret ~bzr34 and export revision 34 [14:31] aah, I see [14:31] you can also override it manually by specifying --export-revision=34 (IIRC) [14:32] looks like it's actually --export-upstream-revision=34 [14:32] yes, that seems to do the trick [14:33] I'm going to get all those fixes together later. [14:40] jelmer: the selftests are failing [14:40] Ran 37 tests in 1.039s [14:40] FAILED (failures=2, errors=1) [14:40] are you aware of that? [14:43] siretart: ouch, no [14:43] * jelmer fix0rs [14:44] siretart: fixed === mw|out is now known as mw [14:45] did you push to http://bzr.debian.org/pkg-bazaar/bzr-dbus/unstable/? [14:46] argh, wrong remembered push location [14:47] should be fixed now [14:49] jelmer: the testsuite seems to assume a running and working dbus, right? [14:50] http://paste.ubuntu.com/5872/ [14:52] siretart: yes [14:53] siretart: the plugin should however cause no trouble if dbus is not available [15:13] is there a "proper" way to do a merge on a file that has conflicts? [15:15] jetsaredim: sorry, can you explain please? [15:15] lets say I have two completely different versions of a file [15:16] awilkins: A public API that can do bulk renames is TreeTransform. [15:16] I know I want all of one and none of the other [15:16] if I just plaster the one I want over the one that's there - is that going to screw up any sort of vcs tracking? [15:18] abentley: Thanks for the pointer [15:18] It can do anything to a working tree, which is why its API is rather ugly. [15:19] There should probably be a "renames" method on WorkingTree. [15:20] * awilkins thought the same ; was thinking about refactoring "rename_one" into "rename_many" and getting "rename_one" to call it [15:21] I'd implement rename_many on TreeTransform, not refactor rename_one. [15:21] Because TT will always do what you ask it to. [15:21] so - is that a "it doesn't matter"? [15:21] A naïve implementation of rename_many will rename files on top of one another. [15:22] jetsaredim: Overwriting a file with 'cp' isn't any different from the VCS's POV than editing it to remove the conflicts, so I can't think how it would. [15:23] ok cool [15:27] jelmer: ping [15:28] thanks all [15:28] Hey guys, brandon_rhodes has some questions about bzr-svn. [15:28] Can anyone here comment on a few end user questions? [15:29] abadger1999: pong [15:29] abadger1999: sure [15:29] brandon_rhodes: hi [15:29] jelmer: Hey! [15:30] If I use bzr locally and then commit back to svn, then it can't of course do the merge back to svn with the separate changes I've made listed under the merge change. [15:30] But ... does it at least make a cool commit comment or something that lists the local changes that were included in the merge? [15:31] jelmer: uploaded [15:32] brandon_rhodes: Not sure I understand what you mean. bzr merges are tracked in svn [15:32] siretart: tahnks! [15:33] jelmer: In subversion, if I make 10 changes on a branch then merge to trunk, subversion just says "here's brandon's Big Change To Trunk", and it looses the info that the merge is of ten separate little changes. Linus complains about this. [15:33] brandon_rhodes: So, bzr-svn stores information about the merge in svn properties [15:34] so bzr will be able to see where the changes were merged from [15:34] jelmer: I'd heard a rumor that, in bzr, the "4031 Brandon merges his stuff" change to trunk has, listed underneath it / inside it, the 10 changes I made that then got put together in the merge... [15:34] Whoa! [15:34] It uses svn properties? [15:34] That's heavy! [15:34] brandon_rhodes: However, you won't be able to see what was merged from svn [15:35] there is no way to adjust the commit message - it would break referential integrity in bzr [15:35] at least until we do a format upgrade [15:35] Oh ... huh. [15:36] brandon_rhodes: You can include information about the merges in the commit message yourself though [15:36] So you couldn't have the message, beneath my own comment, auto-include a bit of text that says "this merge included 9 separate changes: ..." and maybe list one-line summaries of them or something? [15:37] It would just be cool to see that info when other developers were browsing svn normally [15:38] brandon_rhodes: bzr push to svn does the same thing as bzr push to any other bzr branch - it preserves the exact revision [15:39] one of the core ideas behind most dvcses is that a specific revision id can only refer to exactly one unique revision [15:39] (referential integrity) [15:40] changing the commit message would violate that basic rule [15:41] there are two possible ways around this: [15:42] - we could set two revision properties in svn: one that svn sees and one that bzr sees. This however can't happen until the next mapping upgrade of bzr-svn [15:42] - it should be fairly easy to write a plugin that edits the bzr commit message and inserts the merge info there [15:43] brandon_rhodes: still there? [15:52] Yes. [15:52] Sorry, writing up 2nd day sprint report :-) [15:53] jelmer: I think I'd better play with bzr and subversion some myself, and then I'll understand what's going on with merging. :-) [15:53] All I know right now is what someone drew for me while talking [15:54] brandon_rhodes: ah :-) [15:55] brandon_rhodes: A better way of describing it is probably to consider what "bzr push" should do [15:55] brandon_rhodes: you would expect it to make sure that the branch on the remote side contains the exact same contents as your local branch [15:56] jelmer: Um. [15:56] jelmer: Oh. You're talking about a situation where the branch actually exists in Subversion? [15:56] brandon_rhodes: Not necessarily - it is also push to push a new branch into subversion [15:57] jelmer: I thought I'd heard a guy talking about just copying svn /trunk into a bzr of his own, then merging right back into svn /trunk. I'd missed the fact bzr was creating a branch in svn. [15:57] Then it makes sense that you'd copy the changes 1-for-1. [15:58] But it still seems subversion couldn't "see" what the merge included like bzr can "see" that the merge to /trunk is the sum of lots of little changes in the branch ... is that true? [15:58] brandon_rhodes: well, if you use "bzr push svn://.../trunk" you're telling bzr to add the extra revisions you have locally to /trunk [15:58] brandon_rhodes: yes, that's correct [15:59] jelmer: As separate revisions? Gotchya. [15:59] brandon_rhodes: Only the mainline revisions [15:59] Roger. [15:59] brandon_rhodes: Since subversion doesn't support merge tracking [15:59] Right. [15:59] It just mushes them all together. [15:59] right [16:17] New bug: #203941 in bzr "Bzr -r ancestor:badbranch signals errors too late" [Undecided,New] https://launchpad.net/bugs/203941 === kiko is now known as kiko-fud [16:59] Peng: any chance you can file a bug about that bug in bzr-svn you hit with codespeak? [17:08] jelmer: Ok. [17:10] moin [17:12] hya, i'm getting the following error when trying to push to a server: ShortReadvError: readv() read 3451 bytes rather than 3640 bytes at 1997614 for ... [17:13] any ideas what could that be? bzr 1.2 both locally and on the sever [17:14] Can bazaar do svn:externals-like stuff? [17:15] And can it do it on files instead of svn which can only do directories (eww!) [17:16] brandon_rhodes: Not yet. [17:17] It would be cool to have a VC that could easily version control something like /etc/ or my homedir, where some stuff needs to be checked out from a common repo (so my .bashrc might look the same on all my systems), but pull other stuff from a per-homedir or per-system repo [17:19] So that /etc/sysctl.conf could pull from a "debian-common" repo and be the same on my machines, but "/etc/hostname" be per-machine [17:20] I doubt nested-files will ever be around. [17:20] That calls more for symlinks, or maybe just merges. [17:21] Drat. :-) [17:21] And it would be neat if the first part of /etc/sysctl.conf could pull from "debian-common" but then have the file end with stuff from a machine-specific repository :-) [17:21] * fullermd will hold out for a pony instead. [17:23] * brandon_rhodes grins :-) [17:25] fullermd: what do you mean with nested-files? [17:25] oh eek [17:25] New bug: #203975 in bzr-svn "PROPFIND failed branching http://codespeak.net/svn/pypy/dist/" [Undecided,New] https://launchpad.net/bugs/203975 [17:25] LarstiQ: Egads! Don't look; you'll go blind. [17:29] Peng: thanks [17:30] curl is the http library that is going away, no? [17:34] I'm using curl, aren't I? [17:34] Well, I am, but how would you know? [17:34] Yes, it is. [17:40] New bug: #203979 in bzr "ShortReadvError trying to push to a server" [Undecided,New] https://launchpad.net/bugs/203979 === kiko-fud is now known as kiko === kiko is now known as kiko-phone === kiko-phone is now known as kiko [18:59] Has anyone here ever played with the Python CPAN module..? Module for constructing/interacting with Python objects from Perl code... [18:59] I'd like to instantiate a 'bzrlib' object from Python, so as to call various methods on it [18:59] Funny, I've thought passingly about that very thing... [19:00] *g* [19:15] hi folks, quick question: we're setting up bzr serve via ssh in an authorized_keys file command="" section. having some problems and we're wondering if bzr serve logs anywhere? [19:15] So.. Not being a python programmer, could someone suggest me a nice simple line to demonstrate that bzrlib is working..? I now have a shiney Inline::Python perl module here ;) [19:16] we're using: command="/usr/bin/bzr serve --allow-writes --inet --directory=/foo" [19:16] and we're getting an error -1 when we try to bzr push bzr+ssh:// [19:16] Are you sure you need that --inet there? [19:17] no idea, but I guess you checked ~/.bzr.log already? [19:17] Oh.. heh. so you do. Never mind :) [19:17] dato: we're not getting a .bzr.log file [19:17] LeoNerd: yeah ;) [19:18] ok [19:18] btw, we're using bzr 1.1rc1 on the server [19:24] we figured it out [19:25] LeoNerd: I think it would be easiest to write most of what you need in python and use only simple functions from perl [19:26] Hrm... Technically I guess it would work either way around [19:26] because the bzrlib API is full of classes and I'm not sure how well does Inline::Python handles that [19:26] Inline::Python does classes [19:26] It wraps them in a trampoline object, that supports the same methods [19:26] yeah, but to what extent [19:27] http://bazaar-vcs.org/Integrating_with_Bazaar has some examples of simple bzrlib usage [19:28] .oO( How annoying.. vim can't highlight python in heredocs in perl code.. booo ) [19:35] Hmm.... repo = branch.repository <== that's an attribute rather than a method call, yes? [19:35] yes [19:35] method calls have (), this is not perl :) [19:35] Hm... OK [19:36] luks: well, it could be a property [19:36] (no idea if that'd be relevant for what LeoNerd is doing) [19:36] right [19:36] but that's the same for Inline::Python, I think [19:36] since the method call is handled by python automatically [19:37] Hmm. I was under the impression 'bzr serve' would produce a browseable web interface, in addition to the optimize bzr synch protocol. What is the idiomatic way to provide a web browsable copy of a repository? [19:37] (bzr serve does not seem to speak HTTP when I try it) [19:39] scode: loggerhead I think [19:39] scode: there is no built-in capability in bzr for that [19:40] Hrm.... It seems Inline::Python only supports method calls on wrapped objects, not attribute access [19:40] that's why I mentioned implementing "wrappers" in python [19:40] radix/dato: Ok - thanks. [19:41] Can I add new methods to an existing class.? Are all classes open? [19:41] yes [19:45] Woo :) I've just opened a branch, queried top revision, and printed its log summary. From perl ;) [19:47] scode: there's bzr-webserve as well that provides a "webserve" command to give a HTTP interface [19:50] and there is even a third one nobody ever remembers [19:51] New bug: #204025 in bzr "Concurrent updates of separate threads in a shared repository fails" [Undecided,New] https://launchpad.net/bugs/204025 [19:51] Hm.. So.. how much of the core simple stuff in bzrlib is going to use attrs rather than methods? [19:52] .oO( Also I can't see documentation on these attrs on the docs pages - do they not come out? ) [19:54] LeoNerd: in what sense? [19:54] LarstiQ: Well.. the examples use branch.repository to get the repo. for a branch... I couldn't see that on the branch docs page [19:55] LeoNerd: there are lots of non-methods like that, yes [19:55] Hmm.. :/ [19:55] LeoNerd: a method wouldn't really make sense [19:55] * LeoNerd ponders improving Inline::Python so it can do that [19:55] ? [19:55] LeoNerd: yay :) [19:56] Simply implementing hash lookup ought to be sufficient [19:56] Hmm.. though.. dunno what Python's API might make it look like [19:56] I could tie STOREHASH and RETRIEVEHASH so that $branch->{repository} is rvalue and lvalue [19:57] But.. more interesting things like enumerating all the keys... keys %$branch ... would python allow that? [19:57] keys %$branch would be similar to dir(branch) [19:57] LeoNerd: there is no iteration on the object itself for it's members, but you can do that on object.__dict__ (which is a dictionary) [19:58] luks: thanks, now I know what keys does ;) [19:58] Hmm.. Is every object backed by just a dictionary? [19:58] LarstiQ: d.keys() [19:58] LeoNerd: not in theory, though most won't play funny games on you [19:59] james_w: thanks! [19:59] Hm.. OK.. So would it be reasonable to represent an object as a hashref, to allow the usual sorts of things with its keys? [19:59] LeoNerd: if properties are used, or __getatrr__ is overriden, the answer would be no [19:59] LeoNerd: I don't know perl nor it's idioms [19:59] LarstiQ: not really [20:00] properties don't really translate well to that [20:00] because the value can change in any "call" [20:00] * LarstiQ thought he just said that? [20:00] though I confess in a roundabout way [20:00] yeah :) [20:01] I think best would be to treat them all as functions [20:01] Well.. a real native hash allows getting/setting of arbitrary named elements, and enumeration of the keys [20:01] but then you can't easily assign to them, so you would have to use e.g. branch->repository($new_repo) [20:01] Would it be sensible to make a python object look like that? [20:02] Yah.. plus.. I wasn't sure if they live in different namespaces [20:02] object.foo() vs. object.foo [20:02] no, they are in the same namespace [20:02] object.foo() just takes object.foo and calls it [20:03] Ah OK.. Though.. Looking at how the Inline::Python works, it just throws (pl) method calls into (py) method calls. If I did the attrs. like that as well, it would have to know which one to do [20:04] Plus, your point about assignment... I suspect a hash is the way to go here [20:04] maybe implement something like getattr, setattr? [20:04] (that is, separate functions) [20:04] LeoNerd: everything on an object is an attribute lookup first [20:05] wow, that's sloppily worded [20:05] actually, it probably allows you to use the native ones from python [20:05] branch.getattr("repository") or something? [20:06] gettattr($branch, "repository") [20:07] Hrm... That seems not to be exported to perl :/ [20:08] I suspect this probably requires more poking at Inline::Python's internals... [20:13] Ooh.. but methods are just code refs as attributes, yes? I wonder if breakage would happen if you try to pull one of those out directly === mw is now known as mw|food [20:54] besides bzr-hg (which doesn't work with bzr 1.2), is there a hg->bzr converter? [20:55] mxpxpod: There's fast-export/import which might work. [20:57] oh, cool [20:57] I didn't realize that fastimport came with exporters [20:58] mxpxpod: well, you'll need an exporter for hg [20:58] mxpxpod: I think there is one in... sec [20:58] dato: fast-import comes with one in the exporters directory === mw|food is now known as mw [20:59] oh [20:59] well, they've made a copy from the canonical location then [21:00] dato: from where? [21:01] http://repo.or.cz/w/fast-export.git [21:01] no no, I was talking about the fast-import bzr plugin coming with exporters [21:01] mxpxpod: though maybe bzr-fastimport is its new home, not sure [21:02] yes [21:02] I said they made a copy [21:02] you said from where [21:02] oh, gotcha [21:02] I gave you the "from" [21:02] :) [21:02] ;) [21:04] what to do when I get: [21:04] bzr: ERROR: Pack '2765b027c9b99141c06eeabd2ca628ac' already exists in [21:08] ... on a push [21:08] if it already has it, why does it try to apply it ? [21:16] dato: yeah, I think we've taken over fast-export.git [21:16] or rather incorporated it. [21:17] ... and why does it work at a second try ? locking ? [21:18] weigon: it probably pushes a different pack, or doesn't bother as it already exists. I don't know why you would have got the first one. [21:19] james_w: oh, I see :) [21:20] It's not the first time the error has come up. Nobody's made it reproducible yet, though. [21:20] I think it's considered to be a manifestation of some weird bug. === jml` is now known as jml [21:30] weigon: a bug filed with the relevant chunk of your ~/.bzr.log may start the ball rolling. === mwhudson_ is now known as mwhudson [21:37] siretart: hi. I realise it's late, so it's fine if you're not able to do it today. I have pushed what I think is a working package to the launchpad branch. If you could check it and upload that would be great, thanks. [21:37] james_w: not alioth? [21:37] siretart: http://bazaar.launchpad.net/~james-w/bzr-builddeb/trunk in case you lost the URL. [21:37] siretart: no, launchpad, I can push to alioth if you would like. [21:38] in fact I'll do that anyway. [21:38] ok [21:38] I just wouldn't expect a branch named 'trunk' to be suitable for publishing in a distribution :) [21:38] at least not without further comments about that [21:39] ah, ok. [21:40] ok, I've updated the branch info, so lp:bzr-builddeb *should* point to the up-to-date branch [21:41] thanks [21:42] seems to work [21:42] do you know if they run denyhosts on alioth? [21:44] denyhosts? [21:44] the package does not seem to be installed [21:44] so I'd assume no [21:44] one of the "block ip addresses that guess passwords on ssh" scripts [21:44] oh [21:45] they use fail2ban afaik [21:45] I guess there are many, I don't even know if denyhosts is the right name [21:45] ah, that's it then. That's why I always have trouble connecting to alioth. [21:46] really? what do you do for it to hate you? :) [21:46] has there been any recent work to get svn:externals working in bzr-svn? [21:46] I forgot to set a user in ~/.ssh/config, so I always try and log in first with my local username, and then obviously get blocked about the same time that I realise. [21:47] ah, heh [21:47] I've rectified that now, so I should be able to do it properly next time. [21:47] james_w: that has an easy solution [21:47] james_w: become a DD [21:47] mxpxpod: I haven't heard of any. [21:47] :-P [21:47] dato: or that... [21:47] :) [21:47] james_w: are nested bzr trees supported? [21:48] though I don't use my local username anywhere else. [21:48] mxpxpod: sort of. [21:48] mxpxpod: vague answer I know [21:48] :D [21:48] mxpxpod: there is some support for storing the necessary data, but actually using them will typically fail as there are plenty of bugs to shake out. [21:48] for instance: https://bugs.launchpad.net/bzr-svn/+bug/82863 mentions that development is blocked by support for by-reference nested trees [21:48] Launchpad bug 82863 in bzr-svn "svn:externals is not supported" [Wishlist,In progress] [21:48] james_w: http://paste.ubuntu-nl.org/60220/ :( [21:49] siretart: is there a line missing from the end of that? [21:49] ImportError: cannot import name tests [21:49] make: *** [build-python2.5] Error 1 [21:50] these were missing [21:50] ah, stupid stupid me. [21:51] hey, I even did a stupid upload today ;) [22:05] I can't seem to find a reliable way to run the tests during the build [22:09] siretart: I'm too tired to really think about this any more tonight. Do you want to wait until another day, or just upload with the tests disabled? [22:09] james_w: I've just tried to do that. package builds fine, but `bzr selftest builddeb` still fails. are you aware of that? [22:10] siretart: can I see the errors please? [22:10] it works fine for me. [22:11] though I'm python2.5 based, are you on a 2.4 machine? [22:12] http://paste.ubuntu-nl.org/60224/ [22:12] I'm on a pretty freshly installed debian/sid system [22:12] which has /usr/bin/python still pointing to python2.4 [22:12] oh, what? Why does that not work for you? [22:13] it's not a python2.4 issue. [22:13] there doesn't seem to be any tests installed into the package.. hmm [22:13] that might be it :) [22:15] siretart: thanks :) We should be able to enable the tests now. [22:15] packages=['bzrlib.plugins.builddeb'], [22:15] package_dir={'bzrlib.plugins.builddeb': '.'}, [22:16] that doesn't seem to be enough in setup.py to build and install the tests. [22:17] is it possible to make bzr work with mingw ssh on windoze (or does bzr work only with putty)? [22:19] hacklberry: as I understand it there are several options for ssh on windows. [22:19] e.g. plinj [22:19] plink sorry [22:20] and it can/does use paramiko, so anything that can use is ok. [22:20] I don't know if it can use the mingw one though, sorry. [22:20] I think I fixed it now [22:21] james_w: are you okay with this patch: http://paste.ubuntu-nl.org/60226/ [22:22] siretart: that would be fine. If you have a couple of minutes I think I may have a better one. [22:22] ah, sure [22:27] james_w: it looks like it does not work with mingw ssh, i just tried a little test, first on my slackware laptop: [22:27] martin@yobbo:~/test_bzr$ bzr branch sftp://martin@192.168.130.143/home/martin/bzr/rlm_ftress [22:27] Branched 109 revision(s). [22:27] and here is the result from my windoze workstation (when trying to do the same from a mingw/msys terminal): [22:27] $ bzr branch sftp://martin@192.168.130.143/home/martin/bzr/rlm_ftress [22:27] command-line: line 0: Bad configuration option: ClearAllForwardings [22:27] bzr: ERROR: Unable to connect to SSH host 192.168.130.143; EOF during negotiation [22:28] siretart: if you pull I think that should work. [22:28] siretart: if not, please upload your change. [22:29] hmm, I wonder where that "ClearAllForwardings" comes from. [22:29] hacklberry: it looks like it is could work, if you can work out what that means then you may be able to fix it, or work out how bzr can support it. [22:30] well, you incorporated my change to setup.py :) [22:30] has something to do with how bzr uses the mingw ssh i guess, the ssh on its own works fine, ie. i can do slogin martin@192.168.130.143 without any problems [22:31] yawn link, good morning [22:31] hello lifeless [22:32] hi lifeless [22:32] hacklberry: ok, so it would be great if you could find out what bzr is doing wrong and file a bug. [22:33] james_w: i m playing with it now [22:34] hacklberry: great, thanks. [22:34] james_w: the test-builddeb command seems to run all tests just fine, but reports exit code 1 instead of 0, which fails the build. huh? [22:35] siretart: sorry, stupidity again. [22:35] siretart: it returns result.wasSuccessful() [22:35] so it wants a return not result in __init__.py [22:36] siretart: fix pushed, sorry. [22:37] heh. I'm learning more and more about bzr :) [22:38] 'not result'? [22:38] that looks weird.. [22:39] siretart: true, I'll fix it. [22:39] but works! :) [22:40] correction pushed if you care, otherwise it can wait. [22:40] readable good. working better. [22:41] hi [22:41] hi poolie [22:41] james_w: ah, thanks for clarifying that. I'll upload in a sek [22:42] siretart: brilliant, thanks. [22:58] thanks siretart [22:58] you're welcome! [23:01] excuse my naivite, but i think the following message is (perhaps) incorrect (as i do not run a bzr server): [23:01] C:\test>bzr branch bzr+ssh://martin@192.168.130.143/home/martin/bzr/rlm_ftress [23:01] Connected (version 2.0, client OpenSSH_4.3p2) [23:01] Adding ssh-rsa host key for 192.168.130.143: 07AA7C20C76E8D87F84EBB7E1FCD07F6 [23:01] Authentication (publickey) successful! [23:01] Secsh channel 1 opened. [23:01] Server is too old for fast get_parent_map, reconnecting. (Upgrade the server to Bazaar 1.2 to avoid this) [23:01] Connected (version 2.0, client OpenSSH_4.3p2) [23:01] Authentication (publickey) successful! [23:01] Secsh channel 1 opened. [23:01] Branched 109 revision(s). [23:01] hacklberry: bzr+ssh:// uses the smart server on the remote side, starting it on demand [23:02] siretart: thanks [23:11] siretart: just out of interest - does bzr need to be installed on the remote box where i store my branches? (it didn't use to) [23:16] hacklberry: no, but if you have it it is better [23:17] it allows you to use the bzr:// transport (actually bzr+ssh://)