[00:00] vila: still up? [00:25] greetings, newb here failing to properly setup bazaar server on localhost. [00:26] This is what I do to setup bazaar server: "sudo bzr serve --directory=files/servers/bazaar/ --bzr" [00:26] you probably don't want the server running as root [00:26] See... I'm that bad. :-) [00:26] I mean bad as in notknowing. [00:27] PureRumble: I agree with lifeless, but that command should still work [00:27] Ok, so I will not run as sudo. bad idea. bad idea! :-] [00:29] Ok but there are still problems. So now I no longer run server as root. [00:30] PureRumble: what problems? What error are you getting? [00:30] But still when I do "bzr push bzr://localhost/test" I get "bzr: ERROR: Transport operation not possible: readonly transport" [00:30] PureRumble: right [00:30] PureRumble: you need to explicitly pass --allow-writes to bzr serve if you want to allow that [00:31] see, it's that easy! :-) [00:31] PureRumble: (in which case it's a really good idea not to run it as root!) [00:32] PureRumble: you may want to create a user on your system just for bzr serve [00:32] Ok, I have now created my first branch! But right now anyone can connect to my server from the web (if it wasn't for ufw), right? [00:32] PureRumble: connect, and write to! [00:33] PureRumble: Why do you want to run a server? [00:33] ok, so something tells me that is not good and needs to be taken care of :) [00:33] You don't need one to create branches. [00:33] Because, I thought it would be better than storing stuff in .bzr folders, but perhaps I'm wrong? [00:33] You don't need a bzr server for that. [00:34] If it's just you, locally, don't bother with bzr serve. [00:34] Just run bzr directly. [00:34] But then stuff would be stored in .bzr-folders, is that a good idea? *non-rethorical question* [00:34] e.g. instead of "bzr push bzr://localhost/test", you can do "bzr push files/servers/bazaar/test" [00:35] I'm not sure what you mean by .bzr folders. [00:35] How can I find out what revision a file in my tree was last changed? [00:35] I thought blame would do it, but that seems to be an alias for annotate [00:35] bzr log -l1 filename ? [00:36] bob2, yeah, after typing that, I had to wonder if log would take a file as an argument, so I went to look. [00:36] bob2, cheers though. [00:36] ahh [00:37] PureRumble: I think maybe you're talking about the difference between a treeless branch and branch with a colocated working tree. [00:38] is it possible to uncommit a revision that isn't the tip? [00:38] actually, nevermind, I don't think I want to do that [00:39] PureRumble: bzr doesn't really care either way; the full history is still stored. If you want to make treeless branches directly then you can use e.g. "bzr branch --no-tree" or even better make a shared repository for your branches with "bzr init-repo --no-trees" [00:39] idnar: good, because you can't (without also uncommitting the revisions between it and tip) [00:40] I'll be honest and say my revision-controlling knowledge is not the best. I thought I would setup a bazaar server on my computer so I can manage code from anywhere. [00:40] idnar: you can reverse the changes made by a particular revision, though. [00:40] (and commit that) [00:40] PureRumble: you can access bzr branches via SFTP and SSH [00:40] PureRumble: you don't need a special bzr server to do that, just allow SSH access. [00:42] spiv: that causes problems if you want to put the changes back later [00:42] Ok, so having done bzr init, add and commit for some branch, how can I modify it from another host without setting up server? [00:42] idnar: no more than the reversing [00:44] PureRumble: the most secure way is via bzr+ssh [00:44] https://bugs.edge.launchpad.net/bzr/+bug/152008 [00:44] Launchpad bug 152008 in bzr "Ability to unmerge or revert a merge sensibly" [Wishlist,Triaged] [00:44] idnar: I'm talking about a cherrypick merge; e.g. "bzr merge . -r 99..98 && bzr ci -m 'Undo r99'" [00:44] PureRumble: install opensshd [00:44] I believe that bug covers what I'm talking about [00:46] idnar: right, including the merge . -r recipe. [00:47] ... Ahaaaa, so you mean I should connect through opensshd and just navigate to the same dir and continue working? [00:47] Hello, I did a bzr push before to a new location and noticed that it created a working tree at the new location when I didn't expect it to - is there an option for bzr push that prevents creating a working tree in the new location? [00:48] that's the default [00:49] what happens if someone runs a bzr up on a checkout and someone else does a bzr uncommit...? the uncommitted changes disappear on next up? [00:49] The documentation may be out of date, or maybe I have read it wrong, but I thought that bzr push wasn't supposed to update/create the remote working tree [00:49] PureRumble: you can do that, but you can also use commands like "bzr branch bzr+ssh://yourhost/path/to/your/branch" [00:50] mmj8237: you pushed to a file:/// url [00:51] mmj8237: "remote" in that context just means "connected via a network URL than a local file path" [00:51] mmj8237: they aren't 'remote' [00:51] lifeless: yes it was a file:// url, though it was a mapped network drive with a kind of low disk space quota and I didn't expect a working tree... [00:52] mmj8237: If it's a one-off, you can just remove the branch afterwards with the "bzr remove-tree" command. If you're going to push several of these, maybe you want a shared repository made with "bzr init-repo --no-trees" [00:52] ok so I'll install openssh-server... but will I need the client too? [00:53] PureRumble: only if you need to connect to the server ;) [00:53] spiv: thanks for your help. Yep bzr remove-tree works, just wondering if there was another command, but it seems like there isn't. Chosen not to use a shared repo for various reasons. [00:53] I'm not very good at this, no not at all :-/ [00:54] mmj8237: yeah, we should probably add --no-tree to 'bzr push', 'bzr branch' had that added relatively recently. [00:54] cool [00:54] mmj8237: I'm a bit surprised that a shared repo isn't suitable given that you're concerned about disk space, but ok. [00:54] mmj8237: file a bug? :) [00:55] spiv: I am using stacked branches rather than a shared repo, I figure that if I delete a branch off that server it allows me to recover the disk space more easily than with a shared repo. [00:56] Though if you had other suggestions I'd be all ears :) [00:57] mmj8237: ah ok, interesting. I would expect with most workflows that a shared repo would still be smaller than a collection of stacked branches. [00:58] poolie: http://rproxy.samba.org/ has a stale link to http://samba.org/~mbp/superlifter/ [00:58] mmj8237: because stacked branches inherently have a little bit of duplication with the repo they are stacked on, plus merges between them will require copying revisions around rather than just having one copy. [00:58] So if the branch's absolute path is /home/foo/bar, do I do "bzr diff bzr+ssh://localhost/home/foo/bar" ? [00:59] mmj8237: but I guess it depends on how much being able to completely delete unwanted revisions can save you space. [00:59] PureRumble: typically no [00:59] PureRumble: you generally only diff locally - 'bzr diff' [00:59] ok but that was just an example. [00:59] PureRumble: but that url is correct [01:02] Ok, it actually works! But a bit annoying to print the password each time I wanna do something.... :-/ [01:03] PureRumble: you can use an agent to remember the password or passphrase (if you use ssh keys) [01:06] After a quick bug search I filed a request for --no-tree on bzr push at https://bugs.launchpad.net/bzr/+bug/506730 - hope this is ok thx [01:06] Launchpad bug 506730 in bzr "Add --no-tree to bzr push" [Undecided,New] [01:07] mmj8237: thank you! [01:08] Ok thanks, so now things seam to be working smoothly. [01:09] But how can I restrict what users can connect to my bzr server if I want to have such a server? [01:09] the plain bzr:// protocol doesn't have authentication or access control [01:09] if you need that, use bzr+ssh or bzr+http [01:11] ok, but how does say launchpad work? They restrict who connects and gets to see the code, right? And they use bazaar servers, right? [01:11] PureRumble: in your situation I'd just provide access via SSH, and then only users that can connect are the ones I've created accounts on my system for. [01:11] they use bzr+ssh [01:12] PureRumble: and if you want to limit which of those users can read/write particular things, I'd use regular filesystem permissions to control that. [01:13] spiv: but that would be a problem if the files happen to be on ntfs, right? [01:15] PureRumble: I wouldn't think so, ntfs has file permissions too. [01:15] ACLs even! :) [01:17] (But I don't have much experience with managing ntfs from linux) [01:17] yeah i knew that, i'm not that bad :-(. Just didn't think linux can modify them. [01:19] General question: what do you suggest for managing php project (with revision control) remotely? [01:22] I can set up apache on my host to connect remotely and test my code... but how can I work remotely on my code with revision control? [01:22] PureRumble: maybe the bzr-upload plugin or the bzr-push-and-update plugin would help. [01:27] Ok so bzr+ssh to retrieve files and modify and the upload back... but how to do build commands, such as ant, remotely? [01:27] Pardon newbie questions. [01:35] Well, you could do that with ssh. [01:35] I'd also expect it to be relatively easy to write a server-side bzr plugin that ran your buildsystem for every commit. [01:36] or use e.g. hudson [01:37] so much knowledge outside my brain, so little inside it! googling hudson [01:37] hudson-ci.org [01:38] PureRumble: thats for doing build testing [01:39] PureRumble: if you want deployment tools, you probably want to ssh into the server and then do a bzr pull; ant build (or other sequence of commands) [01:49] Ok some other general questions if I may: if I have hostA and another hostB, can I somehow map /foo/magic on hostA to /bar/magic on hostB safely through ssh? That would make things easy! [01:49] hostA and hostB different computers connected to web. [01:51] I've run into a merge issue with bzr 1.16, a new branch on launchpad is listed on lp: as format 7, but bzr lists it as unknown. How do I upgrade my old branches so that htey can be merged into a local copy of version 7? My other branches are 'pack-0.92' and lp: calles them version 6. [01:51] So like if I write some file to /foo/magic, ssh makes sure it is written remotely to /bar/magic on hostB. [01:52] jacseen: “bzr upgrade” your branches. You can do this on your local branches, and also remotely (“bzr upgrade lp:my-project” will work, but slowly). [01:53] PureRumble: You can do that (at least in linux), but why do you want to? [01:53] So I can easily manage stuff remotely of course :-) [01:54] RAOF: Fuse (hence sshfs) exists for BSD too :p [01:54] Look, I have my computer here at home and sometimes do coding on it. But sometimes I want to continue code on the same project but on my laptop. [01:54] chx: And I think MacFUSE exists, too :P [01:54] RAOF: not to mention the opensolaris port. [01:55] RAOF, just a noob question, how does bzr know what format to upgrade my 'pack-0.92' branches too? It doesn't even recognize the format of the version 7's as reported by launchpad? [01:55] jacseen: Bah. Sorry, I should have read your question more thoroghly. [01:55] jacseen: also, if you can upgrade to bzr >= 2.0 you'll find things work faster. [01:55] and Dokan on Windows. [01:56] So that's pretty much my problem. I have a php project on my main computer, but sometimes I wanna work from my laptop... all in all without duplicate code of course! [01:56] AfC, how does one upgrade to bzr 2.0 in, say, Ubuntu 9.10? [01:56] PureRumble: ssh will do that, but I'm not sure why you're hung up on the “without duplicate code”. I'd just have a branch on the main computer, and a branch on the laptop. [01:57] mac9416: use the bzr PPA [01:57] jacseen: I think you need a newer version of bzr [01:57] deb http://ppa.launchpad.net/bzr/ppa/ubuntu karmic main [01:57] AfC, gracias. [01:57] that has the latest stable release. [01:59] RAOF: Help a guy that has been haunted by this for a while now and wanna sleep. :-( Say I've done bzr init, add & commit on some folder on main computer. That starts the branch there, right? I've also enabled ssh on it. Good. [01:59] AFAIK bzr 2.0+ uses a different default branch format (no complaint), how do I ensure all the branches in one project - most likely of an older format - stay in that format as I create new branches and do merges and stuff? [02:00] Now what do you propose I do on laptop to continue working? [02:01] PureRumble: So, the next thing I'd do is push that branch up to launchpad, so it's easily available everywhere :). If that's not what you want to do, then you can “bzr branch sftp://the-main-computer/path/to/that/branch” on the laptop. [02:01] jacseen, create a repository to place all your branches in [02:02] but if I'm not misstaken then when you create a new branch it will go its own way... unless you merge them, right? [02:02] PureRumble: Right. [02:03] cody-somerville, I never actually created a repo for my branches, the tutes didn't explain them. Do these repos force all branches inside them to remain the same format, or just affects the format of newly created branches(the main requirement)? [02:03] So, once you're done working on your laptop, you can either (a) “bzr push sftp://the-same-thing” to push your changes to the main computer or (b) Merge on the main computer from the laptop [02:05] But there would still be inconvenience if I'm working with php code, right? Because webserver is on main computer. I would have to pull/push on laptop and then connect to computer through http to verify each little change I wanna see, right? [02:09] Unless you run a webserver on your laptop, right. [02:15] Yes but then it becomes a matter of keeping webserver configuration up-to-date too :). RAOF, lifeless, spiv thx for your help. I think I have enough to walk on from here. [02:21] Is there anyway to 'downgrade' a branch from a newer version to like 'pack-0.92' to maintain compatibilty across a whole project? Or must a person copy over the data files between the branches? [02:22] jacseen: you can use 'bzr upgrade' to downgrade too [02:23] jacseen: but not all downgrades are possibly, e.g. you can't go from 2a to pack-0.92 because 2a stores some data that pack-0.92 cannot represent [02:23] spiv by passing the format in cmdline. OK thanks [02:24] spiv that's what I was trying to confirm. Makes sense. [02:25] what is launchpad 'branch format 7' really in bzr terms? [02:28] jacseen: the branch format used by the "1.6" format option and newer, but branch formats aren't much of a compatibility issue. [02:28] jacseen: it's the repository format that is usually the problem [02:29] jacseen: it might be a bit confusing because the command-line options actually refer to combinations of working-tree/branch/repository formats, but I think Launchpad just shows the individual branch and repository formats. [02:30] spiv and here I thought I had it almost figured out :P [02:48] * igc heads off for a few days of holidays [02:50] thank you all for the added information, eventually I'll know everything again. :p [02:51] jacseen, then will come another big upgrade. :-) [03:38] here's a quiz [03:38] 42 [03:40] what's going on here: http://pastebin.ubuntu.com/355857/ [03:44] poolie: ping [03:45] pong [03:45] poolie: I have a bug [03:45] poolie: see mwhudson's paste [03:45] poolie: I'm trying to work out a summary [03:45] poolie: the actual branches in the pastebin have moved [03:45] poolie: but I have kept the branch for bug triage [03:45] poolie: it is now lp:~launchpad-pqm/bzr-hg/broken [03:46] if in doubt, file a bug with the exception and the innermost function name [03:46] from -Derror [03:46] ok [03:46] with that stuff in the subject line, i mean [03:46] and the tracebac in the description [03:48] poolie: https://bugs.edge.launchpad.net/bzr/+bug/506777 [03:48] Launchpad bug 506777 in bzr "InvalidRevisionSpec: Requested revision: u'281' does not exist in branch" [Undecided,New] [03:54] ok [03:58] thumper: is this urgent? [03:58] poolie: no, I've worked around by making an unstacked branch [03:58] high?medium? [04:04] on the whole, it seems a little broken, so high [04:04] but I also have that feeling about committing to a stacked branch [04:06] what, that you can't ? :) [04:10] thumper: just in case jelmer did something weird in the history it might be useful to check that branch before pushing [04:10] poolie: it works for an unstacked branch [04:10] i'll have a bit of a poke at it [04:10] lifeless: EPARSE [04:12] thumper: commit to a stacked branch. [04:13] lifeless: as far as we are aware, if you have a stacked branch, you can't commit to it (except using a heavy weight checkout) [04:13] thats right [04:14] we want to commit directly to the branch [04:14] we now have at least two different use cases in LP for this [04:16] cool [04:16] would love to see that fixed ;) [04:26] poolie: how do I go about increasing the priority of that? [04:27] which one? commit to a branch or log? [04:28] commit to a stacked branch (bug 375013) is already marked High, FWIW. [04:28] Launchpad bug 375013 in rosetta "Cannot commit directly to a stacked branch" [High,Triaged] https://launchpad.net/bugs/375013 === Sam__ is now known as SamB_XP [04:48] what does it mean when bzr claims a branch is 'format: unnamed'? lp:~keryx-admins/keryx/devel/ [04:49] from 'bzr info'. [04:50] what format should I use for a repo/branch in order to make it the same format to ease the merges? [04:54] jacseen: try 'bzr info -v' [04:54] jacseen: it just means that the combination of tree/branch/repo format doesn't match one you can name via the usual options (like --pack-0.92) [04:55] jacseen: in this case, [04:55] jacseen: --2a (i.e. the default format that bzr 2.0 creates) is fine [04:55] still 'format: unnamed' [04:56] alright [04:56] jacseen: oh, in fact that is regular combination, and just affected by a bug to do with 'bzr info' over the smart server protocol [04:56] jacseen: -v shows extra lines like "repository: Remote: Repository format 2a ..." for me, but maybe that's not in 2.0 (I'm using lp:bzr) [04:56] Oookaaay, I won't try to understand taht one yet [04:57] jacseen: as a workaround, you can use 'bzr info nosmart+lp:~keryx-admins/keryx/devel/' :/ [04:57] jacseen: sorry about that bug [04:57] Format: [04:57] control: bzr remote bzrdir [04:57] branch: Remote BZR Branch [04:57] repository: bzr remote repository [04:58] Yeah, the 2.1 betas do a little better there. [04:58] my main concern is, will my branches in 2a format cause extra headaches when merging back into the branches upstream? [04:58] jacseen: no, 2a is exactly the right format [04:58] jacseen: that branch is in fact in 2a format [04:59] jacseen: there's just a bug with bzr info that stops that from being obvious :( [04:59] jacseen: upstream of what ? [04:59] jacseen: just to be clear, "upstream" here == lp:~keryx-admins/keryx/devel/, yes? [04:59] is that why my bzr 1.16 complained bitterly about rich-root when I tryed merging pack-0.92 into that one? [05:00] spiv yes on the upstream currently [05:01] jacseen: yes, you can upgrade (and pull, merge, etc) from pack-0.92 into 2a, but not vice versa, because of rich roots. [05:01] hmm interesting, I thought I was going that direction [05:01] jacseen: 2a is a much better format than pack-0.92 (not just because of rich roots), and it's the default in 2.0, so I definitely recommend using it unless you have a good reason not to. [05:04] on Keryx Project, lp:keryx, we were mainly using pack-0.92, but now with the admins changing/renaming the primary branches into stable/unstable, those are no longer in pack-0.92 it seems and is cuding slight conflicts when I try to branch them to have a local copy [05:05] but I upgraded to bzr 2.0.3, so now my branches are all 2a, so that should help my side [05:05] Yes, sounds like it should :) [05:05] Things should be faster now, too :) [05:07] spiv: great so now I have to finish rebranching all keryx branches and translate my code changes over. No problem. Solution found [05:07] spiv: thanks [05:07] jacseen: you're welcome, glad I could help. [05:26] hi spiv, all === EdWyse_Mobile1 is now known as EdWyse_Mobile [07:04] hi all [07:06] Hmm, I think I'm close to having a working NEWS file merge plugin. [07:23] heya bzr [07:24] Woo, it works. [07:25] So, that's a useful proof-of-concept for the per-file merge hook. [07:25] Also shows where things are a bit more cumbersome than necessary. [07:25] * spiv submits [07:41] Ok, merge proposal submitted. I'm done for the day. [07:44] cheerio spiv [07:44] hope we see you tomorrow :) [07:44] hi vila [07:44] poolie: who knows! :) [07:50] hey poolie ! Thanks for your feedbackS on conflicts, replying now [07:50] thanks [07:50] i hope that didn't sound too critical [07:51] nope, never :) [07:56] The problem domain is complex anyway, so it's hard to find the small steps :) [07:59] well, goodnight [08:16] vila: good morning [08:16] good morning quicksilver [08:17] I think I read you had a solution but not what that solution was :) [08:17] vila: I believe I have an approach which solves my problem. [08:28] quicksilver: and the approach is ? [08:32] vila: after the manually fixed poison revision, proceed up the history tree of the old (poisoned) branch [08:32] vila: for each revision which is merely a plain commit, use bzr replay to replay it. [08:32] for each merge do the following: [08:32] 1. bzr merge -r"revid:exact-revid-of-merge-source" [08:32] 2. bzr revert . # discard those changes but keep them registered [08:33] 3. bzr diff -rA.B.C..D.E.F > my.diff # get a copy of the diff which this merge should result in [08:33] 3. patch -p0 < my.diff # apply most of it [08:35] 5. for i in `egrep '^=== added' my.diff | awk -F"'" '{print $2}'`; do bzr add $i; done; # record the added files as added [08:36] That should work except for the renames [08:36] 6. manually process any binary files added or changed using bzr cat (binary files don't get included in the diff) [08:37] and the binary files, yes, 'bzr shelve' should help if called at the right time [08:38] spiv: cool! (re per-file merge) [08:38] 7. egrep '^=== renamed' to identify any renames and process them by hand [08:38] hi spiv, vila [08:38] hi bialix [08:41] vila: I thought about bzr shelve but couldn't work out how to use it for this. [08:42] vila: of course br bundle format would be ideal, but there is no way to say "act on the add/rename/modify directives in this bundle whilst ignoring the revids" [08:45] the poisoned revisions appears in the history of the branches you are merging from right > [08:45] s/>/?/ [08:47] vila: no, they don't [08:47] I don't understand why you do 2. bzr revert then [08:53] vila: because the merge causes large, complex conflicts. [08:53] vila: and the original developer resolved them [08:55] ha, yes, of course [08:55] and I want to use his resolution, which lies in that diff. [08:55] gah. Now I have a conflict in a plain replay. This means I made a mistake, I think [09:00] oh well, it's getting more and more automated. I think I'll start again it will be faster now. [09:01] quicksilver: you should mail the list or file a bug against bzr-rewrite, we definitely needs that feature [09:02] vila: maxb thought it might be possible with his branch of rewrite but I couldn't make it work. [09:02] vila: this could easily be my fault :) [09:03] quicksilver: *how* you end up make it work is the interesting part :) [09:03] I'm sure maxb will be interested too :) [09:06] * bialix hates such lame posts: http://community.livejournal.com/shlomif_tech/41922.html grr [09:12] vila: I will mail the list once I've got it all sorted. This is something of a crisis right now though. [09:13] quicksilver: Sure, I understand that === timchen1` is now known as nasloc__ [09:40] quicksilver, I think bzr-rewrite doesn't support what you need yet [09:40] I started working on a bzr filter-branch command for bzr-rewrite a while ago, it only supported rewriting the commit messages and it never got merged [09:41] you can also use bzr fast-export/fast-import [09:41] they have the ability to filter out files [10:18] vila: hmm. No. I think my method is unsound after all. [10:19] :-/ [10:19] vila: when I do "bzr revert ." after the merge that reverts the added files [10:19] then when I readd them manually [10:19] they are flagged as coming in in *that* revision [10:19] rather than coming in in the revision they came in [10:19] which means they conflict on the next merge. [10:19] because bzr thinks they're different files. [10:20] I think really I want to only revert the conflicted files. [10:20] or, just bzr cat the conflicted files from the right revision. [10:20] hmm, yes, you should preserve the file-ids [10:21] is there a way to instruct a merge always to give priority to OTHER? [10:21] if you have only text conflicts then bzr cat -rnnn FILE ; bzr resolve FILE, should to it [10:22] bzr cat -rnnn FILE > FILE, you mean [10:22] but yes [10:22] quicksilver: There is a merge proposal about that for tree shape conflicts: https://code.edge.launchpad.net/~vila/bzr/conflict-manager/+merge/16785 [10:25] but that doesn't address text conflicts where more cases are needed [10:28] * quicksilver nods [10:29] quicksilver: you shouldn't generally do 'revert .' - because that *keeps* the record of the merge [10:31] lifeless: but that's exactly why I'm doing it [10:31] lifeless: I need to keep the record of the merge [10:31] but I don't want to do the hard work to resolve the conflicts again [10:31] so I want ot manuallly re-apply the previous conflict resolution. [10:31] * rml waves at quicksilver [10:35] vila: for i in `bzr conflicts | egrep '^Text conflict in' | awk '{print $4}'`; do echo $i; bzr cat -r"revid:$MERGEID" $i > $i; bzr resolved $i; done; [10:38] bzr pull --overwrite -r$MERGED ; bzr uncommit ; bzr shelve --all -m $MERGED [10:39] I think you can prepare the changes with that and then apply them after bzr revert . [10:40] bzr resolve --auto should then get rid of the text conflicts [10:40] vila: I have a different approach, which is maybe equivalent. [10:41] vila: suppose X.Y.Z is the revision which merges $MERGEID (and possibly fixes some conflicts or adds some more code) [10:41] vila: first bzr merge -R"revid:$MERGEID" [10:41] vila: then resolve all conflicts in favour of $MERGEID [10:41] vila: now, bzr merge -rX.Y.Z [10:41] vila: and that applies the new changes but it "notices" the $MERGEID is already merged and so that's OK. [10:41] vila: seemed to work just now. [10:42] cool, you'll get X.Y.Z as an additional parent though [10:42] but that may be better to show where you add to tweak your history [10:43] yeah, I don't really care about the extra parent [10:43] quicksilver: on the other hand if your merged branches are not poisoned why not just merged them as a whole ? [10:43] the general soundness is more important ) [10:44] vila: because of the conflicts? [10:45] ha, hmmm, yeah, hard to tell from here if resolving them once is enough or if each branch brings its own set, so yeah 'bzr resolve --take-theirs' ftw [10:46] this is a case where you *knwo* you want the conflicts resolved in your wt as they were resolved in the merged branch, without thinking about it [10:46] s/knwo/know/ [10:47] ah bother, it didn't work with file add/rename conflicts [10:47] * quicksilver backtracks and thinks again [10:55] quicksilver: https://code.edge.launchpad.net/~vila/bzr/conflict-manager/+merge/16785 *implement* --take-theirs for add/rename conflicts ! [10:58] yes, I saw it. [10:58] "bzr merge -rX.Y.Z" is a bad idea. [10:59] it brings the poison back in. [10:59] ha, so the poison is in the other branches too then [11:02] no, X.Y.Z isn't the "other" branch [11:02] X.Y.Z was the bad branch anyway [11:03] how about 'merge -cX.Y.Z' then ? [11:06] oh, I didn't know about that one [11:07] what does -c do? the help page isn't very detailed :) [11:08] I'm unsure about it in your particular case :) It's supposed to bring only the changes in the specified revision [11:12] vila: bzr merge -cX.Y.Z gives bzr: ERROR: exceptions.AssertionError: Unknown kind 'relocated' [11:12] * vila bangs head on desktop [11:14] 2.0.1 right ? [11:14] 2.0.3 actually [11:14] upgraded yesterday whilst tearing hair out [11:15] ha, gee, I thought I went in the twilight zone for a second, I was sure we had the reverse conversation yesterday :-D 2.0.3 ? 2.0.1 actually [11:16] I'm 60% sure some bugs has been fixed in at least bzr.dev and may be bzr-2.1betaxx [11:17] but anyway, did you try the pull/uncommit/shelve trick ? [11:18] It's supposed to record the actual changes for each revision so you'll get a poor-man replay, you can still insert some merge/revert . to set the parents [11:21] vila: No. I think I'll try that next. [11:24] quicksilver: remember that shelve is tight to the wt so be ready for some pull --overwrite to set the right wt or to copy/move the .bzr/checkout/shelf directory in the right place [11:24] vila: "wt" ? [11:24] working tree [11:25] * quicksilver nods [11:26] but pull --overwrite complete nukes my branch history? [11:29] nukes is a bit strong :) It makes your branch history the same as the one you're pulling from [11:29] and also updates the wt [11:33] vila: but I don't want to lose the branch history, do I? [11:34] or are you suggesting a use an auxiliary working tree and merge between [11:34] yup, when in doubt, always use a scratch monkey [11:34] vila: in particular, a bzr pull --overwrite will pull the poison back in. [11:34] yes, but it shouldn't pollute the shelved changes [11:35] when all your changes are ready, you can then, bzr pull --overwrite -r ../ and start from there [11:37] pull --overwrite -rrevno, gives you a branch and a working tree exactly as they were after the commit that created revno [11:37] something in the help page for shelve implies that it only applies to text changes though [11:37] so it won't fix my rename / binary problems? [11:38] if you uncommit/shelve, you should get unpoisoned changes from that [11:39] file a bug about that, shelve in bzr -core was rewritten from scratch to address shel from bzrtools relying on patch [11:39] if you get the wrong impression there, the doc should be fixed [11:40] Right. [11:40] So, I need one shelf per merge? [11:40] uncommit each merge point to a shelf [11:41] then pull a clean revision [11:41] and unshelve one merge at a time [11:41] well, (bzr merge ...; bzr revert.) to set the parent [11:41] and then unshelve the shelved version of the merge changeset on top [11:42] that's the idea [11:42] do shelves show up as a single change [11:42] or do they look like a merge? [11:43] think of shelves as you think about patches [11:44] you add or subtract them from a working tree, no merges or commits are involved [11:44] so I still want to replay the non-contentious revisions [11:44] if I want to keep as much of the history as possible [11:45] be careful to not bring back poisoned revisions though, even if the poisoned file is not in your mainline revisions setting a poisoned revision as a parent will still reference it in the repository [11:46] so while you can get back the changes from the poisoned branches, you can't get their full history [11:48] yup [11:48] well replay makes new revisions, it doesn't reference poisoned ones [11:49] I guess replay is a bit like the uncommit/shelve/commit trick for a single revision. [11:50] yup, simpler, otherwise you have to come up with some mapping for the merged revisions [11:53] vila: right. So basically your point is that shelves > diffs, because shelves can include renames and binary files etc. [11:53] vila: that makes sense but I kind of coped with renames and binary files anyway although it was a little painful. [11:53] vila: however it *doesn't* solve the file-id problem for added files. [11:53] (bzr merge -r$MERGEID; bzr revert .) is broken because it loses the file-ids for files added in that merge. [11:55] similarly, if you shelve an uncomitted merge, you lose the file-ids, surely? [12:00] no, shelve should preserve the file-ids [12:00] ah, OK [12:01] in that case perhaps I can see how to make this work [12:01] using two branches [12:01] I mean, two working trees [12:01] one working tree stays clean and I replay along it for the simple revisions. [12:01] when I get to a merge, I use a dirty working tree to pull to the merge, uncommit it, shelve it [12:02] then pull --overwrite to get the *clean* tree in [12:02] and unshelve that merge [12:02] vila: is that what you suggest? [12:04] err, no, I suggest preparing all the shelves first in wt-dirty, then move them to wt-clean and apply them there when needed [12:04] but you get the general idea yes [12:05] quicksilver: lunch time here, I'll be back in ~1 hour, anything urgent before ? [12:05] Under what circumstances does bzr-svn need to build a fileidmap-v3.knit ? [12:05] vila: no, thanks for all your help [12:06] quicksilver: youre' welcome, keep giving feedback [12:23] vila: of course, each time I branch/pull a bad revision it takes ages and uses up all my machine's memory, but that's life I suppose [12:34] vila: when trying to shelve a complex merge : bzr: ERROR: Tree transform is malformed [('versioning no contents', 'new-150')] [12:38] vila: even if I commit and uncommit it's no better [12:38] apparently some kinds of change can't be shelved... === mrevell is now known as mrevell-lunch [12:48] and to whoever it was who was suggesting fast-export [12:48] I read that fast-export / import roundtrip discards file-ids [12:48] so that's not the answer [12:50] although I read some bug reports to suggest it *does* have file-ids [12:50] hmm [13:00] well, I'll try it. [13:03] quicksilver: you got malformed transform while shelving a wt without conflicts ? [13:05] vila: yes. [13:05] quicksilver: internally shelve is supposed to serialize an intermediate representation that supports everything bzr support (bar conflicts and pending merges I think) [13:05] ah well there was a pending merge. [13:06] but that's the point of what I'm doing isn't it [13:07] hmm, no, you want only the changes themselves, not the parents or at least not the poisoned ones and you're supposed to fake the others anyway [13:07] well, this wasn't a poisoned one. [13:07] but how do I get the changes from a merge without the pending merge? [13:07] you said to go to the next revision, uncommit, and shelve :) [13:07] if I do that, I have a pending merge [13:07] pull --overwritw/uncommit/shelve [13:07] yes, but if the thing I uncommit is a merge [13:07] oh, wait [13:08] then I have a pending merge after the uncommit [13:08] naturally. [13:08] incidentally, bzr fast-export eventually runs out of memory and dies. [13:08] pull --overwritw/uncommit/bzr revert --forget-merges/shelve [13:08] sorry about that, silly me :-/ [13:09] ah [13:09] I also had a problem where pull --overwrite pivoted the tree [13:09] so that uncommit did the wrong thing [13:09] so I had to re-merge to get the right "mainline" [13:10] pull --overwrite always does that, it really puts you into the state when the revision was committed [13:10] I know [13:10] I understand why, I was just remarking [13:10] because the tree I'm recovering is a far-right branch [13:10] I find qlog really helpful for that [13:10] occasionally I need to pivot the line [13:11] but that's OK, I'm used to this. [13:11] I'm still getting bzr: ERROR: Tree transform is malformed [13:11] even after a --forget-merges [13:11] oh, ok, hard to visualize from here :-// [13:11] so I have a bunch of uncommitted changes in my 'dirty' wt [13:12] they are essentially the changes corresponding to a merge [13:12] but they have forgotten about the merge [13:12] because I did --forget-merges. [13:12] and I still can't shelve them :( [13:12] that's weird, shelve and commit are supposed to use the same code... can you commit ? [13:13] Yes, I can [13:13] I tried commit/uncommit at one point [13:13] just to make sure nothing odd was doing on [13:13] * quicksilver does it again [13:13] * vila bangs head on desktop again [13:13] Yup. [13:13] I can definitely commit fine. [13:14] and after I comment "bzr st" says the tree is clean [13:14] (that is, it says nothing) [13:14] and I can uncommit again, and shelve crashes again :) [13:14] uncommit/shelve from there ? [13:14] yes, I just did. It crashes. [13:15] anything suspicious in bzr st ? [13:15] 10 files removed, 40 added, 1 renamed, 80 modified [13:15] nothing out of the ordinary though [13:16] although it certainly is a big merge [13:16] haystack... [13:17] I think the best way to do this would be to fast-export | fast-import *JUST* the changes after the poison revision [13:17] maxb: fast-export crashes on all poisoned revisions. [13:17] maxb: the poison is too much for fast-export to take. [13:17] ugh [13:17] How many poisoned revisions are there, about? [13:18] quicksilver: you've got quite an assassin in your team... [13:18] Python(43161) malloc: *** mmap(size=691982336) failed (error code=12) [13:18] *** error: can't allocate region [13:18] *** set a breakpoint in malloc_error_break to debug [13:18] bzr: out of memory [13:18] maxb: just one. [13:18] And are there valuable changes in the same revision as the poison? [13:18] yes [13:18] :-/ [13:18] but I reconstructed that one revision by hand easily enough [13:18] bzr uncommit; bzr rm big-file; bzr commit -m"" [13:18] that was the easy bit. [13:19] the hard bit is replaying the future. [13:19] Right, well what I would do is to branch just before the poison. Manually reconstruct and recommit that one rev. And fast-export / fast-import the subsequent revisions [13:19] you can fast-export just a revision range? [13:19] I didn't know that. [13:19] argh, I thought that was the failing run ! [13:20] In order to make fast-import append to an existing history, it's likely going to be necessary to use --export-marks and --import-marks with manual editing of the revid in the marks file [13:20] Also you're likely going to have to fix up the marks file because of a bzr-fastimport bug, where fast-import and fast-export use slightly different syntax in their marks! [13:21] vila: ? [13:22] I thought you tried fast-export with a range and it crashed, it's worth a try I think (but no first hand experience with it here) [13:23] maxb: well, fast-export with a range is certainly very fast. [13:23] maxb: the file-ids will be preserved right ? [13:23] I'm hoping they will for existing files [13:23] Which should be good enough [13:23] I admit to not really being sure [13:24] I don't see any file-ids in the .fi file [13:24] Correct [13:24] maybe I'm looking in the wrong bit [13:24] I'm hoping that it will necessarily have to match onto the existing files by path [13:24] well some of the conflict resolution at merges is where files collide [13:24] so the resolution to the conflict is to rename one [13:25] so it's pretty import to preserve that part of conflict resolution. [13:25] Ah. I have no idea how well that will work, then [13:26] I don't know enough about the guts of fastimport to understand what it will do here [13:27] well no harm trying it [13:27] quicksilver: everybody involved in on OSX ? (Trying to rule out some path encoding problems) [13:27] I have the fast export file. [13:27] vila: no, mixture of OSX/linux [13:27] vila: although the author of the problem branch is on OSX and so am I [13:27] quicksilver: Did you --export-marks=somefilename? [13:27] maxb: yes. [13:27] maxb: just making a branch of the "manually fixed-up" revision to try to import into. [13:28] quicksilver: I think that two manual edits to the marks file will be needed [13:29] First, check whether all the data lines (line 3 and onwards I think) start with a colon. If they don't, it's a bug, and you'll need to edit to fix that [13:29] no, they all start just with a number [13:29] add colons to all? [13:29] Yes [13:30] done [13:30] Second, if you look at the first commit in the .fi file, and see what its "from :XXX" line says - and then change the corresponding mark's revid to be the revid of your un-poisoned revision that you want to play history on top of [13:30] (hurrah for C-x r t) [13:30] quicksilver: hehe [13:30] (also hurrah for vim visual block mode :-) ) [13:30] there isn't a from [13:31] C-x r : useless until you need it and soooo nice then [13:32] the second commit is "mark :2" and "from :1" but the first commit has no from line. [13:33] quicksilver: umm?! No from, no merge :XXX either? [13:33] nope [13:33] commit, mark, committer, data, (the commit message) and then the actual changes start [13:35] Oh, on an unrelated note, you probably want to export with --no-plain [13:38] OK, change of idea re the marks [13:38] *Add* a line reading "from :1000000" to the initial revision [13:39] *Delete* all the data lines from the marks file, and replace them with one saying :1000000 revid-of-revision-that-should-be-new-parent === mrevell-lunch is now known as mrevell [13:40] hmm ok [13:40] 13:40:25 Starting import of 50 commits ... [13:40] ABORT: exception occurred processing commit :1 [13:40] bzr: ERROR: exceptions.KeyError: ':1' [13:41] * rubbs is confused... is repository surgery being performed? [13:42] rubbs: sadly not. [13:42] rubbs: would like to, though. [13:42] rubbs: kind of, lossy rebuild instead [13:43] vila: the reason I did a full fast-export the first time around, by the way, is that I read this is actually a documented purpose of fast-export ;) -x to exclude a CD image added in error. [13:43] vila: not much use if it gives out of memory when processing the file though. [13:43] and I have a suspicion it will kill all the file-ids making it unmergeable. [13:43] bug filing time again :-/ [13:44] * quicksilver doesn't even know which parts of what's going on are bugs. [13:45] presumably the uncommit which I can't shelve is a bug. [13:45] I think I'm going to have to revert to slow replay approach. [13:46] ah... gotcha... I'll just sit back and watch. This is fasinating(sp?) [13:46] that's one yes, abentley may have an explanation about what kind of change can be committed but not shelved [13:46] fast-export blowing out memory may be one too (but it may be a dupe of the one you get with bzr itself) [13:47] yes [13:47] quicksilver: What's the first occurrence of :1 in your fi file? [13:47] and some operations don't crash [13:47] (which is just as well, because otherwise this branch would be totaly useless) [13:47] some operations give the memory error but still succeed [13:47] which I find fairly mysterious. [13:48] maxb: mark :1 near the top [13:48] huh [13:48] maxb: line 5, after 3 "feature" lines, and one "commit" line [13:48] quicksilver: As said yesterday, 2.1 fixed several memory issues, that could help [13:48] quicksilver: pastebin the stacktrace? [13:49] quicksilver: quick check, you still use *only* 0.92 branches right ? [13:49] maxb: http://pastebin.com/d6f95e4cf [13:50] vila: these fastimport tests are in a 2a branch [13:50] vila: in fact, probably all the fixup work has been in a 2a branch [13:50] one of the first things I did was upgrade the branch [13:50] because, initially, I thought that might solve the problem. [13:50] ok [13:51] * vila strike yet another cause [13:52] * maxb confused, sorry [13:52] afk for a bit [13:52] if 2.1 fixes bzr-fastexport so that it works even on the huge file, then one solution would be to bzr-fastexport *all* my branches, including the non-poisoned one [13:53] and then reimport them all, thus retaining their relationships [13:53] (using -x to remove the bad file at export time) [13:53] but that's a big if. [13:55] yeah :-/ [14:02] vila: OK, in the absence of other smart ideas, I'm going to return to "replay, remerge, and carefully re-resolve conflicts" [14:03] I may even use rsync. [14:04] without looking at your data, it's hard to understand what makes shelve crash :-/ rsync/bzr st/bzr diff should help you validate your changes... [14:05] vila: I'm inclined to guess that fixing shelve is not the shortest path to my solution ;) [14:05] fixing it now, working around the problem, may be... [14:05] s/now/no/ [14:08] or... bzr pull -overwrite -r in wt-dirty ; cd wt-clean; bzr merge ../wt-dirty ; bzr revert --forget-merges ? [14:10] hmm, will not allow you to set the parents... [14:10] that is essentially what I've been doing, yes. [14:10] except I didn't bother to pull --overwrite wt-dirty [14:10] I just specified the -r in the bzr merge [14:10] since it's sufficine for to excist somewhere in wt-dirty's history to be able to merge it. [14:11] yeah, sorry looping :) [14:12] I'm running bzr reconcile in both working trees on a hunch [14:12] although I'm pretty sure I did that yesterday [14:14] * vila discovers hunch meaning in that context... [14:16] Personally I think the best way to resolve this would involve hacking on bzr-rewrite until replay could actually follow a branched history [14:16] maxb: sure [14:17] bzr-rewrite or fastexport, but we definitely needs a nuke-that-file-yes-I-know-my-history-will-change command [14:27] if remote_branch.bzrdir.spout is used for doing a typical `bzr branch` to get code for modification, what's the equiv code for `bzr checkout` with the lightweight option? [14:30] remote_branch.create_checkout(targetlocation, revid, lightweight, acc_tree, hardlink) [14:30] appears to be the critical bit of bzrlib/builtins.py:cmd_checkout():run() [14:31] vila: OK, I was wrong about one thing. My dirty-wt was in knit format. [14:31] vila: whilst my clean wt was in CHKCHK format [14:31] vila: do you think that might have been relevant to anything? [14:32] quicksilver: well, numerous differences between 0.92 and 2a, so worth retrying the shelve with 2a [14:32] * quicksilver nods [14:33] * vila crosses fingers [14:33] I note that reconcile is pretty fast with knit and dog-slow with chkchk [14:33] the two chkchk reconciles I started are still running. [14:34] the later is doing far more checks [14:36] and they've both hit the out-of-memory error [14:36] even the so-called clean one [14:36] but even that clean branch has poison in its *repository* [14:36] just not in a reference revision. [14:36] so if reconcile touches the non-referenced revisions, that's not surprising. [14:36] it is [14:40] * quicksilver wonders how long bzr upgrade will take in the poisoned repo. [14:40] thanks Kinnison [14:41] quicksilver: you can try to branch in repo that already contains the poisoned revision... [14:41] vila: do you think it matters if it's an 'unnamed' combination as long as the repo format is rich root/group cmp/chk inventories? [14:41] oh, it's done anyway. [14:41] good [14:42] hmm, I don't think so [14:49] vila: bzr: ERROR: Tree transform is malformed [14:49] so even in 2a, this merge is unshelvable [14:50] damn === CardinalXiminez_ is now known as CardinalFang [14:56] so, back to plan D. Merge carefully, resolve conflicts carefully. *sigh* [14:56] quicksilver: can you keep that unshelvable tree somewhere ? [14:58] vila: I have around 50 copies of it so far :) [14:58] vila: it seems unlikely I'll lose them all. [14:58] :-) :-/ === deryck_ is now known as deryck [15:02] hi esteemed colleagues, everyone :-) got a problem with bazaar, not sure what's going on, any ideas? https://bugs.launchpad.net/ubuntuone-storage-protocol/+bug/506974 [15:02] Launchpad bug 506974 in ubuntuone-storage-protocol "Bazaar traceback when running "make link-sourcedeps"" [High,Confirmed] [15:04] teknico: did you run 'bzr check' ? [15:04] vila, no, I'll do it now in a number of places :-) [15:05] teknico: also the 'No handlers could be found for logger "bzr"' is... unexpected and may indicate that you can't write to $HOME/,bzr.log which in turn may contain relevant information about the problem [15:06] vila, .bzr.log is regularly written to, I looked at it, it doesn't record anything when there's one of those crashes [15:07] anything relevant or anything at all ? You should at least find your commands there [15:08] vila, yes, I meant in that specific cases, it records output for all other commands [15:08] in *those specific cases [15:09] sorry, I should be dumb, you mean it doesn't record that command (but it records all the other ones ?) [15:10] teknico: ^ [15:11] vila, yes, that's what I was trying to say, sorry :-) [15:11] that means bzr is running under a different uid ? SO maybe it *can't* write to the repo leading to the error [15:14] vila, different uid? no, why do you say so? [15:15] teknico: if it can't write to .bzr.log, something weird is going on like running under a different uid, but there may be other causes [15:16] vila, bzr does write to .bzr.log, except when it crashes, it doesn't, but it seems only natural :-) [15:17] teknico: not at all natural, every command is logged far before a crash can occur [15:18] mmm [15:18] teknico: what is utilities/link-external-sourcecode ? (first line in the traceback) [15:18] oh wait, you're using bzrlib directly ? [15:19] teknico: does your script calls bzrlib.trace.enable_default_logging() ? [15:20] let me check that script [15:20] morning jam ;D [15:20] morning vila [15:21] vila, no, it doesn't [15:21] teknico: then it won't write to ~/.bzr.log :) [15:22] good catch, vila [15:22] jam: do you have any idea why a 'bzr uncommit' followed by 'bzr shelve' may crash with bzr: ERROR: Tree transform is malformed [('versioning no contents', 'new-150')] ? [15:22] vila: well, shelve doesn't handle stuff like changing the tree root id [15:22] I don't know of other specific reasons [15:23] the error above looks like it is trying to remove an empty file? [15:23] something related yes, quicksilver does that rings a bell ? [15:23] I think there might have been an empty directory [15:23] I don't think there were any empty files. [15:23] what is the best way to get the file-id of a file? [15:24] yeah, better, an empty file *can* be versioned right ? [15:24] (am now trying to follow through my conflicts) [15:24] quicksilver: ready to dive into pdb ? [15:24] oh, for conflicts that's different [15:24] bzr st --show-ids ? [15:25] bzr st doesn't seem to say anything about untouched files [15:25] which is annoying [15:25] it will tell me the ids of modified or renamed files, yes [15:25] why would you want to know the file-id otherwise ? [15:26] so I can work out how a conflict was resolved [15:26] bzr st -r.. --show-ids [15:26] it's just one particular files I want the id of [15:26] (well, two) [15:27] so I can see which copies got kept and which got renamed. [15:27] I'll just md5sum them :P [15:27] going tricky are you ? bzr st -r.. --show-ids FILE [15:27] quicksilver: bzr inventory file --show-ids I believe [15:27] or "bzr ls --show-ids" if you can use that === AnMaster_ is now known as AnMaster [15:28] bzr ls only works on directories apparently [15:28] I think it is supposed to work on more, but is broken for files on Windows at least [15:28] quicksilver is on OSX [15:28] bzr inventory works :) [15:28] thanks jam. [15:32] jam: can your fix for #494269 be relevant for a case where shelve crashes while commit works ? [15:32] bug #494269 [15:32] Launchpad bug 494269 in bzr/2.0 "tree transform cannot change root id" [High,Fix released] https://launchpad.net/bugs/494269 [15:32] vila: its a possibility [15:32] commit can handle root-id changes [15:32] however, revert pull and update *didn't* either [15:33] jam: what's a root-id change? [15:33] how can I deduce whether it applies to my case? [15:34] quicksilver: it is when the file id assigned to "" changes (the root of your tree) [15:34] it is unlikely to be the case [15:34] but if you did "bzr init" 2 times in different directories, and then tried to merge those branches [15:34] ah, I don't think so, no. [15:34] it could [15:34] nope, never did that. [15:34] this was just a commit which was a big merge [15:35] (including additions, deletions, renamings and modifications) [15:35] quicksilver: you're the one hitting "versioning no contents" ? [15:35] yes [15:35] I can commit/uncommit it merrily as many times as I want [15:35] but I can't shelve it [15:35] which is a shame, because vila's evil hack for replaying merges on an alternate history depends on copying shelves around. [15:36] I just suspect a bug in the shelve code, not passing something along to the transform [15:36] specifically, that happens [15:36] if we call "create_path()" but no "create_contents()" [15:36] (or create_directory, etc) [15:36] I don't know exactly how to reproduce, but I'll poke around a bit [15:36] in the meantime, sounds like a bug :) [15:38] unfortunately I don't know exactly how to reproduce without giving the repo which I'm not at liberty to do :( [15:38] quicksilver: it also sounds a little bit like it would involve a file or directory which is deleted in the tree [15:38] quicksilver: you could at least give the output of "bzr status -r -2..-1" after the commit [15:39] so we get an idea of what delta the shelver is trying to undo [15:40] poking around the transform code, the number of places where it would look up the data is pretty convoluted [15:40] so having a reproducible test case would help tracking down where the bug is [15:40] jam: it's an uncommit after a merge, 'bzr st' alone should be emough no ? [15:41] yeah emough :) [15:41] vila: uncommit + status should be equivalent to commit + status -r -2..-1 [15:41] Except I don't think the latter mentions pending merges... [15:41] oh yes, missed the context [15:42] and adding a pending merge could certainly complicate things [15:43] jam: quick silver is trying to shelve the changes that represent the merge + the conflicts resolution though which complicate things [15:44] vila: certainly. I'm pretty sure it is just an edge case that we aren't handling correctly. [15:44] I'm guessing it is a bug in shelver [15:44] though, tbh, uncommit/commit don't invoke TreeTransform either [15:44] a better test is [15:44] bzr commit [15:44] bzr branch -r -2 ../other [15:44] cd ../other [15:44] bzr pull ../orig [15:45] since that requires applying the transform to the working tree [15:45] though I would be pretty surprised if that failed [15:45] then [15:45] bzr pull ../orig -r -2 [15:45] which backs out that change [15:45] oh [15:45] you need [15:45] bzr pull ../orig -r -2 --overwrite [15:45] (so that it actually steps backwards) [15:46] yeah, sounds like what quicksilver is doing, then, bzr uncomit and from there commit works shelve crashes [15:52] vila, "bzr check" pointed out another problem, not sure it's related though: https://bugs.launchpad.net/bzr/+bug/507040 [15:52] Launchpad bug 507040 in bzr "Crash during "bzr check"" [Undecided,New] === deryck is now known as deryck[lunch] [16:00] teknico_: the missing antoniolenton@gmail.com-20090420134023-q7gh2mem413kr4iz is from 2009/04/20, any conversion since then ? Any stacked branch involved ? [16:02] vila, yes, we converted the repo to 2a format a few months ago, and yes, that repo is a top stacked one [16:03] teknico_: can you attach the relevant .bzr.log part to the bug ? [16:05] vila, there's only the same traceback that's already in the crash log [16:06] teknico_: is it the same repo than bug #506974 ? Oh damn, I thought check outputs more details in .bzr.log [16:06] Launchpad bug 506974 in ubuntuone-storage-protocol "Bazaar traceback when running "make link-sourcedeps"" [High,Confirmed] https://launchpad.net/bugs/506974 [16:06] teknico_: and is it the only repo failing the check ? === beuno is now known as beuno-lunch [16:07] vila, no, it's not the same repo, and the check stops at that error, no other errors previously [16:09] teknico_: can you do 'bzr st -c revid:antoniolenton@gmail.com-20090420134023-q7gh2mem413kr4iz' ? [16:10] vila, output: bzr: ERROR: No WorkingTree exists for "file:///home/nl/canonical/ubuntuone/.bzr/checkout/". [16:11] meh, can you do it from a working tree ? Or do 'bzr diff -c revid:antoniolenton@gmail.com-20090420134023-q7gh2mem413kr4iz' instead ? [16:12] I'm just trying to verify if we can access that revision one way or another [16:12] s/verify if/verify that/ [16:12] now it's: bzr: ERROR: Not a branch: "/home/nl/canonical/ubuntuone/.bzr/branch/". [16:13] it's the top of a stacked repo, there's no working tree of it === sdboyer is now known as sanchopanza === sanchopanza is now known as sdboyer [16:14] Hrmm, is Hrmm, is 'bzr svn-push' now just 'bzr push '? [16:14] teknico_: there should be some branches below, go in any of them, I can't see which one is involved (that may be in .bzr.log though) [16:16] vila, the error in #507040 is in the top repo [16:16] however, I'm more interested in the error in #506974 [16:18] teknico_: can you explain your layout a bit ? Are all your branches sharing the same repo with branches stacked on different branches ? [16:19] Hrmm, is there a way to see a log of the pending merges? [16:19] teknico_: did you had the bzrlib.trace.enable_default_logging() call to your script ? Did that outputs something in .bzr.log ? [16:19] vila, no, the script does not call that [16:20] NfNitLoop: 'bzr st -v ' ? [16:20] teknico_: can you add it then so we know what it is trying to say when the 'no loggers found' message is emitted ? [16:20] vila, I have a top ubuntuone stacked repo, and below it there's trunk, and other branches branched from trunk [16:21] the error in #506974 is in a completely different repo === Adys_ is now known as Adys [16:24] vila: that shows me a one-line summary of the commit messages... [16:25] not the full commit. Nor the files changed in that commit. [16:25] I sortof want 'bzr log -v' behavior, but on the commits I merged in. [16:25] but they hvaen't been committed locally yet, so they don't seem to show up in bzr log. [16:26] NfNitLoop: is 'bzr qlog' an option ? [16:26] Oh well. I know where they occurred in the source branch so I just did bzr log on that. But if history had been odd, that would've been a pain. :p [16:26] vila, thanks for the help, I have to go now [16:27] teknico_: update the bugs if you collect more info [16:27] vila, I will [16:27] qlog is nice. Though, will it show pending merges? *Shrug* too late, already committed. :p [16:30] Sooo glad I got bzr-svn working with our repo. :p [16:34] vila: what is the status of https://code.edge.launchpad.net/~kamil-szot/bzr/non-ascii-chars-in-ftp-filenames/+merge/17012 [16:34] I'd like to knock it out of the review queue, but are we waiting for feedback from kamil? [16:35] vila: also, can you give a second review on https://code.edge.launchpad.net/~nmb/bzr/script-test-mv/+merge/17269 ? [16:36] jam: I think it's fine putting kamil's mp to wip while waiting for feedback [16:36] well, I'm thinking it really needs "Rejected" since we fixed it a different way [16:36] (that way WIP doesn't get full) [16:37] I hesitate to wield the big hammer, though [16:37] NfNitLoop: if you do a qcommit rather than commit it will show pending merges. [16:37] yeah, then a comment explaining that it's rejected because the tried approach is not appropriate then to make the hammer softer :D [16:38] NfNitLoop: yes it shows pending merges, I use it a lot when merging up to copy/paste part of the commit messages [16:39] vila: well, I'd like confirmation that upload + ftp is actually fixed [16:40] jam: the test I *added* to bzr-upload should cover that for bzr-core, all the transport methods used there are now covered [16:40] jam: I (wrongly) relied on bzr test suite for the first patch [16:41] vila: what is the missing bzrlib test ? [16:41] It sounds more like bzr-upload was supplying an invalid path [16:41] it was suppyling unicode paths instead of urlutils.escape()'d paths [16:42] which, tbh, was probably part of the original design (4?) years ago [16:42] I spent a lot of time making Transport work with non-ascii [16:42] only to end up with us never using it in bzrlib ... [16:42] so there are no missing tests in bzr since we use ascii paths... wait... we *may* add more tests that we support unicode paths for the directories containing the branches... [16:43] jam: I think some users may use it for their path to .bzr [16:43] vila: the root path should be a URL [16:43] and we ~ don't care [16:44] it should work [16:44] but Transport shouldn't directly be munging that part of the URL [16:44] (I think...) [16:44] anyway, for HTTP transports we wanted to make sure not to touch anything but the part we control [16:44] it doesn't but it should receive url encoded paths, bzr-upload was violating that assumption === deryck[lunch] is now known as deryck === beuno-lunch is now known as beuno [17:25] oh no, where is my day gone !!! [17:25] jam: reviewed and pqm'ed [17:28] I ate it. I'm sorry. [17:28] vila: I ate it with my demon repo, sorry. [17:29] quicksilver: how is it going ? [17:29] vila: I've had other things to do in the mean time, but a hybrid replay/merge/rsync approach looks like it will work. [17:29] shame we can't do better :-/ [17:36] seems like "repacking texts" results in the occasional very slow commit. [17:37] quicksilver: that's expected, should occur every 10, 100, 1000 commits, look at .bzr/repository/packs sorted by size and you should get the idea [17:37] * quicksilver nods [17:38] fine, just checking [17:38] well remarking rather than checking [17:38] vila: initially disconcerting because I worried that it indicated I had actually merged the poison in since it was so slow [17:39] * vila nods :D [17:40] vila: always takes me longer than I'd like to discover the correct selection of rsync options, too. For some reason I'm unable to remember rsnc commandline syntax [17:41] quicksilver: me neither, that's why I put them in scripts and under version control [17:43] but I'd bet you want to start with '-av --delete' here and then carefully read the help about what -a is aliased to :) [17:45] I didn't want a, in fact. [17:45] -i --checksum --delete [17:45] --dry-run, of course [17:45] -r [17:47] oops. the bad file is in the repo, this repacking is throwing memory errors [17:47] hopefully it's just garbage [17:48] * quicksilver branches to test [17:49] jam: can any of your memory fixes be relevant here ? A repack, even with a 600M object shouldn't reach the 2GB peak no ? [17:49] curiously the repack does succeed even with the error [17:50] quicksilver: the poison is a *text* file right ? And the size is ? [17:50] well it claims to succeed [17:50] vila: yes, 600M text. [17:59] vila: phew. branching it has sane size. the posion is not in a reference revision ;) [17:59] \o/ [18:22] well done [18:22] * rubbs applauds. [18:33] quicksilver: was it the final reconstructed branch or just an intermediate one ? === methods is now known as Guest42852 [19:15] everytime I commit a change, I get an error about inconsistent details in skipped record. [19:16] http://pastebin.ubuntu.com/356189/ [19:32] Are there any major differences between 'bzr checkout' and 'bzr checkout --lightweight' if you're checking out from and into the same shared repository? [19:32] My assumption is... no. :p [19:32] vila: almost final. [19:33] vila: no merges left so remaining replays should be trivial. I just got busy. [19:53] How would I get the parent_location or transport from a branch? [20:23] Yay, think I got another coworker interested in using bzr(-svn) here. :) [20:23] * NfNitLoop just wrote a wiki page with recommended workflow for working w/ our repo. [20:25] I had to make some tiny changes to allow working with our SVN repo. [20:26] I Just stripped the places that check for backslashes in file names. [20:26] since at one point in history we had a file in the repo with backslashes in its name. [20:26] https://code.launchpad.net/~cody-casterline [20:26] are my changes. [20:27] Someone said they might break other things, but I haven't had a chance to look into that very deeply. [20:27] the test suite didn't seem to find any errors with it. (There were some test failures, but for seemingly unrelated things that I think we're failing in the upstream branch too.) === _mm-mysql is now known as mm-mysql === davidstrauss is now known as davidstrauss-afk [20:40] jelmer: greetings, any words on https://bugs.launchpad.net/bzr-svn/+bug/505049? [20:40] Launchpad bug 505049 in bzr-svn "VersionedFileInvalidChecksum exception while branching remove svn branch" [Undecided,New] [20:41] I actually did a bit of experimentation by hacking bzr-svn to use a different prop prefix, and that didn't solve the issue, so it's probably not a bad revprop issue [20:43] jfroy|work, I'll have a look when I have a spare moment [20:44] jelmer: thanks, let me know if you need more data, and sorry to be annoying about it [20:47] vila: late answer, but I didn't fix the peak memory issues for "pack" [20:47] the pack code creates an index which can take a significant amount of mem [20:47] it is on my TODO, but is unfortunately pretty low [20:48] What are the circumstances in which bzr-svn needs to build a fileidmap knit? [20:48] For some of my repositories it has done so, for others not. [20:48] I'd like to know how to provoke it, so I can let it run overnight on a huge repository [20:49] Hrmm, maybe it only happens on repos that directly interact with svn? [20:52] can bzr be tricked into preserving timestamps [21:13] I would like to detect if changes have been made to a working branch, a cheap boolean would be most effective. [21:13] But I can't figure anything out other than making an entire change tree. [21:17] doctormo: would bzr status work? or am I missunderstanding your question? [21:17] rubbs: sorry I should have specified, using bzrlib [21:17] ah, then I will be no help [21:17] doctormo, [21:17] something like [21:18] changes = wt.changes_from(wt.basis_tree()) [21:18] if revision is None and changes.has_changed(): [21:18] return True [21:18] or something [21:18] wt being the working tree [21:19] wt is the working tree I guess and revision is the branch.last_revision() [21:20] right [21:21] should be more robust if you check for at least one commit [21:21] I'm wondering if the best way to get than is branch.basis_tree() [21:24] apparently wt.changes_from(wt) is unimpressive, so I guess there is a way to get a wt of what exists. [21:25] (wt, wt_path) = workingtree.WorkingTree.open_containing(path) [21:31] Hmm I can see removals, additions and changes... but not unversioned files [21:33] Ah I guess you get those from wt.unknowns() [21:36] doctormo, correct === davidstrauss-afk is now known as davidstrauss [22:15] good morning! [22:16] poolie: Hello! [22:16] hi [22:16] are you in nz? how's it going? [22:17] poolie: jelmer is navigating the bowels of the soyuz data model [22:17] he might be back soon [22:17] poolie: Yep, hacking on building from branches :-) [22:17] heh, with an endoscope? === ereslibre_uni is now known as ereslibre [22:25] What's the proper way to get the on-disk path of a bzr branch, given a Branch object? [22:26] Or, barring that, is there any string that I could get out of a branch object to uniquely identify it (even if it gets updated)? [22:26] branch.transport.base [22:26] poolie: Awesome, thank you. [22:26] nb there is also .has_same_location() [22:26] um [22:27] add extra underscores as needed [22:27] this should be made a bit simpler and more consistent [22:56] bzr: ERROR: unknown command "cp" [22:56] fail [22:58] poolie: Is there a more correct way to get branch._transport from an external program than to just access it directly? [22:58] jml, that's our most affecting bug [22:59] heh heh [22:59] mkanat: no; we should rename it to be pubilc [22:59] poolie: Okay. Is it safe to have loggerhead depend on its current private name, though? [23:00] yes [23:00] poolie: Okay, thanks. :-) [23:07] Good morning. [23:09] Why does locations.conf override direct config in a branch's branch.conf? This seems a bit odd [23:09] Mainly because it then becomes impossible to have special cases within an appendpath tree [23:21] maxb: Try puttig the branch's config in locations.conf too? [23:32] mwhudson: Okay, I submitted a merge proposal for a possible fix for the codebrowse hangs. [23:34] mkanat: woo [23:34] maxb: I think it makes sense to have locations.conf override the branch configuration, because locations.conf is per-user, no? [23:35] mkanat: Ooooh, neat. [23:35] hmm... I guess... I don't have any multiuser branches that have any branch.conf setttings [23:35] mkanat: Why does line 21 of LP's diff end with a ";"? :D [23:35] Peng: Ahh, silly habits. :-) [23:35] Peng: Probably just did that totally unconsciously. [23:36] hello spiv [23:36] Would using cache_key in revision_graph_locks work? [23:36] Peng: Oh, instead of using the branch thing? Yeah, that would probably make more sense. [23:37] mkanat: This doesn't matter, but you don't need to declare revision_graph_locks global. [23:37] Peng: Oh, right, because I'm not instantiating it? [23:38] Peng: This honestly is the first time I've had to explicitly use thread locking, and I almost never use global data structures for any reason, so.... :-) [23:38] mkanat: You only have to declare a variable as global if you rebind it (foo = bar). [23:39] Peng: Right. [23:39] Writing to a dict is just accessing foo.__setitem__. [23:39] Peng: For these sorts of review fixes, is it more traditional to uncommit and re-push, or to simply do another commit to address the review issues and then push? (This is my first merge proposal in any Canonical process.) [23:39] Peng: Yeah, that I know. [23:40] mkanat: I'd do a second commit. [23:40] Peng: Okay. [23:41] That seems to be standard practice here. [23:42] "bzr log lp:bzr | grep -i review" :P [23:44] Peng: Any other comments? [23:45] mkanat: don't uncommit unless you really have to [23:46] mwhudson: Okay. [23:46] mkanat: +"""Used to store locks that prevent mulitple threads from building a [23:46] 17 +revision graph for the same branch at the same time, because that can [23:46] ... [23:46] mkanat: should be a comment, not a string? [23:46] mwhudson: I was thinking so probably, too. [23:47] It looks like this adds a second call to update_missed_caches()? Was that intentional? [23:47] mkanat: did you consider pushing the locking into compute_whole_history_data ? [23:47] I don't really know this code, so I can't say anything for sure... [23:47] Peng: i think that's just the diff being a bit odd [23:48] mwhudson: I did...there was some reason I didn't...oh yes, because we don't have the cache within that method. [23:48] mkanat: ok [23:48] mwhudson: It's not. [23:49] Peng: there are two calls before and two calls after, i think? [23:49] Err, wait. [23:49] Wait, I, uh. Yeah, you're right. [23:51] This locks even if it doesn't end up calling compute_whole_history_data(), doesn't it? Is that a problem? [23:51] Peng: It does. It wasn't a problem in my testing. [23:51] Peng: The logical problem is that we must lock before checking if there's a cached revision graph. [23:52] Peng: I mean, we don't *have* to--I could refactor things to avoid it. [23:52] It'd be more complicated to do it that way, and not really worth it, right? [23:52] Peng: Yeah, I think so. [23:53] It'd be one of those check, lock, check, run things. [23:53] Fun. [23:55] Loggerhead is still considerably slower under massive simultaneous load than it is under a light load, but I couldn't get it to demonstrate the hanging level of slowness that I was seeing before. [23:56] Is there a race condition when creating the lock? Is it possible that another thread could create a lock between "if ... in ..." and "... = Lock()"? [23:56] Peng: I thought about that. Logically, yes. Practically, because of the GIL, no. [23:56] still [23:56] using defaultdict would be better here no? [23:56] At least, practically, it's unlikely. I could avoid it with another lock though. [23:56] mind you, 2.5 only [23:57] Ick. [23:57] or setdefault, but then you'll end up creating a lock for every request [23:57] mwhudson: What version do we require now? [23:57] mkanat: 2.4 [23:57] mkanat: 2.4 [23:57] Oops. [23:57] but launchpad is on 2.5 so i care a lot less now :) [23:57] Yeah, but RHEL 5 is 2.4.... [23:58] That's sort of what I generally use as a limiter for stuff that's really hard to reinstall at a base OS level. [23:58] bzr still supports 2.4, but that doesn't really stop Loggerhead from dropping it. [23:58] mwhudson: A simpler solution is to put another lock around the check. [23:59] If we wanted to, anyway. Loggerhead obviously has fewer users than bzr, but more of its users will be on old server installs... Meh. [23:59] mwhudson: The only problem is that that lock totally synchronizes loggerhead, because it would be one global lock. It's pretty short, though. [23:59] mkanat: simpler, but more expensive i guess [23:59] mwhudson: Yeah. [23:59] _I_ don't run 2.4, so I don't care much, but... [23:59] mwhudson: Launchpad is on 2.5? [23:59] * mkanat runs 2.4 on all his servers. [23:59] if we hit this race, i guess it's possible to end up in the bad old situation of building multiple caches [23:59] Peng: yes! finally