[00:03] I have branched off some line of development with my own changes, now I'd like to get a complete, clean patch of my changes to the trunk revision. How to do that? [00:04] I tried with merge --preview, but it does not work, since I'm working treeless. And I don't really plean to do a merge anyway. [00:04] s/plean/plan/ [00:05] Leonidas: bzr send? [00:05] Furthermore, I'd like to merge in the latest trunk changes since branching, but they should not appear in my patch. [00:06] Leonidas: bzr send? [00:06] Peng: thanks. I'll see whether this is what I want. [00:06] Leonidas: there is also "bzr diff -r ancestor:URL" [00:07] Leonidas: 'bzr send' produces a bundle file, which by default includes a diff and the (base64-encoded) meta data. [00:09] poolie: did you ring? [00:10] Peng: bzr send sounds good, but I'd need to get the patch only, since it's only me who is using bzr. The other people have no use for bundles. [00:11] bzr send --output=- is nice, now compine it with no-bundle [00:13] huh? Am I missing something? bzr send --no-patch --output=- works [00:13] bzr send --no-bundle --output=- does not. [00:14] bzr send --output=- does work and produces both patch & bundle. [00:16] Leonidas: I'm guessing "bzr send --no-bundle" is failing due to a lack of a public location for your branch. [00:16] Leonidas: if you just want a diff, you're better off using "bzr diff" directly, as james_w suggested. [00:17] spiv: right, it fails because there is no public location. But I don't see why it does not work like bzr send just without the bundle. I could use sed, though ;) [00:18] Leonidas: bzr send tries fairly hard to make sure that all the history is available to the recipient, either in the included bundle, or in a publically accessible branch if there is no bundle. [00:18] ah, that explains a lot! [00:18] lifeless: no [00:19] i.e. bzr send is designed as a way to send merge directives for branches, not as a way to generate diffs. Generating diffs is what "bzr diff" is for :) [00:19] spiv: ok, bzr diff -r ancestor:... works properly. Fine. [00:20] Thanks, also to james_w [00:20] I wonder what happens if I merge trunk :) [00:24] ok, works. Fine [00:37] lifeless: I'm planning to tweak stacked branches today [00:37] 1. move branch-location into branch.conf [00:37] 2. rename shallow options and messages to stacked [00:37] 3. ???? [00:37] lifeless: is that ok? [00:51] igc, is the name really just branch-location? it needs a less ambiguous name... [00:53] poolie: no. I was being lazy because I knew that lifeless knew what I meant [00:53] ok :) [01:12] jelmer: around? [01:13] abentley, hi [01:13] igc: 4. profit ? ;-) [01:13] jelmer: Can I ask some questions about samba? [01:13] abentley: sure [01:15] jelmer: How stable is bzr-svn's 0.4 branch at the moment? [01:15] Peng: stable [01:15] jelmer: So it's okay to use instead of 0.4.10? [01:15] jelmer: The main question is, is Samba suitable for sharing to linux clients? I.e. can it preserve users, modes, etc? [01:15] Peng, at the moment, yes [01:16] I've only used it when the primary clients were win32. [01:16] jelmer: Are you planning to break it before the next release? :P [01:16] abentley: Yes, when you're using a recent version of Samba and CIFS VFS (mount -t cifs rather than mount -t smbfs) [01:16] Peng: no plans :-) but not guarantees either.. [01:17] jelmer: cool, thanks. [01:17] abentley: It's more POSIX compliant than NFS3 and even more compliant than NFS4 in a lot of cases [01:17] Maybe I'll keep using 0.4.10 as long as it works with bzr.dev. If it still does. [01:18] jelmer: great. [01:19] Yeah, it does. [01:20] Peng: 0.4.10 is broken with bzr.dev (push for example) [01:21] Oh. [01:21] Broken as in traceback or corruption? [01:25] traceback [01:25] corruption never happens because of mismatching versions === mw is now known as mw|out [01:58] poolie: found the plugin ? :P [01:59] abentley: is branch.conf meant to be human edited or bzr edited? [02:00] lifeless: Yes. [02:00] hmm [02:00] Same as bazaar.conf. [02:01] what settings from it are copied on clone/sprout? [02:02] I can't think of any values that are copied. [02:02] ok === kiko is now known as kiko-zzz [02:02] igc: go ahead [02:03] lifeless: It contains values like parent location, push location, bind location. [02:03] lifeless: thanks [02:04] lifeless: summary email on its way now too fwiw [02:09] igc: thanks [02:10] poolie: call? [02:21] beuno: are you still up? [02:22] hi everyone. I just wanted to know. Is olive-gtk currently the best available option for a gui interface to bzr? Or are there any better options? (I would prefer gtk over qt, but it' s entirely a matter of (visual) taste) [02:22] what I was looking for is some app that makes viewing change history easy (something like trac, but as a client app, instead of requiring a webserver) [02:25] mwhudson, yeap [02:25] beuno: cool [02:25] beuno: so my understanding, roughly speaking is that you have done four things to loggerhead recently: [02:25] 1) remove the use of deprecated methods [02:25] 2) switched to using zpts [02:26] 3) some ajax-y stuff for revision views [02:26] 4) use cleaner urls [02:26] beuno: would that be a fair summary? [02:28] mwhudson, generally, yes. Although 3) required generating a new controller from scratch for diff, and changing how the revision view is generated [02:28] ok [02:28] so what i would _like_ is to have one branch for each of these things :) [02:29] (they don't all have to be brances off trunk, i'd expect the branch for 3) to be a branch off that for 2), for example) [02:29] ah, good, was about to say that :) [02:29] and, well, 4) off 2) also, since it's mostly templating work [02:29] sure [02:30] ok, I can do that, now, where could I find a good VCS to help me with that... [02:30] heh heh [02:31] beuno: i'd like to review the branches for 1 and 2 today if i can [02:32] mwhudson, oh, sure. I'll get right on it. 1) would be with KID than? [02:32] *then [02:32] beuno: yeah, i think so, the changes are entirely independent of the templating stuff [02:32] and this branch is more urgent [02:33] yes, I see where you're going. I'll push em to LP and ping you [02:33] thanks a lot [02:34] you could even send merge requests to the bazaar list :) [02:35] sure, whatever is better. Will BB get confused if I send with [MERGE]? [02:37] yeah, i guess [loggerhead/MERGE] [02:41] hmm, is there anyway of running bzr viz in a repository? [02:41] (i.e. with multiple heads) [02:45] beuno: any idea how long this is going to take? i.e. a few minutes, an hour, tomorrow? [02:45] beuno: don't want to pressure, just want to know [02:45] mwhudson, I'll send 1) in a few minutes [02:46] cool [02:46] and 2) by the end of the day [02:46] as I see it, 3) and 4) stack up on top of 1) and 2) [02:48] You can run viz on multiple branches... [02:48] fullermd: you can? [02:49] beuno: isn't it rather late for you already? :) [02:49] beuno: but sounds good [02:49] * mwhudson heads out to buy some chocolate to fuel the review [02:49] mwhudson, I've seemed to moved to new zeland time zone these past weeks :) [02:49] beuno: heh [02:50] Yah, just hand it a couple on the command line. [02:50] (I haven't really used it, but I've done it) [02:51] fullermd: maybe my bzr-gtk is too old, it doesn't work for me [02:52] NEWS says it was on 0.94.0 [02:52] 0.93.0 [02:52] oh well [02:54] beuno: glad you like it [02:56] lifeless, I may even attempt to get it working within loggerhead, when I run into some free time [02:57] a pre-alpha version of it will be *way* better than what there is today :) [02:59] :P [02:59] surely not ? [03:00] mwhudson, we sould really disable full text indexing by default [03:01] it makes my core2duo 1.5gb of ram cry for a good hour on bzr.dev [03:01] holy crap [03:01] are you sure it only indexes the commit messages? [03:01] I promise :) [03:01] how the hell can you spend more than a few seconds indexing bzr.dev's commit messages. [03:02] I reckon you are missing a lock_read() or something similarly inane [03:02] I'd rather invest time in getting it to work with something new (bzr-search, for example) than fixing the horrid current sqlite thingie [03:03] k [03:03] (I'm sure the underpinnings are not that different though) [03:03] poolie: bzrlib.tests.test_lockdir.TestLockDir.test_35_wait_lock_changing is failing sporadically for me. I mention this because I thought it was fixed? [03:05] lifeless: i think i already explained that loggerhead's text indexer is worse than you can possibly imagine, didn't i? [03:05] i wasn't kidding [03:07] * igc lunch [03:07] mwhudson, patch for 1) sent off to the list [03:08] mwhudson: I thought my imagination had more power [03:09] mwhudson, I'm off for ~2 hours, and I'll be back to send 2) with 1) merged into it, and other tweaks it needs to work properly [03:10] beuno: ok, have fun [03:11] lifeless, http://bazaar.launchpad.net/~loggerhead-team/loggerhead/trunk/annotate/launchpad%40pqm.canonical.com-20080418101647-2k1lv1l0edudd191?file_id=textindex.py-20061219035715-norgqx0pl0hxdax8-1 [03:11] for your amusement :) [03:15] mwhudson, oh, and I just remembered, not sure what that list is for, but I also tried genshi as a templating engine, which failed miserably :) [03:16] beuno: right, i'm not expecting to merge that one :) [03:16] jelmer: thanks [03:16] * beuno is off [03:18] beuno: bye [03:21] holy cow [03:21] thats scary shit [03:22] I mean, might want to tweak the term generator in bzr-search to combine robert's -> roberts rather than robert's -> robert, s [03:22] but thats stemming which I punted on [03:37] is there an IRC bot out there that'll watch bzr repos for changes? [03:39] I believe so [04:11] so bookmarks and lp: urls don't really get on [04:13] yay for stacking [04:29] lifeless: re that test - i have a patch that addresses it but there was some nontrivial review pushback, i need to revisit it [04:30] uh [04:30] i tried doing an incremental patch towards it, introducing a different error for "waiting for lock timed out" from "lock is not available at this instant" [04:30] which i think will make those tests clearer and not timing dependent [04:30] but the increment was not compelling by itself [04:44] poolie: k [05:18] back [05:18] mwhudson_, so, 2) then? [05:20] beuno: yes please :) [05:21] on it [05:35] hey guys [05:35] when someone deletes a directory in bazaar and the directory has pyc files, I get conflicst [05:35] yes [05:36] known issue, no good answer so far === lamont` is now known as lamont [05:40] lifeless: ok. cool. [05:42] (you need a way to separate 'my-bank-details.txt' which I ignored so it wouldn't be added from 'foo.pyc' wchich I ignored so it would not be added [05:43] need to somehow consider the former to be...precious ;) [06:00] or the latter to be junk [06:01] but this has complexity impact [06:12] mwhudson_, do you want the 2) patch relative to 1) or trunk? [06:12] relative to 1) please [06:13] beuno: i [06:13] coming up [06:13] 'm not going to be working for much longer today, btw [06:13] i'll look at it first thing tomorrow [06:13] oh, but it's only 3k lines... :p [06:14] :) === mwhudson_ is now known as mwhudson [06:14] i know, i'm lame [06:18] mwhudson, sent [06:19] I'll prepare the other 2 tomorrow [06:37] beuno, hi [06:37] hey there poolie [06:41] beuno: what a circus :-} [06:42] poolie, heh, the past weeks have been pretty active :) [07:02] abentley: lol, I have this image of bb running around going 'I'm freaking out mAAAAAAN' [07:03] hahha, I was just thinking that. With ian's patch in it's hand [07:03] lifeless: hehe [07:33] Hi. Anybody know what 'KnitCorrupt: Knit corrupt: incorrect number of lines 221 != 152 for version {svn-v3-single1-dHJ1bmsvbWFpbg..:6226825f-cf0a-0410-9073-f4040cba8958:trunk%2Fmain:116353}' means? [07:37] I'm off to bed. G'night everyone [07:40] night beuno [07:42] fdv: my first thought would be a symlink with newlines in it in the source svn repo [07:43] lifeless: ah [07:43] because I *think* bzr-svn generates its own knit hunks or something like that [07:43] that revision had broken symlinks, but I tried removing those nodes [07:43] jelmer: ^ any thoughts [07:44] what are knit hunks, really? [07:46] fdv: records containing the lines added in a revision, basically. [07:47] ok.. [07:47] Usually just the new lines, and a record of the lines removed. Sometimes a full copy of a file is stored rather than just a delta, depending on various conditions. [07:47] right [07:48] Basically, low-level guts :) [07:48] I removed all the nodes containing these symlink edits from the dump file and repopulated the repo [07:48] and then tried pulling it again [07:48] igc: Do you have a clear idea what you need to do to generate a mergeable directive? [07:49] fdv: did you clear the output repository? [07:49] fdv: or remove the corrupt revisions copied into it? [07:49] lifeless: absolutely :) [07:49] abentley: use bzr.dev as the submit_branch [07:49] lifeless: I couldn't remove the whole revisions [07:49] only the nodes affected [07:50] abentley: I don't get hope to get the right preview diff though ... [07:50] igc: And you can use -r to specify the cherrypick you want [07:50] so -rancestor:../foo.bar? [07:50] igc: bzr send -r thread:..-1 [07:50] igc: you should never need to touch -rancestor with send and a loom [07:50] lifeless: I've exported the loom [07:51] igc: oh, don't [07:51] igc: :) [07:51] igc: I send all my patches for loom-branches direct from the loom [07:51] lifeless: I didn't know better and smart people told me to :-) [07:51] AIUI export-loom exists solely for use with launchpads internal review system which is not loom aware [07:52] BB doesn't have the same flaws [07:52] lifeless: Not true, also for dealing with PQM [07:52] abentley: oh, I guess. I do all my merges via an integration branch, so it never occured to me [07:52] abentley: (bzr pull $source --overwrite && push --overwrite && pqm-submit -m '...') [07:54] igc: Anyhow, are you able to get a reasonable preview diff? [07:54] just trying now [07:57] abentley: in the case of StackableBranch, not by using -rancestor:../Development1 :-( [07:58] I guess the preview is the least important bit [07:58] but it annoys people reviewing in the mailer [07:58] igc: The preview reflects the merge you are requesting. [07:58] If it's wrong, your request is wrong. [07:59] abentley: the preview contains the right changes vs bzr.dev [07:59] but it's more than I wanted in the preview because it includes the changes from 'threads' below [07:59] igc: honestly, do the BB submissions direct from the loom [08:00] igc: with 'bzr send -r thread:..-1' from within each thread. [08:00] igc: it will JustWork [08:00] (I mean, this is the sort of scut work that loom is _meant_ to manage for you) [08:00] * abentley has send -r thread: aliased as tsend [08:01] lifeless: understood. Why the ..-1 ? [08:01] exactly [08:01] current tip [08:01] igc: a -r spec generally specifies the tip. [08:02] igc: you want from the thread below (thread:) to the last commit (-1). But giving send one revision says 'from bzr.dev to that revision) [08:02] So -r thread: specifies the tip to be the tip of the previous thread, which is wrong. [08:02] ok [08:02] You can probably specify "-r thread:.." but I haven't tried that. [08:03] I try sending from the loom now [08:05] Alternatively, you can specify the revision-ids from your previous submissions. i.e. "bzr send -r revid:ian.clatworthy@canonical.com-20080610013832-9dt6c5h67eckiezo..revid:ian.clatworthy@canonical.com-20080610045325-hi3yug3nasoe6e1h ../bzr.dev" [08:05] will loom become part of bzr? [08:05] gour: do you mean 'will it be part of the tarball' ? [08:06] gour: if so, probably, we plan to roll popular plugins into the release tarballs. [08:06] lifeless: yes. otoh, 'loom' is not listed at http://bazaar-vcs.org/BzrPlugins or i'm blind [08:08] lifeless: wrt. the knit error, could the revision be cached or already (half way) applied somehow, so that I don't get it from the new repo I set up, but still from the old one (which is broken)? [08:08] fdv: yes [08:08] ah [08:08] fdv: I would try importing to a fresh ('bzr init --rich-root-packs') tree [08:09] crap [08:09] that's three more days :p [08:09] well [08:09] but if that's what it takes.. :) [08:09] you have corrupt content in your target repo [08:09] removing knit references is not the simplest thing to explain [08:09] I can't roll it back somehow? [08:09] that's all right [08:09] if it's the only feasible solution, I'll start from scratch [08:10] we dont have an automated UI for removing single revisions at the moment [08:10] I think I have a corner case here :) [08:10] oh, there is need for it [08:10] it needs someone to write a ui for it using the low level primitives [08:11] I see [08:11] are there some docs anywhere? :) [08:11] if you have a pack repository, pydoc bzrlib.repofmt.pack_repo [08:12] (for a pack repo its basically 'copy everything to a new pack except hwat you want to remove, then discard the old packges') [08:12] igc: I'm off to bed. If in doubt, run a test against a local bzr.dev that doesn't use the same shared repo. [08:12] ok [08:12] for a knit repo its 'remove low level index entries' by doing the same on a per file-id basis [08:13] svn folks released svn-1.5rc10 :-/ good luck to those living with such software [08:13] lifeless: ok, I'll try to have a look. Don't have too high hopes, thouhg :) [08:14] ...requiring 10rcs [08:16] fdv: don't stress about it :P [08:16] no, but it'd be interesting to have a look === mneptok_ is now known as mneptok [08:28] beuno: test a little, code a little :) I don't think you need to duplicate tests for a --dry-run option. TDD helps in *reducing* code duplication after all. Some blackbox tests should be enough. [08:28] later all, dinner time [08:33] ok, I think I've stopped BB freaking out now. Let's hope so. [08:41] night all [08:41] night [08:44] cheerio igc === poolie changed the topic of #bzr to: Bazaar version control system | http://bazaar-vcs.org | please test 1.6beta2 | http://irclogs.ubuntu.com/ | http://planet.bazaar-vcs.org/ [08:44] 1.6b2 is out [08:55] hello guys, does bzr can be integrated with trac? [09:01] guys is launchpad.net seems to be like trac? [09:08] toyto1: There's a bzr-trac thingy, but I don't think it's 100%. [09:08] toyto1: And yeah, Launchpad has some similarities to Trac. No wiki though. [09:10] seeing that trac-0.11 is still no out...hmm [09:11] night all [09:13] toyto1: have you seen http://www.redmine.org/ ? [09:13] Peng: ah i see:) [09:13] gour: what's that? let me check [09:14] Peng: I didn't find how-to their with bzr-trac for integrating :( [09:14] toyto1: it's what trac-2.0 will maybe become. it's RoR app, but still [09:16] gour: so you mean is that redmine is more advance than trac as of now? [09:16] toyto1: yep, more support for SCM, multi-project etc. however, we choose roundup (http://roundup.sourceforge.net/) - no need for wiki [09:22] gour: I see thanks for the info :) [09:22] ;) [09:32] help! [09:32] bzr: ERROR: Revision {foo@bar-20080606164431-373v96de5ba508yi} not present in "revisions.kndx". [09:32] ... at a bzr branch ... [09:37] mtaylor: https://bugs.edge.launchpad.net/bzr/+bug/232270 [09:37] Launchpad bug 232270 in bzr "Cannot checkout -- KnitCorrupt: attempt to add line-delta in non-delta knit" [Undecided,New] [09:37] james_w: ah [09:37] are you using a smart protocol for whatever operation you are doing? [09:38] for that one. [09:38] it's possible someone used sftp or something though [09:38] james_w: it is all bzr+ssh:// [09:39] james_w: I have a 2nd tree that is a bit more up-to-date that has that rev-id and I can pull nicely into that tree [09:40] only if I use a tree that is "before" that rev-id the branch/pull/log/... all fail [09:40] if you use sftp:// it should work. [09:41] james_w: it does [09:41] and interestingly a $ bzr log --show-ids sftp:// shows me the {foo@bar-20080606164431-373v96de5ba508yi} [09:41] hang on, are you two working together on this? [09:41] james_w: yep :) [09:42] ah :-) [09:42] ok, it's some problem with the smart server, I've updated the bug report about it, you can subscribe if you wish to follow the progress. [09:43] a full traceback of the error would be very useful, you can find one in your ~/.bzr.log. [09:43] you can edit out the details, but the traceback would be really helpful. [09:43] so, there still isn't a pack-based format that you can upgrade to from dirstate-with-subtrees ? [09:44] you should be able to upgrade to --rich-root-pack if you don't actually have any subtrees I believe. [09:45] james_w: http://pastie.org/212084 [09:45] james_w: we don't _think_ we are using any (at least, we aren't on purpose) [09:45] this is the one for bzr log failing [09:46] james_w: but upgrade --rich-root-pack still b0rks [09:46] weigon_: thanks. That's a different error from the "bzr branch" error, could you possibly provide that one as well, it would be great to have as much information as possible. [09:47] sure [09:47] mtaylor: is it an error about this problematic revision, or something unrelated? [09:47] james_w: something unrelated - I was trying upgrading to packs to see if that would help ... but now I'm just fixed on the fact that I _can't) [09:48] heh :-) [09:48] sounds like it would be worth a separate error report then. [09:49] yay! two bugs in one swipe! [09:49] james_w: http://pastie.org/212087 [09:50] thanks team. [09:50] I'll put those in the bug report if you don't mind, as we don't have good info there yet [09:52] shall I add it so you have a reference for more info ? [09:53] I think there may be enough there to know what is going on. I'm no expert in this area though. [09:53] k [09:53] there's also a public branch there that is reported to exhibit the problem, so it can always be reproduced by the developer. [09:53] thanks for your help. [09:54] the sftp:// idea is good enough for now [09:54] thanks [09:57] james_w: the story goes on with $ bzr merge ... let me paste it [09:59] james_w: http://pastie.org/212089 [10:01] ok, do you understand what the error message is saying? [10:11] james_w: it tries to find the common ancestor where the two trees are related and can't find it [10:12] yup, are these two trees supposed to be related? [10:12] this is the same tree that has the other problems :) [10:12] they are related just a few revs before the unknown rev-id [10:13] I assume that this is just a side-effect, as bzr thinks it can't find one of the rev-ids along the way and jumps out [10:22] gour: The SVN team have always been cautious about version numbers ; I remember how long it took them to get to 1.0 === mwhudson__ is now known as mwhudson [11:13] Hi, I'm getting extensive merge conflicts when merging two trees(383 conflicts). It feels like it select's a very old base. The manual hints about specifying a specific base to use. But I can't figure out how to do that. Any ideas? [11:16] Have tried to remerge with "bzr remerge --weave " and that will bring the number of conflicts down, but at the same time some changes will be lost and it's not possible to use "bzr extmerge" after that since ther is no .BASE, .OTHER and .THIS anymore. === cprov is now known as cprov-lunch [11:56] blaudden: try --lca instead of --weave maybe [11:56] blaudden: I'm not sure what you mean by "some changes will be lost" [11:57] spiv: yes, I tried --lca also [11:59] spiv: When running the binary it wil crash and I find one place where the merge has removed two lines instead of conflict them. That makes me a little scared and I start to think about other places being merged that way but that doesn't cause an immediate crash. [12:03] when i use bzr with http+ftp, does that create special traffic or abuse the sever?^^ [12:08] blaudden: that's always a risk with an automatic merge tool [12:09] spiv: :) [12:09] blaudden: just because one branch adds a line here and another removes a line there, in non-overlapping parts of the code, doesn't mean there isn't a semantic conflict. [12:10] blaudden: a trivial example is a branch that adds an extra parameter to a function, and updates all the callsites to pass the new parameter. If you have a branch that adds another call to that function, then merge the first branch in, you probably won't get an automatic conflict. [12:10] blaudden: but the code won't work [12:11] blaudden: so you ought to run the test suite and/or review the diff and/or do some other QA to check that the result is sane. [12:12] spiv: yes, that example seems resonable [12:12] fredreichbier: Do you mean ftp or http, or some ungodly hybrid of the two? ;P [12:12] fredreichbier: not sure what you mean by "special" traffic. It is just regular ftp/http, it doesn't do anything crazy. [12:13] You can abuse the server with regular traffic if you have enough of it, though ;) [12:13] fredreichbier: http mostly uses Range requests, which can confuse Squid. It also might make quite a lot of requests in a short amount of time, especially with a knit repo. [12:14] spiv: In this example it's someone who changed part of the line, and in addition the order of that line and the line above has changed place in one of the branches. [12:14] Peng: spiv: i mean http-pulling and ftp-pushing. thanks your your answer ;) [12:15] fredreichbier: You should use bzr+ssh or at least sftp. ftp sucks. It's not encrypted. [12:15] Peng: i need access to the server to use bzr+ssh, and i don't have ,) [12:15] blaudden: please feel free to file a bug with that example if you think bzr ought to do better there, btw. [12:15] fredreichbier: What do you mean? [12:16] blaudden: our merges are generally very good, but there's always room for improvment [12:16] spiv: ok, I'll see if I can make something reproducible... [12:17] Peng: i thought i have to set up a bzr server (`bzr serve`?) on my server to use bzr+ssh, don't i? [12:17] fredreichbier: you just need bzr installed on the remote side [12:17] fredreichbier: For bzr+ssh, you need to have ssh access (duh), with bzr installed and in the PATH. [12:18] fredreichbier: bzr+ssh simply sshes in and runs "bzr serve --inet --directory=/". [12:18] fredreichbier: (Err, the process doesn't stay around like a normal "bzr serve". --inet causes it to close when you're done.) [12:19] Peng: (it also passes --allow-writes) [12:19] spiv: Oh, right. [12:20] thanks Peng ;) I have a shared hoster without ssh access, that's the problem. [12:20] Hi ! What are options to make partial revert of file ? [12:21] I see that sb deleted too much changing few lines ... [12:21] fredreichbier: Um. You just have FTP? Hopefully not telnet.. [12:21] matkor: 'bzr shelve' in the bzrtools plugin might help. [12:22] fredreichbier: You should tell your host that it's the 21st century now. [12:22] Odd_Bloke: tnx checking ... === thekorn_ is now known as thekor === thekor is now known as thekorn [12:23] matkor: you could also try "bzr cat -r 1234 FILE > FILE.older" then "meld FILE.older FILE" [12:23] (where 1234 is the revision number) [12:24] (Also depends a bit on what you mean by "revert" I guess...) [12:24] spiv: thanks and congrats on the results of your landings in 1.6 - network performance is transformed here [12:24] sabdfl: excellent! There's more to come. [12:27] pull is much faster - i'm close to the server in question so performance has never been an issue, but the change is noticeable nonetheless [12:32] Odd_Bloke: :-) thanks [12:55] sabdfl: thats great news [12:57] uh. i did a wrong highlight :/ [13:42] lifeless: yes, i bet it's really noticeable from .au! === _mathrick is now known as mathrick [14:03] hi! i have a problem where 'bzr merge --weave' resolves more than it should. in branch_1, i permute line 5 and 6. In branch_2, i replace line 5 by line 5.1 . 'bzr merge --weave' does not give a conflict; instead it outputs line 5.1, line 6, and line 5, in that order. [14:04] i would prefer to get a conflict. it is very dangerous to resolve like this without any human seeing it... [14:08] what is your position on this? does it look like a bug? shall i create a bug report? [14:13] sven_: off the top of my head I suspect that's working as intended. To the merge algorithm a changed line looks like a delete and an add, so it would think both sides deleted the line (so they agree, no conflict), and then they both add some lines. [14:14] sven_: still worth a bug report, though. It would be good to make the merge better than it already is. [14:14] spiv: thanks! sven_ is trying to help me figure out what could be the problems we experience [14:14] spiv, thanks. yes, i suspected it was something like that. i'll file a bug [14:14] spiv: how recomended is it wo use --weave ? [14:15] blaudden: still working on the ugly merge? [14:15] blaudden: after having done it 20 times I start to learn :) [14:15] mtaylor: ^ [14:15] hehe [14:16] we should give the bzr guys the two branches as the are now as a worlds-worst-merge test case :) [14:16] mtaylor: ok, I'll check it in.... [14:16] hehe [14:16] Is there a quick way of asking bzr "Show me a diff of branch X compared to what branch Y would look like if branch Z was merged into it", without making a temporary branch that merges Z into Y? [14:16] bzr merge --preview, maybe? [14:16] bzr merge --preview ? [14:17] It really only makes sense for two branches though [14:17] like, "show me a diff of what branch X would look like if branch Y were merged into it" [14:19] hmm [14:19] mpt: You could get a very rough approximation with interdiff, I guess. [14:21] mpt: someone could probably write a plugin that does that operation for you without a temporary branch (although making it not simply hold the full temporary branch in memory would non-trivial)... [14:21] (but possible, I think) [14:22] meh, I'll just make the temporary branch :-) [14:24] mpt: yeah, I think that's the pragmatic answer :) [14:24] sven_: hmm, I cannot reproduce your bad merge [14:25] sven_: That is, I get a conflict on those lines. [14:25] spiv, i'm using 1.3.1. trying with development version... [14:25] spiv, did you use --weave? [14:26] sven_: I did. And tried with --lca, too. [14:26] sven_: with bzr1.3.1 [14:26] sven_: http://pastebin.com/m5efc4c3 [14:27] sven_: (I get the same result with bzr 1.6b2 FWIW) [14:27] spiv: nice way to reproduce [14:28] blaudden: it was about as literal an interpretation of your scenario as I could think of :) [14:28] spiv: ok, we'll come up with something worse soon... [14:29] blaudden: :) [14:31] spiv, i reproduced it with this: http://pastebin.com/m48d554f9 [14:31] spiv, by 'permute', i meant change the order of the lines without modifying the contents... [14:32] sven_: Oh I see [14:33] sven_: right, I can see why it does that [14:34] spiv, ok, why? :-) [14:36] sven_: IIUC it correctly, because in branch_1 it sees a line removed between lines 4 & 6, and a line added after 6. In branch 2 it sees that same line removed between 4 & 6, and a new one added in the same place. [14:37] spiv, right. [14:37] sven_: So the removal is done by both sides, which is not considered a conflict (both sides took an identical action), so the only differences are adding two lines. The two lines are added in different, i.e. non-conflicting, places. [14:38] And there's no ambiguity about where to insert those lines (the lines adjacent to the insertions didn't change). So it doesn't consider it a conflict. [14:38] spiv, that makes sense from an algorithmic point of view. but still i think it is dangerous to merge this automatically. [14:38] sven_: all automatic merges are dangerous [14:39] Danger, Will Robinson! [14:40] Many merge algorithms will tend conflict on this sort of change, because they will consider both sides doing the exact same thing as a conflict, so the parallel removals would cause a conflict here. (Although typically a hard to understand one, conflicts involving removed lines always look confusing because the conflicting bit isn't visible). [14:42] We generally consider that aspect to be a feature though (instead of a confusing conflict, you get a merge with what both sides tried to do anyway), it's almost always what you want in our experience so far. Maybe it'd be worth adding a --cautious or something, though [14:42] sven_: but there's nothing magic about line-based merging algorithms that can guarantee the result makes sense. [14:43] spiv, of course not. [14:43] spiv, but 'bzr merge' gives a conflict on these lines. however, we cannot use that since we have a criss-cross merge which results in 383 conflicts. otoh, we cannot use 'bzr merge --weave' if it does not give a conflict in this case... [14:43] Even when there's clearly no overlap in the lines touched you can have semantic conflicts. You can't rely on the automated merge tool to give you something that makes sense. [14:43] spiv, i'm no merge algorithm expert, but could it be possible to give conflict if concurrent changes are "close" to each other (where "close" is a configurable number of lines)? [14:44] sven_: closeness doesn't matter [14:44] sven_: you can have incompatible changes in different files [14:45] sven_: i.e. one branch changes a function definition in one file to take a new parameter, another branch adds a new caller of that function using the old signature in a file the first branch doesn't touch. [14:46] sven_: any line-based merge will think there's no conflict there, as the changes aren't even in the same files. But the result is broken and needs conflict resolution. [14:49] sven_: Anyway, it might be possible to make --weave/--lca more cautious so that it gives a conflict in that case (without making it so conflict-prone that it's as bad as --merge3). So do file a bug, we want the tool to DWIM as much as possible. [14:50] spiv, ok, i'll file a bug [14:50] spiv, thanks for your help! [14:50] sven_: but it can never be perfect, unless you can supply it with an external merge tool that understands code rather than just lines of text :) [14:50] spiv, of course :-) === kiko-zzz is now known as kiko [14:52] sven_: another option is that maybe we could make merge report warnings when it's assuming that identical changes by both sides don't conflict, or similar, so humans have hints about what's perhaps most likely to need checking. [14:53] Although really it may as well just generate a conflict in that case... [14:54] sven_, blaudden: finally, even though --lca doesn't produce .BASE file (which unfortunately breaks extmerge, which is a bug in extmerge I think), you could still invoke something like meld manually with the THIS and OTHER file. [14:54] spiv: oh really. that seems nice [14:55] spiv: is that that same with --weave? [14:55] It's not as helpful as when there's a BASE file, but I'm fairly sure meld can still help when there's just two sides. [14:56] blaudden: right. --lca is basically always at least as good as --weave, btw. [14:57] (there's an obscure edge case it flat out can't handle yet which is why it isn't a total replacement, but in practice you might as well use --lca rather than --weave) [14:57] --lca is likely to become the default merge method in future. [14:58] spiv: so you suggest that I try with "merge --lca" or just "remerge --lca" ? [14:58] we should fix extmerge ... [14:59] I sent a patch through to the extmerge author a while back but it seems to have been ignored :( [14:59] (not for this problem, for something else) [14:59] pickscrape: maybe it ws a problem with merging? :-) [14:59] :) [15:00] It was to give the use the option of which merge tool to use if he doesn't have one configured [15:00] Instead of the current hard-coded check order [15:00] pickscrape: that sounds useful. Is your branch/patch on launchpad somewhere? [15:01] jam, thanks for all your help yesterday. After the reconcile (which finished overnight) the branch worked fine. [15:01] mpt: ah, glad to hear your problem is finally sorted out [15:01] It's not... Would I need a new project for that, or can I just upload it to my own area without attaching it to any project? [15:01] mpt: good, though you probably shouldn't have needed to wait for the full repository reconcile, unfortunately [15:01] the branch fix takes like 2sec [15:02] pickscrape: there's already a bzr-extmerge project on launchpad [15:02] Oh there is? [15:02] Am I able to just randomly register a new branch and push to it on that project? [15:02] pickscrape: you can just do "bzr push lp:///~USERNAME/bzr-extmerge/my-branch". Or just file a bug and attach a patch :) [15:03] Ah right... I'll give that a go :) [15:03] Er, "lp:~USERNAME/bzr-extmerge/my-branch" would be fine, actually. Not sure why I put the /// in there... [15:04] spiv: lp:~pickscrape/bzr-extmerge/choose-mergetool [15:05] pickscrape: thanks! [15:10] spiv, well, it's fixed in *that* branch. :-) There's another branch that's pretty much hosed because I tried to fix it by copying in an old copy of .bzr, when one of the merges I'd done since then was merging mainline [15:10] So now there's dozens of unknown files in the tree, some of which should be there, and some of which shouldn't [15:10] mpt: erm, wtf. let bzr manage .bzr, you manage your working tree [15:11] yeah, I know that now [15:11] mpt: why was it not obvious (how can we prevent other users doing the same thing) [15:13] lifeless, because that's what someone told me to do for the same problem last week [15:14] who? [15:15] * pickscrape just used the launchpad "Propose for merging" feature for the first time. [15:53] lifeless: when you have a broken dirstate (from a couple of older bugs) you can do "bzr co --lightweight" and then copy it back over [15:53] it was the only recovery tool that we had [15:53] I don't remember the specific problems === kiko is now known as kiko-phone [16:58] spiv, blaudden, i reported https://bugs.launchpad.net/bzr/+bug/238895 [16:58] Launchpad bug 238895 in bzr "'bzr merge --weave' merges unsafely when branch_1 has permuted lines and branch_2 has modified same line" [Undecided,New] [16:58] right === kiko-phone is now known as kiko [17:27] i'm using Bazaar to manage several projects with multiple users, and I'm running into an issue; when someone pushes a new branch to our repository, the permissions are set so that nobody else can write to it, and I have to go manually fix permissions so others can push to it. Is there any way to set a umask or something in the Bazaar configuration? [17:28] Also, I had to make everyone part of the same group and have them all default to that group to make the pushed branches have the correct group; however, this means I can't use multiple groups to manage permissions for different projects because whenever someone pushes, it always pushes as their default group === kiko is now known as kiko-fud === BasicPRO is now known as BasicOSX [18:11] sven_: I updatede your report with the result we get. === mw|out is now known as mw === bratsche is now known as bratsche_ [19:09] if i try to push over sftp, i get an Permision Error with ".bzr/README.tmp.1213121278.758560896.7992.40354623", but it creates the branch directory. what can i do? [19:15] lifeless: I've been looking at this issue with the KnitCorrupt error I talked about earlier. Isn't what I want essentially 'unpull'? [19:19] lifeless: And couldn't this be accomplished somehow by a pull --overwrite with an appropriate revision range? [19:41] Is Jan Hudec present here? === mw is now known as mw|food [21:32] please excuse me for asking again, but does anyone know of a project similar to bzr-svn for clear case? [21:32] Somebody told me that they had heard that somebody was using it internally at work, but they didn't know who. [21:33] I've been asking through different times of the day in the hopes that somebody would know something. === mw|food is now known as mw [21:37] tethridge: the most knowledgeable people are probably going to appear in 1-2 hours [21:38] mwhudson, I'll try again then. Do you have some usernames that I should look for? [21:47] tethridge, actually, you might even get a better response from mailing to the list [21:47] morning mwhudson [21:47] good idea [21:50] mwhudson: I wouldn't say that exactly. [21:50] I'm going to try both [21:50] jam and I are pretty knowledgeable. [21:51] It's just that idling here isn't what I'm paid for. [21:52] abentley, know anything about a clear case plugin? :-) [21:52] oh, and you get paid? [21:52] tethridge: No, I haven't heard of any such thing. [21:52] I'm getting screwed [21:52] tethridge: I work on the bazaar-launchpad team. [21:53] ah [21:53] just kidding [21:53] I'm not too up on the proprietary stuff. What is ClearCase again? [21:54] i.e. are you looking for an IDE plugin or an import/export plugin? [21:57] Hm. Why when I try bzr push lp:~matkor/wicd/experimental-matkor I get bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/%7Ematkor/wicd/experimental-matkor/.bzr/repository/lock): Transport operation not possible: http does not support mkdir ? Why bzr tries to use http ? [21:58] matkor: the launchpad plugin uses http if you haven't logged in [21:58] matkor: try " [21:58] bzr lp-login" [21:58] or something [22:00] jelmer: I see .. thanks a lot ! [22:37] oh man, i have some mailing list posts to write, it seems! [22:44] beuno: simpletal looks interesting [22:45] mwhudson, more than pylons + mako? [22:45] beuno: well, i dunno [22:45] as i said, i kind of hate non-tree templating [22:45] but if you're the one doing the work ... :) [22:46] beuno: what does pylons use for the http part? [22:47] (where turbogears uses cherrypy) [22:47] * beuno looks [22:49] mwhudson, it seems to use wsgi [22:50] uhh [22:50] is that actually an answer to the question? [22:50] i guess it is [22:50] well, yes and no :) [22:50] "paste" [22:50] i guess it means you can plug in ~whatever http server you like [22:51] By default Pylons uses paste's httpserver [22:51] which would be good because cherrypy makes the baby jesus cry [22:51] "You could stick to it or use something different, say one from CherryPy 3.0" [22:51] cherrypy 3 is ok, afaict [22:51] so if you still feel like you need pain on a daily basis, we can stick with it :p [22:52] the cool thing is that pylons has kid/genshi too [22:52] well [22:52] i am still skeptical that loggerhead benefits from _anything_ that's in the django/turbogears/pylons/zope category [22:53] really SimpleHTTPServer + some templating engine should be enough [22:53] (for the plugin version, not what we do on lp) [22:53] yeah, SimpleHTTPServer would be the best way to go [22:54] i guess we may want slightly more sophistication, because we do want to set http headers occasionally [22:54] so maybe wsgi would be an appropriate interface to aim for [22:56] mwhudson, I believe the dependency issue for ZPT is enough reason to look into other options sooner than later. What do you think? [22:57] beuno: i think if simpletal can work, then that's a small enough dependency [22:57] mwhudson, I'll check and see what changes have to be made [22:58] beuno: *i* already have too many half-finished not-really-sure-if-it's-a-good-idea loggerhead branches around [22:58] beuno: i don't want you to start collecting them too :) [22:58] in fact, I'll do it now, while I wait for lifeless to wake up and I can complain about bzr-search [22:58] heh [22:58] ok, so you want the other 2 patches first :) [22:59] well, let's see about simpletal [22:59] the ZPT thing just itches too much, at least to move it into trunk [22:59] on first blush, it seems like the changes required would be fairly minor [23:00] ok, so I'll take a shot at simpletal now, and, if it's simple enough, I'll re-send the last patch with simpletal, and the other 2 [23:00] seem ok? [23:00] i will give turbogears some credit, it nicely encourages loose coupling [23:00] beuno: +1 [23:01] if nothing else, i think refactoring from the zpt templates to something else might be easier than refactoring the kid templates [23:01] because i think i cleaned up the templates a bit when i rewrote them [23:01] absolutely, I've been doing all my work based on your zpt branch [23:02] kid is a bit icky, but it may be the cleanup too [23:02] either way, there may be some portions of the zpt patch you may want to look at, the non-template bits [23:03] phone brb [23:11] ah, lifeless, finally :) good morning [23:20] hmm, post-push hooks don't appear to be working when creating a new branch [23:25] beuno: ok, back [23:26] mwhudson, I can't find a clear way to use simpletal with TG... :/ [23:27] documentation on simpletal is a bit... "lacky" [23:27] well, i guess you need to hackerize the turbozpt package that zpt-templating includes [23:29] I can't get TG to use simpletal at all [23:29] and google isn't really being helpful [23:29] let me have a go [23:29] many people saying they want to move to, but none that actually did [23:30] i see [23:32] argh, simpletal is only available for 2.4... [23:32] packaged in Ubuntu at least [23:33] ? [23:33] mwh@grond:~/canonical/repos/loggerhead/trunk$ python2.5 -c 'import simpletal' [23:33] mwh@grond:~/canonical/repos/loggerhead/trunk$ [23:33] ah, no, ignore me [23:33] I really have to do a fresh install [23:34] anyway, there doesn't seem to be integration into TG, or am I missing something? [23:34] no, there probably isn't [23:34] but that's ok, we can write it [23:36] is it still worth it if we have to? [23:36] i really don't think it will take very long [23:36] anybody heard of a clearcase plugin similar to bzr-svn? [23:36] last time I'm asking [23:36] :-) [23:36] tethridge: I don't think there is one [23:37] I was told that supposedly somebody was working on one for internal use at their company [23:37] don't know who though [23:37] mwhudson, alright, I'm not very familiar with that area, but I'll give it a try [23:37] beuno: let me try first :) [23:38] yay! :) [23:38] beuno: is the latest version of the zpt branch on launchpad somewhere? [23:38] tethridge: maybe someone on the list will know [23:38] I'm going to try that [23:39] mwhudson, I have 3 zpt branches. 1) is that patch I sent to the list, which I can upload if you want. 2) is zpt+ajax+cleanups, 3) is list patch + cleaner URLs [23:40] beuno: ok, i'll use the bundle [23:41] bundles are awesome