/srv/irclogs.ubuntu.com/2008/06/10/#bzr.txt

LeonidasI 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:03
LeonidasI 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
Leonidass/plean/plan/00:04
PengLeonidas: bzr send?00:05
LeonidasFurthermore, I'd like to merge in the latest trunk changes since branching, but they should not appear in my patch.00:05
PengLeonidas: bzr send?00:06
LeonidasPeng: thanks. I'll see whether this is what I want.00:06
james_wLeonidas: there is also "bzr diff -r ancestor:URL"00:06
PengLeonidas: 'bzr send' produces a bundle file, which by default includes a diff and the (base64-encoded) meta data.00:07
lifelesspoolie: did you ring?00:09
LeonidasPeng: 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:10
Leonidasbzr send --output=- is nice, now compine it with no-bundle00:11
Leonidashuh? Am I missing something? bzr send --no-patch --output=- works00:13
Leonidasbzr send --no-bundle --output=- does not.00:13
Leonidasbzr send --output=- does work and produces both patch & bundle.00:14
spivLeonidas: I'm guessing "bzr send --no-bundle" is failing due to a lack of a public location for your branch.00:16
spivLeonidas: if you just want a diff, you're better off using "bzr diff" directly, as james_w suggested.00:16
Leonidasspiv: 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:17
spivLeonidas: 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
Leonidasah, that explains a lot!00:18
poolielifeless: no00:18
spivi.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
Leonidasspiv: ok, bzr diff -r ancestor:... works properly. Fine.00:19
LeonidasThanks, also to james_w00:20
LeonidasI wonder what happens if I merge trunk :)00:20
Leonidasok, works. Fine00:24
igclifeless: I'm planning to tweak stacked branches today00:37
igc1. move branch-location into branch.conf00:37
igc2. rename shallow options and messages to stacked00:37
igc3. ????00:37
igclifeless: is that ok?00:37
poolieigc, is the name really just branch-location? it needs a less ambiguous name...00:51
igcpoolie: no. I was being lazy because I knew that lifeless knew what I meant00:53
poolieok :)00:53
abentleyjelmer: around?01:12
jelmerabentley, hi01:13
jelmerigc: 4. profit ? ;-)01:13
abentleyjelmer: Can I ask some questions about samba?01:13
jelmerabentley: sure01:13
Pengjelmer: How stable is bzr-svn's 0.4 branch at the moment?01:15
jelmerPeng: stable01:15
Pengjelmer: So it's okay to use instead of 0.4.10?01:15
abentleyjelmer: The main question is, is Samba suitable for sharing to linux clients?  I.e. can it preserve users, modes, etc?01:15
jelmerPeng, at the moment, yes01:15
abentleyI've only used it when the primary clients were win32.01:16
Pengjelmer: Are you planning to break it before the next release? :P01:16
jelmerabentley: Yes, when you're using a recent version of Samba and CIFS VFS (mount -t cifs rather than mount -t smbfs)01:16
jelmerPeng: no plans :-) but not guarantees either..01:16
abentleyjelmer: cool, thanks.01:17
jelmerabentley: It's more POSIX compliant than NFS3 and even more compliant than NFS4 in a lot of cases01:17
PengMaybe I'll keep using 0.4.10 as long as it works with bzr.dev. If it still does.01:17
abentleyjelmer: great.01:18
PengYeah, it does.01:19
jelmerPeng: 0.4.10 is broken with bzr.dev (push for example)01:20
PengOh.01:21
PengBroken as in traceback or corruption?01:21
jelmertraceback01:25
jelmercorruption never happens because of mismatching versions01:25
=== mw is now known as mw|out
lifelesspoolie: found the plugin ? :P01:58
lifelessabentley: is branch.conf meant to be human edited or bzr edited?01:59
abentleylifeless: Yes.02:00
lifelesshmm02:00
abentleySame as bazaar.conf.02:00
lifelesswhat settings from it are copied on clone/sprout?02:01
abentleyI can't think of any values that are copied.02:02
lifelessok02:02
=== kiko is now known as kiko-zzz
lifelessigc: go ahead02:02
abentleylifeless: It contains values like parent location, push location, bind location.02:03
igclifeless: thanks02:03
igclifeless: summary email on its way now too fwiw02:04
lifelessigc: thanks02:09
lifelesspoolie: call?02:10
mwhudsonbeuno: are you still up?02:21
ricardokirknerhi 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
ricardokirknerwhat 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:22
beunomwhudson, yeap02:25
mwhudsonbeuno: cool02:25
mwhudsonbeuno: so my understanding, roughly speaking is that you have done four things to loggerhead recently:02:25
mwhudson1) remove the use of deprecated methods02:25
mwhudson2) switched to using zpts02:25
mwhudson3) some ajax-y stuff for revision views02:26
mwhudson4) use cleaner urls02:26
mwhudsonbeuno: would that be a fair summary?02:26
beunomwhudson, generally, yes. Although 3) required generating a new controller from scratch for diff, and changing how the revision view is generated02:28
mwhudsonok02:28
mwhudsonso what i would _like_ is to have one branch for each of these things :)02:28
mwhudson(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
beunoah, good, was about to say that  :)02:29
beunoand, well, 4) off 2) also, since it's mostly templating work02:29
mwhudsonsure02:29
beunook, I can do that, now, where could I find a good VCS to help me with that...02:30
mwhudsonheh heh02:30
mwhudsonbeuno: i'd like to review the branches for 1 and 2 today if i can02:31
beunomwhudson, oh, sure. I'll get right on it.   1) would be with KID than?02:32
beuno*then02:32
mwhudsonbeuno: yeah, i think so, the changes are entirely independent of the templating stuff02:32
mwhudsonand this branch is more urgent02:32
beunoyes, I see where you're going. I'll push em to LP and ping you02:33
mwhudsonthanks a lot02:33
mwhudsonyou could even send merge requests to the bazaar list :)02:34
beunosure, whatever is better. Will BB get confused if I send with [MERGE]?02:35
mwhudsonyeah, i guess [loggerhead/MERGE]02:37
mwhudsonhmm, is there anyway of running bzr viz in a repository?02:41
mwhudson(i.e. with multiple heads)02:41
mwhudsonbeuno: any idea how long this is going to take?  i.e. a few minutes, an hour, tomorrow?02:45
mwhudsonbeuno: don't want to pressure, just want to know02:45
beunomwhudson, I'll send 1) in a few minutes02:45
mwhudsoncool02:46
beunoand 2) by the end of the day02:46
beunoas I see it, 3) and 4) stack up on top of 1) and 2)02:46
fullermdYou can run viz on multiple branches...02:48
mwhudsonfullermd: you can?02:48
mwhudsonbeuno: isn't it rather late for you already? :)02:49
mwhudsonbeuno: but sounds good02:49
* mwhudson heads out to buy some chocolate to fuel the review02:49
beunomwhudson, I've seemed to moved to new zeland time zone these past weeks  :)02:49
mwhudsonbeuno: heh02:49
fullermdYah, just hand it a couple on the command line.02:50
fullermd(I haven't really used it, but I've done it)02:50
mwhudsonfullermd: maybe my bzr-gtk is too old, it doesn't work for me02:51
fullermdNEWS says it was on 0.94.002:52
mwhudson0.93.002:52
mwhudsonoh well02:52
lifelessbeuno: glad you like it02:54
beunolifeless, I may even attempt to get it working within loggerhead, when I run into some free time02:56
beunoa pre-alpha version of it will be *way* better than what there is today  :)02:57
lifeless:P02:59
lifelesssurely not ?02:59
beunomwhudson, we sould really disable full text indexing by default03:00
beunoit makes my core2duo 1.5gb of ram cry for a good hour on bzr.dev03:01
lifelessholy crap03:01
lifelessare you sure it only indexes the commit messages?03:01
beunoI promise  :)03:01
lifelesshow the hell can you spend more than a few seconds indexing bzr.dev's commit messages.03:01
lifelessI reckon you are missing a lock_read() or something similarly inane03:02
beunoI'd rather invest time in getting it to work with something new (bzr-search, for example) than fixing the horrid current sqlite thingie03:02
lifelessk03:03
lifeless(I'm sure the underpinnings are not that different though)03:03
lifelesspoolie: 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:03
mwhudsonlifeless: i think i already explained that loggerhead's text indexer is worse than you can possibly imagine, didn't i?03:05
mwhudsoni wasn't kidding03:05
* igc lunch03:07
beunomwhudson, patch for 1) sent off to the list03:07
lifelessmwhudson: I thought my imagination had more power03:08
beunomwhudson, 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 properly03:09
mwhudsonbeuno: ok, have fun03:10
beunolifeless, http://bazaar.launchpad.net/~loggerhead-team/loggerhead/trunk/annotate/launchpad%40pqm.canonical.com-20080418101647-2k1lv1l0edudd191?file_id=textindex.py-20061219035715-norgqx0pl0hxdax8-103:11
beunofor your amusement  :)03:11
beunomwhudson, 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:15
mwhudsonbeuno: right, i'm not expecting to merge that one :)03:16
fbondjelmer: thanks03:16
* beuno is off03:16
lifelessbeuno: bye03:18
lifelessholy cow03:21
lifelessthats scary shit03:21
lifelessI mean, might want to tweak the term generator in bzr-search to combine robert's -> roberts rather than robert's -> robert, s03:22
lifelessbut thats stemming which I punted on03:22
synicis there an IRC bot out there that'll watch bzr repos for changes?03:37
lifelessI believe so03:39
mwhudsonso bookmarks and lp: urls don't really get on04:11
bob2yay for stacking04:13
poolielifeless: re that test - i have a patch that addresses it but there was some nontrivial review pushback, i need to revisit it04:29
poolieuh04:30
pooliei 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
pooliewhich i think will make those tests clearer and not timing dependent04:30
pooliebut the increment was not compelling by itself04:30
lifelesspoolie: k04:44
beunoback05:18
beunomwhudson_, so, 2) then?05:18
mwhudson_beuno: yes please :)05:20
beunoon it05:21
jmlhey guys05:35
jmlwhen someone deletes a directory in bazaar and the directory has pyc files, I get conflicst05:35
lifelessyes05:35
lifelessknown issue, no good answer so far05:36
=== lamont` is now known as lamont
jmllifeless: ok. cool.05:40
lifeless(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 added05:42
bob2need to somehow consider the former to be...precious ;)05:43
lifelessor the latter to be junk06:00
lifelessbut this has complexity impact06:01
beunomwhudson_, do you want the 2) patch relative to 1) or trunk?06:12
mwhudson_relative to 1) please06:12
mwhudson_beuno: i06:13
beunocoming up06:13
mwhudson_'m not going to be working for much longer today, btw06:13
mwhudson_i'll look at it first thing tomorrow06:13
beunooh, but it's only 3k lines...  :p06:13
mwhudson_:)06:14
=== mwhudson_ is now known as mwhudson
mwhudsoni know, i'm lame06:14
beunomwhudson, sent06:18
beunoI'll prepare the other 2 tomorrow06:19
pooliebeuno, hi06:37
beunohey there poolie06:37
pooliebeuno: what a circus :-}06:41
beunopoolie, heh, the past weeks have been pretty active  :)06:42
lifelessabentley: lol, I have this image of bb running around going 'I'm freaking out mAAAAAAN'07:02
beunohahha, I was just thinking that. With ian's patch in it's hand07:03
abentleylifeless: hehe07:03
fdvHi. Anybody know what 'KnitCorrupt: Knit <bzrlib.knit._PackAccess object at 0x870fc6c> corrupt: incorrect number of lines 221 != 152 for version {svn-v3-single1-dHJ1bmsvbWFpbg..:6226825f-cf0a-0410-9073-f4040cba8958:trunk%2Fmain:116353}' means?07:33
beunoI'm off to bed. G'night everyone07:37
igcnight beuno07:40
lifelessfdv: my first thought would be a symlink with newlines in it in the source svn repo07:42
fdvlifeless: ah07:43
lifelessbecause I *think* bzr-svn generates its own knit hunks or something like that07:43
fdvthat revision had broken symlinks, but I tried removing those nodes07:43
lifelessjelmer: ^ any thoughts07:43
fdvwhat are knit hunks, really?07:44
spivfdv: records containing the lines added in a revision, basically.07:46
fdvok..07:47
spivUsually 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
fdvright07:47
spivBasically, low-level guts :)07:48
fdvI removed all the nodes containing these symlink edits from the dump file and repopulated the repo07:48
fdvand then tried pulling it again07:48
abentleyigc: Do you have a clear idea what you need to do to generate a mergeable directive?07:48
lifelessfdv: did you clear the output repository?07:49
lifelessfdv: or remove the corrupt revisions copied into it?07:49
fdvlifeless: absolutely :)07:49
igcabentley: use bzr.dev as the submit_branch07:49
fdvlifeless: I couldn't remove the whole revisions07:49
fdvonly the nodes affected07:49
igcabentley: I don't get hope to get the right preview diff though ...07:50
abentleyigc: And you can use -r to specify the cherrypick you want07:50
igcso -rancestor:../foo.bar?07:50
lifelessigc: bzr send -r thread:..-107:50
lifelessigc: you should never need to touch -rancestor with send and a loom07:50
igclifeless: I've exported the loom07:50
lifelessigc: oh, don't07:51
lifelessigc: :)07:51
lifelessigc: I send all my patches for loom-branches direct from the loom07:51
igclifeless: I didn't know better and smart people told me to :-)07:51
lifelessAIUI export-loom exists solely for use with launchpads internal review system which is not loom aware07:51
lifelessBB doesn't have the same flaws07:52
abentleylifeless: Not true, also for dealing with PQM07:52
lifelessabentley: oh, I guess. I do all my merges via an integration branch, so it never occured to me07:52
lifelessabentley: (bzr pull $source --overwrite && push --overwrite && pqm-submit -m '...')07:52
abentleyigc: Anyhow, are you able to get a reasonable preview diff?07:54
igcjust trying now07:54
igcabentley: in the case of StackableBranch, not by using -rancestor:../Development1 :-(07:57
igcI guess the preview is the least important bit07:58
igcbut it annoys people reviewing in the mailer07:58
abentleyigc: The preview reflects the merge you are requesting.07:58
abentleyIf it's wrong, your request is wrong.07:58
igcabentley: the preview contains the right changes vs bzr.dev07:59
igcbut it's more than I wanted in the preview because it includes the changes from 'threads' below07:59
lifelessigc: honestly, do the BB submissions direct from the loom07:59
lifelessigc: with 'bzr send -r thread:..-1' from within each thread.08:00
lifelessigc: it will JustWork08:00
lifeless(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 tsend08:00
igclifeless: understood. Why the ..-1 ?08:01
lifelessexactly08:01
lifelesscurrent tip08:01
abentleyigc: a -r spec generally specifies the tip.08:01
lifelessigc: 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
abentleySo -r thread: specifies the tip to be the tip of the previous thread, which is wrong.08:02
igcok08:02
abentleyYou can probably specify "-r thread:.." but I haven't tried that.08:02
igcI try sending from the loom now08:03
abentleyAlternatively, 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
gourwill loom become part of bzr?08:05
lifelessgour: do you mean 'will it be part of the tarball' ?08:05
lifelessgour: if so, probably, we plan to roll popular plugins into the release tarballs.08:06
gourlifeless: yes. otoh, 'loom' is not listed at http://bazaar-vcs.org/BzrPlugins or i'm blind08:06
fdvlifeless: 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
lifelessfdv: yes08:08
fdvah08:08
lifelessfdv: I would try importing to a fresh ('bzr init --rich-root-packs') tree08:08
fdvcrap08:09
fdvthat's three more days :p08:09
lifelesswell08:09
fdvbut if that's what it takes.. :)08:09
lifelessyou have corrupt content in your target repo08:09
lifelessremoving knit references is not the simplest thing to explain08:09
fdvI can't roll it back somehow?08:09
fdvthat's all right08:09
fdvif it's the only feasible solution, I'll start from scratch08:09
lifelesswe dont have an automated UI for removing single revisions at the moment08:10
fdvI think I have a corner case here :)08:10
lifelessoh, there is need for it08:10
lifelessit needs someone to write a ui for it using the low level primitives08:10
fdvI see08:11
fdvare there some docs anywhere? :)08:11
lifelessif you have a pack repository, pydoc bzrlib.repofmt.pack_repo08:11
lifeless(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
abentleyigc: 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
igcok08:12
lifelessfor a knit repo its 'remove low level index entries' by doing the same on a per file-id basis08:12
goursvn folks released svn-1.5rc10 :-/ good luck to those living with such software08:13
fdvlifeless: ok, I'll try to have a look. Don't have too high hopes, thouhg :)08:13
gour...requiring 10rcs08:14
lifelessfdv: don't stress about it :P08:16
fdvno, but it'd be interesting to have a look08:16
=== mneptok_ is now known as mneptok
vilabeuno: 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
lifelesslater all, dinner time08:28
igcok, I think I've stopped BB freaking out now. Let's hope so.08:33
igcnight all08:41
gournight08:41
pooliecheerio igc08:44
=== 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/
poolie1.6b2 is out08:44
toyto1hello guys, does bzr can be integrated with trac?08:55
toyto1guys is launchpad.net seems to be like trac?09:01
Pengtoyto1: There's a bzr-trac thingy, but I don't think it's 100%.09:08
Pengtoyto1: And yeah, Launchpad has some similarities to Trac. No wiki though.09:08
gourseeing that trac-0.11 is still no out...hmm09:10
poolienight all09:11
gourtoyto1: have you seen http://www.redmine.org/ ?09:13
toyto1Peng: ah i see:)09:13
toyto1gour: what's that? let me check09:13
toyto1Peng: I didn't find how-to their with bzr-trac for integrating :(09:14
gourtoyto1: it's what trac-2.0 will maybe become. it's RoR app, but still09:14
toyto1gour: so you mean is that redmine is more advance than trac as of now?09:16
gourtoyto1: yep, more support for SCM, multi-project etc. however, we choose roundup (http://roundup.sourceforge.net/) - no need for wiki09:16
toyto1gour: I see thanks for the info :)09:22
gour;)09:22
mtaylorhelp!09:32
mtaylorbzr: ERROR: Revision {foo@bar-20080606164431-373v96de5ba508yi} not present in "revisions.kndx".09:32
weigon_... at a bzr branch ...09:32
james_wmtaylor: https://bugs.edge.launchpad.net/bzr/+bug/23227009:37
ubottuLaunchpad bug 232270 in bzr "Cannot checkout -- KnitCorrupt: attempt to add line-delta in non-delta knit" [Undecided,New]09:37
mtaylorjames_w: ah09:37
james_ware you using a smart protocol for whatever operation you are doing?09:37
mtaylorfor that one.09:38
mtaylorit's possible someone used sftp or something though09:38
weigon_james_w: it is all bzr+ssh://09:38
weigon_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 tree09:39
weigon_only if I use a tree that is "before" that rev-id the branch/pull/log/... all fail09:40
james_wif you use sftp:// it should work.09:40
weigon_james_w: it does09:41
weigon_and interestingly a $ bzr log --show-ids sftp:// shows me the {foo@bar-20080606164431-373v96de5ba508yi}09:41
james_whang on, are you two working together on this?09:41
weigon_james_w: yep :)09:41
james_wah :-)09:42
james_wok, 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:42
james_wa full traceback of the error would be very useful, you can find one in your ~/.bzr.log.09:43
james_wyou can edit out the details, but the traceback would be really helpful.09:43
mtaylorso, there still isn't a pack-based format that you can upgrade to from dirstate-with-subtrees ?09:43
james_wyou should be able to upgrade to --rich-root-pack if you don't actually have any subtrees I believe.09:44
weigon_james_w: http://pastie.org/21208409:45
mtaylorjames_w: we don't _think_ we are using any (at least, we aren't on purpose)09:45
weigon_this is the one for bzr log failing09:45
mtaylorjames_w: but upgrade --rich-root-pack still b0rks09:46
james_wweigon_: 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:46
weigon_sure09:47
james_wmtaylor: is it an error about this problematic revision, or something unrelated?09:47
mtaylorjames_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:47
james_wheh :-)09:48
james_wsounds like it would be worth a separate error report then.09:48
mtayloryay! two bugs in one swipe!09:49
weigon_james_w: http://pastie.org/21208709:49
james_wthanks team.09:50
james_wI'll put those in the bug report if you don't mind, as we don't have good info there yet09:50
weigon_shall I add it so you have a reference for more info ?09:52
james_wI think there may be enough there to know what is going on. I'm no expert in this area though.09:53
weigon_k09:53
james_wthere's also a public branch there that is reported to exhibit the problem, so it can always be reproduced by the developer.09:53
james_wthanks for your help.09:53
weigon_the sftp:// idea is good enough for now09:54
weigon_thanks09:54
weigon_james_w: the story goes on with $ bzr merge ... let me paste it09:57
weigon_james_w: http://pastie.org/21208909:59
james_wok, do you understand what the error message is saying?10:01
weigon_james_w: it tries to find the common ancestor where the two trees are related and can't find it10:11
james_wyup, are these two trees supposed to be related?10:12
weigon_this is the same tree that has the other problems :)10:12
weigon_they are related just a few revs before the unknown rev-id10:12
weigon_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 out10:13
awilkinsgour: The SVN team have always been cautious about version numbers ; I remember how long it took them to get to 1.010:22
=== mwhudson__ is now known as mwhudson
blauddenHi, 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:13
blauddenHave tried to remerge with "bzr remerge --weave <conflicted files>" 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.11:16
=== cprov is now known as cprov-lunch
spivblaudden: try --lca instead of --weave maybe11:56
spivblaudden: I'm not sure what you mean by "some changes will be lost"11:56
blauddenspiv: yes, I tried --lca also11:57
blauddenspiv: 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.11:59
fredreichbierwhen i use bzr with http+ftp, does that create special traffic or abuse the sever?^^12:03
spivblaudden: that's always a risk with an automatic merge tool12:08
blauddenspiv: :)12:09
spivblaudden: 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:09
spivblaudden: 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
spivblaudden: but the code won't work12:10
spivblaudden: 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:11
blauddenspiv: yes, that example seems resonable12:12
Pengfredreichbier: Do you mean ftp or http, or some ungodly hybrid of the two? ;P12:12
spivfredreichbier: not sure what you mean by "special" traffic.  It is just regular ftp/http, it doesn't do anything crazy.12:12
spivYou can abuse the server with regular traffic if you have enough of it, though ;)12:13
Pengfredreichbier: 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:13
blauddenspiv: 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
fredreichbierPeng: spiv: i mean http-pulling and ftp-pushing. thanks your your answer ;)12:14
Pengfredreichbier: You should use bzr+ssh or at least sftp. ftp sucks. It's not encrypted.12:15
fredreichbierPeng: i need access to the server to use bzr+ssh, and i don't have ,)12:15
spivblaudden: please feel free to file a bug with that example if you think bzr ought to do better there, btw.12:15
Pengfredreichbier: What do you mean?12:15
spivblaudden: our merges are generally very good, but there's always room for improvment12:16
blauddenspiv: ok, I'll see if I can make something reproducible...12:16
fredreichbierPeng: i thought i have to set up a bzr server (`bzr serve`?) on my server to use bzr+ssh, don't i?12:17
spivfredreichbier: you just need bzr installed on the remote side12:17
Pengfredreichbier: For bzr+ssh, you need to have ssh access (duh), with bzr installed and in the PATH.12:17
Pengfredreichbier: bzr+ssh simply sshes in and runs "bzr serve --inet --directory=/".12:18
Pengfredreichbier: (Err, the process doesn't stay around like a normal "bzr serve". --inet causes it to close when you're done.)12:18
spivPeng: (it also passes --allow-writes)12:19
Pengspiv: Oh, right.12:19
fredreichbierthanks Peng ;) I have a shared hoster without ssh access, that's the problem.12:20
matkorHi ! What are options to make partial revert of file ?12:20
matkorI see that sb deleted too much changing few lines ...12:21
Pengfredreichbier: Um. You just have FTP? Hopefully not telnet..12:21
Odd_Blokematkor: 'bzr shelve' in the bzrtools plugin might help.12:21
Pengfredreichbier: You should tell your host that it's the 21st century now.12:22
matkorOdd_Bloke: tnx checking ...12:22
=== thekorn_ is now known as thekor
=== thekor is now known as thekorn
spivmatkor: you could also try "bzr cat -r 1234 FILE > FILE.older" then "meld FILE.older FILE"12:23
spiv(where 1234 is the revision number)12:23
spiv(Also depends a bit on what you mean by "revert" I guess...)12:24
sabdflspiv: thanks and congrats on the results of your landings in 1.6 - network performance is transformed here12:24
spivsabdfl: excellent!  There's more to come.12:24
sabdflpull is much faster - i'm close to the server in question so performance has never been an issue, but the change is noticeable nonetheless12:27
fredreichbierOdd_Bloke: :-) thanks12:32
lifelesssabdfl: thats great news12:55
fredreichbieruh. i did a wrong highlight :/12:57
sabdfllifeless: yes, i bet it's really noticeable from .au!13:42
=== _mathrick is now known as mathrick
sven_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:03
sven_i would prefer to get a conflict. it is very dangerous to resolve like this without any human seeing it...14:04
sven_what is your position on this? does it look like a bug? shall i create a bug report?14:08
spivsven_: 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:13
spivsven_: still worth a bug report, though.  It would be good to make the merge better than it already is.14:14
blauddenspiv: thanks! sven_ is trying to help me figure out what could be the problems we experience14:14
sven_spiv, thanks. yes, i suspected it was something like that. i'll file a bug14:14
blauddenspiv: how recomended is it wo use --weave ?14:14
mtaylorblaudden: still working on the ugly merge?14:15
blauddenblaudden: after having done it 20 times I start to learn :)14:15
blauddenmtaylor: ^14:15
mtaylorhehe14:15
mtaylorwe should give the bzr guys the two branches as the are now as a worlds-worst-merge test case :)14:16
blauddenmtaylor: ok, I'll check it in....14:16
mtaylorhehe14:16
mptIs 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
radixbzr merge --preview, maybe?14:16
blauddenbzr merge --preview ?14:16
radixIt really only makes sense for two branches though14:17
radixlike, "show me a diff of what branch X would look like if branch Y were merged into it"14:17
mpthmm14:19
spivmpt: You could get a very rough approximation with interdiff, I guess.14:19
spivmpt: 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
spiv(but possible, I think)14:21
mptmeh, I'll just make the temporary branch :-)14:22
spivmpt: yeah, I think that's the pragmatic answer :)14:24
spivsven_: hmm, I cannot reproduce your bad merge14:24
spivsven_: That is, I get a conflict on those lines.14:25
sven_spiv, i'm using 1.3.1. trying with development version...14:25
sven_spiv, did you use --weave?14:25
spivsven_: I did.  And tried with --lca, too.14:26
spivsven_: with bzr1.3.114:26
spivsven_: http://pastebin.com/m5efc4c314:26
spivsven_: (I get the same result with bzr 1.6b2 FWIW)14:27
blauddenspiv: nice way to reproduce14:27
spivblaudden: it was about as literal an interpretation of your scenario as I could think of :)14:28
blauddenspiv: ok, we'll come up with something worse soon...14:28
spivblaudden: :)14:29
sven_spiv, i reproduced it with this: http://pastebin.com/m48d554f914:31
sven_spiv, by 'permute', i meant change the order of the lines without modifying the contents...14:31
spivsven_: Oh I see14:32
spivsven_: right, I can see why it does that14:33
sven_spiv, ok, why? :-)14:34
spivsven_: 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:36
sven_spiv, right.14:37
spivsven_: 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:37
spivAnd 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
sven_spiv, that makes sense from an algorithmic point of view. but still i think it is dangerous to merge this automatically.14:38
spivsven_: all automatic merges are dangerous14:38
Odd_BlokeDanger, Will Robinson!14:39
spivMany 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:40
spivWe 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, though14:42
spivsven_: but there's nothing magic about line-based merging algorithms that can guarantee the result makes sense.14:42
sven_spiv, of course not.14:43
sven_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
spivEven 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
sven_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:43
spivsven_: closeness doesn't matter14:44
spivsven_: you can have incompatible changes in different files14:44
spivsven_: 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:45
spivsven_: 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:46
spivsven_: 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:49
sven_spiv, ok, i'll file a bug14:50
sven_spiv, thanks for your help!14:50
spivsven_: 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
sven_spiv, of course :-)14:50
=== kiko-zzz is now known as kiko
spivsven_: 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:52
spivAlthough really it may as well just generate a conflict in that case...14:53
spivsven_, 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
blauddenspiv: oh really. that seems nice14:54
blauddenspiv: is that that same with --weave?14:55
spivIt'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:55
spivblaudden: right.  --lca is basically always at least as good as --weave, btw.14:56
spiv(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
spiv--lca is likely to become the default merge method in future.14:57
blauddenspiv: so you suggest that I try with "merge --lca" or just "remerge --lca" ?14:58
blauddenwe should fix extmerge ...14:58
pickscrapeI sent a patch through to the extmerge author a while back but it seems to have been ignored :(14:59
pickscrape(not for this problem, for something else)14:59
blauddenpickscrape: maybe it ws a problem with merging? :-)14:59
pickscrape:)14:59
pickscrapeIt was to give the use the option of which merge tool to use if he doesn't have one configured15:00
pickscrapeInstead of the current hard-coded check order15:00
spivpickscrape: that sounds useful.  Is your branch/patch on launchpad somewhere?15:00
mptjam, thanks for all your help yesterday. After the reconcile (which finished overnight) the branch worked fine.15:01
spivmpt: ah, glad to hear your problem is finally sorted out15:01
pickscrapeIt'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
jammpt: good, though you probably shouldn't have needed to wait for the full repository reconcile, unfortunately15:01
jamthe branch fix takes like 2sec15:01
spivpickscrape: there's already a bzr-extmerge project on launchpad15:02
pickscrapeOh there is?15:02
pickscrapeAm I able to just randomly register a new branch and push to it on that project?15:02
spivpickscrape: you can just do "bzr push lp:///~USERNAME/bzr-extmerge/my-branch".  Or just file a bug and attach a patch :)15:02
pickscrapeAh right... I'll give that a go :)15:03
spivEr, "lp:~USERNAME/bzr-extmerge/my-branch" would be fine, actually.  Not sure why I put the /// in there...15:03
pickscrapespiv: lp:~pickscrape/bzr-extmerge/choose-mergetool15:04
spivpickscrape: thanks!15:05
mptspiv, 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 mainline15:10
mptSo now there's dozens of unknown files in the tree, some of which should be there, and some of which shouldn't15:10
lifelessmpt: erm, wtf. let bzr manage .bzr, you manage your working tree15:10
mptyeah, I know that now15:11
lifelessmpt: why was it not obvious (how can we prevent other users doing the same thing)15:11
mptlifeless, because that's what someone told me to do for the same problem last week15:13
lifelesswho?15:14
* pickscrape just used the launchpad "Propose for merging" feature for the first time.15:15
jamlifeless: when you have a broken dirstate (from a couple of older bugs) you can do "bzr co --lightweight" and then copy it back over15:53
jamit was the only recovery tool that we had15:53
jamI don't remember the specific problems15:53
=== kiko is now known as kiko-phone
sven_spiv, blaudden, i reported https://bugs.launchpad.net/bzr/+bug/23889516:58
ubottuLaunchpad 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
sven_right16:58
=== kiko-phone is now known as kiko
whitelynxi'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:27
whitelynxAlso, 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 group17:28
=== kiko is now known as kiko-fud
=== BasicPRO is now known as BasicOSX
blauddensven_: I updatede your report with the result we get.18:11
=== mw|out is now known as mw
=== bratsche is now known as bratsche_
fredreichbierif 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:09
fdvlifeless: I've been looking at this issue with the KnitCorrupt error I talked about earlier. Isn't what I want essentially 'unpull'?19:15
fdvlifeless: And couldn't this be accomplished somehow by a pull --overwrite with an appropriate revision range?19:19
MvGIs Jan Hudec present here?19:41
=== mw is now known as mw|food
tethridgeplease excuse me for asking again, but does anyone know of a project similar to bzr-svn for clear case?21:32
tethridgeSomebody told me that they had heard that somebody was using it internally at work, but they didn't know who.21:32
tethridgeI've been asking through different times of the day in the hopes that somebody would know something.21:33
=== mw|food is now known as mw
mwhudsontethridge: the most knowledgeable people are probably going to appear in 1-2 hours21:37
tethridgemwhudson, I'll try again then.  Do you have some usernames that I should look for?21:38
beunotethridge, actually, you might even get a better response from mailing to the list21:47
beunomorning mwhudson21:47
tethridgegood idea21:47
abentleymwhudson: I wouldn't say that exactly.21:50
tethridgeI'm going to try both21:50
abentleyjam and I are pretty knowledgeable.21:50
abentleyIt's just that idling here isn't what I'm paid for.21:51
tethridgeabentley, know anything about a clear case plugin?  :-)21:52
tethridgeoh, and you get paid?21:52
abentleytethridge: No, I haven't heard of any such thing.21:52
tethridgeI'm getting screwed21:52
abentleytethridge: I work on the bazaar-launchpad team.21:52
tethridgeah21:53
tethridgejust kidding21:53
abentleyI'm not too up on the proprietary stuff.  What is ClearCase again?21:53
abentleyi.e. are you looking for an IDE plugin or an import/export plugin?21:54
matkorHm. 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:57
jelmermatkor: the launchpad plugin uses http if you haven't logged in21:58
jelmermatkor: try "21:58
jelmerbzr lp-login"21:58
jelmeror something21:58
matkorjelmer: I see .. thanks a lot !22:00
mwhudsonoh man, i have some mailing list posts to write, it seems!22:37
mwhudsonbeuno: simpletal looks interesting22:44
beunomwhudson, more than pylons + mako?22:45
mwhudsonbeuno: well, i dunno22:45
mwhudsonas i said, i kind of hate non-tree templating22:45
mwhudsonbut if you're the one doing the work ... :)22:45
mwhudsonbeuno: what does pylons use for the http part?22:46
mwhudson(where turbogears uses cherrypy)22:47
* beuno looks22:47
beunomwhudson, it seems to use wsgi22:49
mwhudsonuhh22:50
mwhudsonis that actually an answer to the question?22:50
mwhudsoni guess it is22:50
beunowell, yes and no  :)22:50
beuno"paste"22:50
mwhudsoni guess it means you can plug in ~whatever http server you like22:50
beunoBy default Pylons uses paste's httpserver22:51
mwhudsonwhich would be good because cherrypy makes the baby jesus cry22:51
beuno"You could stick to it or use something different, say one from CherryPy 3.0"22:51
mwhudsoncherrypy 3 is ok, afaict22:51
beunoso if you still feel like you need pain on a daily basis, we can stick with it  :p22:51
beunothe cool thing is that pylons has kid/genshi too22:52
mwhudsonwell22:52
mwhudsoni am still skeptical that loggerhead benefits from _anything_ that's in the django/turbogears/pylons/zope category22:52
mwhudsonreally SimpleHTTPServer + some templating engine should be enough22:53
mwhudson(for the plugin version, not what we do on lp)22:53
beunoyeah, SimpleHTTPServer would be the best way to go22:53
mwhudsoni guess we may want slightly more sophistication, because we do want to set http headers occasionally22:54
mwhudsonso maybe wsgi would be an appropriate interface to aim for22:54
beunomwhudson, I believe the dependency issue for ZPT is enough reason to look into other options sooner than later. What do you think?22:56
mwhudsonbeuno: i think if simpletal can work, then that's a small enough dependency22:57
beunomwhudson, I'll check and see what changes have to be made22:57
mwhudsonbeuno: *i* already have too many half-finished not-really-sure-if-it's-a-good-idea loggerhead branches around22:58
mwhudsonbeuno: i don't want you to start collecting them too :)22:58
beunoin fact, I'll do it now, while I wait for lifeless to wake up and I can complain about bzr-search22:58
beunoheh22:58
beunook, so you want the other 2 patches first  :)22:58
mwhudsonwell, let's see about simpletal22:59
beunothe ZPT thing just itches too much, at least to move it into trunk22:59
mwhudsonon first blush, it seems like the changes required would be fairly minor22:59
beunook, 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 223:00
beunoseem ok?23:00
mwhudsoni will give turbogears some credit, it nicely encourages loose coupling23:00
mwhudsonbeuno: +123:00
mwhudsonif nothing else, i think refactoring from the zpt templates to something else might be easier than refactoring the kid templates23:01
mwhudsonbecause i think i cleaned up the templates a bit when i rewrote them23:01
beunoabsolutely, I've been doing all my work based on your zpt branch23:01
beunokid is a bit icky, but it may be the cleanup too23:02
beunoeither way, there may be some portions of the zpt patch you may want to look at, the non-template bits23:02
mwhudsonphone brb23:03
beunoah, lifeless, finally  :)   good morning23:11
jelmerhmm, post-push hooks don't appear to be working when creating a new branch23:20
mwhudsonbeuno: ok, back23:25
beunomwhudson, I can't find a clear way to use simpletal with TG...  :/23:26
beunodocumentation on simpletal is a bit...  "lacky"23:27
mwhudsonwell, i guess you need to hackerize the turbozpt package that zpt-templating includes23:27
beunoI can't get TG to use simpletal at all23:29
beunoand google isn't really being helpful23:29
mwhudsonlet me have a go23:29
beunomany people saying they want to move to, but none that actually did23:29
mwhudsoni see23:30
beunoargh, simpletal is only available for 2.4...23:32
beunopackaged in Ubuntu at least23:32
mwhudson?23:33
mwhudsonmwh@grond:~/canonical/repos/loggerhead/trunk$ python2.5 -c 'import simpletal'23:33
mwhudsonmwh@grond:~/canonical/repos/loggerhead/trunk$23:33
beunoah, no, ignore me23:33
beunoI really have to do a fresh install23:33
beunoanyway, there doesn't seem to be integration into TG, or am I missing something?23:34
mwhudsonno, there probably isn't23:34
mwhudsonbut that's ok, we can write it23:34
beunois it still worth it if we have to?23:36
mwhudsoni really don't think it will take very long23:36
tethridgeanybody heard of a clearcase plugin similar to bzr-svn?23:36
tethridgelast time I'm asking23:36
tethridge:-)23:36
jelmertethridge: I don't think there is one23:36
tethridgeI was told that supposedly somebody was working on one for internal use at their company23:37
tethridgedon't know who though23:37
beunomwhudson, alright, I'm not very familiar with that area, but I'll give it a try23:37
mwhudsonbeuno: let me try first :)23:37
beunoyay!  :)23:38
mwhudsonbeuno: is the latest version of the zpt branch on launchpad somewhere?23:38
bob2tethridge: maybe someone on the list will know23:38
tethridgeI'm going to try that23:38
beunomwhudson, 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 URLs23:39
mwhudsonbeuno: ok, i'll use the bundle23:40
mwhudsonbundles are awesome23:41

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!