/srv/irclogs.ubuntu.com/2011/04/20/#bzr.txt

jelmerhey poolie, fullermd00:01
j1mchi - is there a bzr equivalent to 'git pull --rebase'?00:02
LeoNerdPossibly  bzr rebase ?00:03
LeoNerdThough not knowing quite what that  git pull --rebase  does I'm not sure00:03
j1mcgit pull --rebase allows you to update your branch with the current commits before you push your own commits00:04
j1mcLeoNerd: unfortunately, there doesn't appear to be a bzr rebase command00:04
LeoNerdWell, the usual way to do that in bzr would be to merge trunk into your branch first00:04
pooliej1mc: the equivalent is 'bzr rewrite'00:04
LeoNerdYou -can- rebase, but that's somewhat rude as it rewrites history00:04
pooliefrom the bzr-rewrite plugin00:04
pooliei don't know if there is a specific one-shot command to do that00:04
LeoNerdIt's generally much nicer to merge from the trunk into the branch, so that branch merges back into the trunk afterwards00:05
LeoNerdIt doesn't involve any history-rewriting that way00:05
LeoNerdBut still, if you want rebase, you'll find it in the  bzr-rewrite  plugin00:05
jelmerj1mc: "bzr rebase" does the same thing as "git pull --rebase"00:05
jelmeras LeoNerd and poolie point out, that command requires the bzr-rewrite plugin00:05
j1mcthanks for your help, all. i will give the bzr-rewrite plugin a try.00:07
maxbjelmer: Hi. I have been bitten by the broken not-quite-dpushed commits in dulwich again.00:08
maxbI would like to suggest deleting lp:~dulwich/dulwich/trunk from existence so that they cannot propagate further00:08
maxbI am currently wondering if I should manually recommit the recent history of the dulwich bzr-ppa branches for hardy/jaunty/karmic to excise them00:09
pooliehi maxb00:10
maxbhello00:10
* maxb hugs the lp api and lpshell00:15
maxbhaving just been able to do a loop over all ~bzr recipes calling r.distroseries.remove(karmic) on them all00:16
maxbhm00:18
maxbbut it doesn't seem to have taken effect00:18
* maxb is less impressed now00:20
jelmerpoolie: Thanks for also looking at Vincent's config patches00:21
jelmermaxb: The same commits or different ones?00:21
pooliethat's ok00:21
pooliedo you want to talk about it?00:21
pooliei'm wondering if we should in fact do per-file configuration on the way i discussed in the overall mp00:21
jelmermaxb: please note that that branch is just a mirror of another one00:21
maxbjelmer: same ones causing problems in new scenarios00:21
jelmermaxb: So it's all old stuff?00:21
maxbjelmer: OK, let's delete all branches in the world with the dodgy commits :-)00:22
knighthawkI'm thinking a work around may be to just to add a working tree to A00:22
knighthawkbut yeah fullermd that's my situation.00:22
maxbjelmer: 2011-01-14 is the most recent problem revision00:23
jelmermaxb: if it's all old commits I'm happy to delete and repush those branches, if there are new commits involved as well we should probably investigate further00:23
jelmermaxb: That's old enough for me :)00:23
jelmerpoolie: I think the idea of mixing config and rules is interesting00:24
poolieif they're going to stay separate, i'd like to have a clear idea of why they're separate00:24
pooliebeyond just 'rules are per-file'00:24
maxbI'm currently trying to decide whether it would be quicker to manually recommit the history for the bzr-ppa branches, vs. hack up reconcile with "where you see this text parent, change it to that one" logic00:24
maxbknighthawk: If you'd followed the exact sequence of commands you mentioned earlier, I don't see how you could have diverged branches00:26
jelmerpoolie: My impression of it is that rules are things that could potentially apply to everybody accessing a particular branch00:26
jelmerwhereas config is specific to a specific machine or user00:26
jelmerThat's how I think of them at least, not sure if it necessarily makes sense.00:26
maxbknighthawk: Perhaps a pastebin of your console session would explain things best00:26
knighthawkmaxb I did do a commit of new code in my branch before trying to do the pull from svn00:28
pooliethat is true00:28
jelmerpoolie: I realize that doesn't entirely match our current use, as we don't currently allow you to declare "doc/en/release-notes/*.txt" as changelog files that should be processed with the custom changelog merger00:28
pooliebut perhaps they should just be different layers that stack together00:28
maxbknighthawk: In that case I think you misunderstand the nature of "pull"00:28
poolieperhaps it's too confusing if some are trusted and some not00:28
maxbknighthawk: "pull" is for making a local branch be identical to some remote one. Once you've committed stuff locally, that's no longer possible. You want to merge, I guess, instead.00:29
knighthawkmaxb quite possible, I went ahead and created a working tree in 'A' now I'm going to try to merge 'A' and 'B'00:29
jelmerpoolie: yeah, trust is indeed an interesting thing in this too00:29
knighthawkmaxb I guess what I want to do is like a update of the local branch to the central repo before I try to commit my changes back into svn.00:30
maxbknighthawk: Right. "bzr merge svn+ssh://my.svn.server/svn/repository/project/trunk" for example00:31
knighthawkmaxb can I just merge to a svn repo? (I don't know why but I assumed I couldln't do that)00:32
maxbNo, because you can only merge into a working copy00:32
knighthawkah. okay I just merged my changed from B into A so now I want to merge from the svn repo into A then do a commit (I think)00:33
jelmerpoolie: food for thought :)00:37
* jelmer gets some sleep00:37
poolie:) sleep well00:37
spivjelmer: I'd like to update news_merge to use rules, actually00:52
pooliehi there spiv00:53
poolieso spiv, what do you think of unifying them?00:54
stewarthelp help! "permission denied" using 'bzr switch' ? http://paste.drizzle.org/show/481/00:54
pooliehi stewart00:54
stewartpoolie, hi!00:54
pooliethe eperm is a distraction just meaning you don't have a /var/crash or something00:55
poolielooks like https://bugs.launchpad.net/bzr/+bug/62315200:55
ubot5Ubuntu bug 623152 in Bazaar "ValueError: need more than 1 value to unpack in _last_revision_info" [Undecided,Expired]00:56
stewarthuh...00:56
poolie> That traceback suggests the .bzr/branch/last-revision file is corrupt, probably blank. What does it contain?00:56
stewartpoolie, it's 0 bytes long00:56
stewartpoolie, so probably something that wasn't written out during one of the "damn laptop hung... probably due to intel wireless drivers" events last week00:57
pooliesorry, yeah00:57
pooliewe should almost just fsync everything, except that would make things pretty slow for people whose machine aren't crashing00:57
pooliecan you see if 'bzr reset-dirstate' fixes it?00:57
stewartpoolie, unknown command... some plugin i'm missing?00:58
poolieah it might only be in bzr 2.400:58
stewartahh.. .and i'm 2.3.100:59
pooliedo you have a lot of uncommitted work?00:59
poolieit might be faster to just make a new tree00:59
stewartpoolie, no.00:59
stewartpoolie, wiping away the checkout is fine.00:59
pooliei will update that bug to say there should be an easier way to recover00:59
teratorndoes the windows installer support bzr+ssh urls out of the box?00:59
teratorntortoisebzr?00:59
poolieteratorn: i think so yes00:59
stewartpoolie, i have no problems with it fsyncing such things. nooo problem with that at all :)01:00
pooliemaybe at least an option would be good01:00
pooliein fact an option that just globally fsync'd on close could be good01:00
spivpoolie: my understanding of the purpose of rules is the same as jelmer's01:00
poolieat least as 'fool me twice' prevention01:00
pooliethat's my understanding too01:01
spivwell, versioned-in-tree config about that tree01:01
pooliehowever, i'm not sure we need a separate and somewhat parallel api to get it01:01
spivIt definitely has a lot in common with other kinds of config01:01
spivWe have perhaps slightly different concerns about versioning the format of rules vs configs, but in terms of API it sounds reasonable to have as much commonality as possible.01:03
stewartpoolie, attempted new lightweight checkout for my working dir... http://paste.drizzle.org/show/482/01:03
spivThere is also a difference that in practice rules are used for per-file stuff, or at least 'per-thing in tree as matched by globs', and mostly other configs don't do that.01:04
pooliestewart ah the problem is actually in the branch not the tree01:04
stewartpoolie, oh yeah, last-revision is empty there too01:05
poolieif that's your trunk, delete the branch directory01:05
poolieand pull from the server again01:05
stewartpoolie, i have a mirror of it on lp...01:05
stewart(of that branch)01:05
poolieit's actually lost its idea of what the tip is01:05
poolieyou don't need to delete the repo, only the branch01:05
poolieso it should be quite fast to fetch01:05
stewartyep. branch going away.01:05
stewartpoolie, FYI it left the lightweight checkout dir in an odd state...just wiping it and trying again01:07
stewartpoolie, question, is there any efficiency in packing binary data in the repo apart from simple compression? e.g. if we had X number of 10MB files that were *mostly* the same, would we get anything better than X*10MB disk usage?01:09
poolieyes you would01:10
stewartpoolie, I'm wanting to have various InnoDB data files in the tree for backwards compatibility testing.01:10
stewartwithout having people whine at me that the repo is now 400MB :)01:10
poolieone caveat is that compression only hppens within pack files01:10
poolieso if you successively commit 10 additions of those files, you will have 10 pack files each ~10MB01:10
stewartpoolie, i can deal with that. (i gather a repack would reclaim a lot of space)01:11
pooliehowever, the compression on the 10th commit should shrink them all into one pack somewhat less than 100MB01:11
poolieright01:11
stewart10x10MB files with only about 1MB difference should be closer to 20MB on disk than 100MB01:11
lifelessstewart: yes, thats right. Do an experiment :)01:11
stewartnice :)01:11
stewartwe were discussing if we would gzip these in tree or not, rather convinced we should just store them in there now.01:12
stewartit turns out some people care not to have to sql dump and restore their database :)01:12
pooliebzr will be able to compress them better if they're not individuall gzipped01:15
pooliewhich will hide any similarities01:15
lifelesslp stores a SQL dump of some MBs of data in tree01:16
lifelessit compresses pretty well01:16
lifelessits a tad fugly, but if you need it you need it.01:16
lifelessI would suggest having it in a dedicated tree perhaps01:17
pooliethat sounds like a good idea01:19
=== wallyworld___ is now known as wallyworld
poolie<jam> This fixes a bug that Mark Shuttleworth pointed out to me (bug #765881)01:43
poolienice01:43
ubot5Launchpad bug 765881 in Bazaar "newly added files always trigger IN_MEMORY_MODIFIED" [High,In progress] https://launchpad.net/bugs/76588101:43
* spiv gives his wireless router a kick02:06
pooliestewart also https://bugs.launchpad.net/bzr/+bug/76673502:36
ubot5Ubuntu bug 766735 in Bazaar "people get confused by apport messages" [Medium,Confirmed]02:36
pooliespiv do you have any ideas about https://bugs.launchpad.net/bzr/+bug/72116302:36
ubot5Ubuntu bug 721163 in Bazaar "bzr crashed with ErrorFromSmartServer: ('error', 'bytes must be a string')" [Undecided,New]02:36
spivpoolie: hmm, no02:43
spivpoolie: I think we need the server-side log02:44
spivI can't think of any likely causes, and I don't think any hooks are triggered by insert_stream so it's unlikely to be a buggy plugin02:44
poolieso can you say so?03:06
spivSure.03:36
johnfIs it possible to find all the dangling revisions in a repository created by uncommit?06:16
lifelessbzr heads --all06:18
KombuchaKipIs there any way to setup a post commit hook for bzr to send an email when using it with Launchpad?06:19
johnflifeless: cheers06:20
lifelessKombuchaKip: if your branch is on launchpad you can just click on subscribe in the UI06:20
poolieKombuchaKip: the people interested in the branch can just subscribe to it in lp06:20
poolieor you can use bzr-email06:20
poolieo/ johnf06:20
lifelessKombuchaKip: if you want the mail sent to a list, you can subscribe a team with a contact address of the mailing list (or the team itself if its a launchpad hosted list) and LP will mail that directly.06:20
KombuchaKippoolie: I'd like to use bzr-email, but not sure if you can use that with launchpad since you won't have access to server?06:21
KombuchaKiplifeless: Thanks. I think that's what I will do.06:21
poolieit runs on the client06:21
pooliesending it from lp seems easier06:21
KombuchaKippoolie: Thanks.06:24
KombuchaKipThis is always a friendly and helpful channel.06:39
pooliethanks07:07
maxbpoolie: Thanks for the pointer to deryck's bzr issue. As it turned out, it was actually a launchpad-specific bzr plugin that was at fault, so no problem for us on the #bzr side of things :-)07:09
poolieo/ bialix07:11
pooliehooray07:12
pooliespiv, jelmer, jam, hi?08:58
jamhi poolie08:58
jam"Are you ready to Muuuummblllllllllleee" ?08:58
jam(said w/ a WWE announcer voice)08:59
poolie:) :)08:59
pooliebe back in a sce09:00
* jelmer is still setting up09:08
spivpoolie, jelmer, jam: damn, forgot what day it was09:21
poolienp, want to join us now?09:22
spivOk09:22
jamspiv: pack retry attacked back09:26
jampoolie: this one? https://wiki.canonical.com/Bazaar/Plan/201109:34
jamspiv: yeah, we don't hear you10:02
pooliejam re bug 746237 i was just going to check if there's a new bug10:33
ubot5Launchpad bug 746237 in Bazaar "Documentation markup bugs" [High,In progress] https://launchpad.net/bugs/74623710:33
jampoolie: sure10:34
jamI don't think there is a new one10:34
pooliei'll do a pass over all of ~mbp inprogress today or tomorrow10:35
jampoolie: what is our current 'bug fix' policy10:40
jamit should always target 2.3?10:40
jamor 2.2?10:40
jamor ...?10:40
jamI have a fairly trivial fix for bug #760152 which I can backport as far as we want10:40
ubot5Launchpad bug 760152 in Bazaar "bzr merge --pull --preview BRANCH does not always honor the --preview option" [High,In progress] https://launchpad.net/bugs/76015210:40
jamthe main issue is just how much effort do we want to spend merging-up10:40
poolieserious bugs with safe fixes in 2.110:41
pooliebugs worth fixing with safe fixes in 2.310:41
pooliei guess10:41
poolie2.0 basically dead except by request10:41
poolieiow i think the safety bar is equally high10:42
pooliebut, merging into 2.1 is a bit more work, so we should only do it when we specifically think it'll please someone10:42
jampoolie: sure. I guess my issue here is how to handle the merge-up and the RELEASE NOTES10:42
poolieon lts10:42
poolieright10:42
jamYay, closing a 4-digit bug10:54
jambug #513510:54
jamI tested it, and it works fine here10:55
ubot5Launchpad bug 5135 in Bazaar "bzr diff -r X..Y path/to/branch fails if path/to/branch is a symbolic link" [Medium,Fix released] https://launchpad.net/bugs/513510:55
jamubot5: you're getting slow, man10:55
ubot5Error: I am only a bot, please don't think I'm intelligent :)10:55
poolieway to go!10:57
poolieif there were badges, you would get at least a silver one10:57
jampoolie: well, closed because it has already been fixed. But still feels good.11:05
jelmer:)11:14
pooliemaybe we should just make a web page with badges if we can't do it automaticaly11:21
spivpoolie: or a greasemonkey script?11:33
jelmerspiv: if you're still around and interested, we're having a udd meeting #ubuntu-meeting12:02
jelmer*in12:03
pooliejam: hi?12:03
=== mrevell is now known as mrevell-lunch
mrevell-lunchMorning/nick mrevell13:50
mrevell-lunchsorry13:51
=== mrevell-lunch is now known as mrevell
mrevell:)13:51
jkakarHi ntoll! :)14:23
ntollhi jkakar14:23
ntollfancy seeing you in here ;-)14:23
jkakarntoll and I have discovered something funky in our branches...14:23
jkakarWe have trunk, staging and production branches, each of which is meant to be older than the last (and we're careful with merges).14:23
jkakarWe have a situation where production doesn't contain content in a file that, after carefully analyzing the logs, we think should be there.14:24
jkakarSo I ran 'bzr check' and got this:14:24
jkakar  3838 revisions14:24
jkakar  1360 file-ids14:24
jkakar     3 inconsistent parents14:24
jkakarI'm wondering what '3 inconsistent parents' means...?14:24
jkakarCould it be that some flummox in merging could have removed the content we expect...14:24
jkakarFor example, I seem to remember reverting a revision could produce strange results when you merged it back...?14:25
jkakarabentley: ^^ Any ideas?14:26
abentleyjkakar: No, inconsistent parents are mostly harmless.  They are usually due to ghost revisions or bzr bugs.14:39
jkakarabentley: Okay, thanks. :)14:39
jkakarabentley: I guess bzr bugs are mostly harmless? ;b14:40
jkakarabentley: Anyway, I think we figured out the issue is an EPEBKAC error. :)14:40
abentleyAh, okay.14:40
jkakarabentley: Thanks for your feedback, much appreciated... these kinds of "WTF?" moments are always a bit scary. :)14:40
abentleyjkakar: no problem.14:42
fullermdI think 'reconcile' will often fix inconsistent parents.14:43
jkakarfullermd: Yeah, I was wondering about it... but 'bzr help reconcile' says, "You should only need to run this command if 'bzr check' or a bzr developer advises you to run it."14:44
jkakarfullermd: Neither of those things happened so I didn't run it.14:44
maxbWhat exactly is an "inconsistent parent"? Is this described anywhere?14:47
jkakarmaxb: I was wondering the same... I couldn't easily find anything about it.14:47
maxbI gather it's something to do with consistency between the overall revision graph and the ancestry attributed to individual files14:49
jkakarmaxb: I gathered the same, yeah.14:50
diwicWhat do I do about this: "bzr bd" gives error "Unable to determine the previous upload for --package-merge"?15:39
james_wdiwic,  "bzr branch lp:bzr-builddeb /tmp/builddeb; BZR_PLUGINS_AT=builddeb@/tmp/builddeb bzr bd"15:43
diwicjames_w, iow this is a known bug that is fixed in trunk?15:44
james_wdiwic, indeed15:44
diwicthanks!15:45
=== diwic is now known as diwic_afk
knighthawkI've seen a few places that mention rebase. perhaps as a solution to my problem committing to svn. But when I try to run 'bzr rebase' or 'bzr help rebase' it says it doesn't exist. am I doing something wrong?17:56
=== abentley is now known as abentley-lunch
niemeyerHey there17:57
knighthawklooks like I'm running bzr 2.1.1-417:57
jelmerknighthawk: rebase is in the bzr-rewrite plugin17:57
niemeyerGetting some issues with bzr-fastimport related to an AttributeError on _find_ancestors17:57
knighthawkjelmer thanks17:57
niemeyerOn natty, specifically17:57
niemeyerIs that a known issue?17:58
jelmerhi Gustavo17:58
jelmerniemeyer: it sounds vaguely familiar - can you pastebin the backtrace?17:58
niemeyerjelmer: Hi!17:58
niemeyerSure17:58
niemeyerjelmer: http://pastebin.ubuntu.com/596621/17:58
jelmerniemeyer: thanks18:01
jelmerniemeyer: it's indeed something I've seen before18:01
jelmerhttps://bugs.launchpad.net/bzr-fastimport/+bug/54162618:03
ubot5Ubuntu bug 541626 in Bazaar "'BTreeBuilder' object has no attribute '_find_ancestors'" [High,Confirmed]18:03
jelmerI'm not too familiar with the index code, perhaps John can comment on it tomorrow.18:05
jelmerit looks shallow18:05
niemeyerjelmer: Cool, thanks18:07
mgzjelmer, did you have a branch that had some code doing isinstance(revision_id, basestring) up for review? I now can't find the mp and think I may have imagined it.18:40
jelmermgz: perhaps the branch that forbade using None as alias for "null:" in Branch.set_last_revision_info() ?18:41
mgzmaybe. do you have a link? I meant to ask whether said variable should actually be bytes or unicode.18:42
jelmermgz: that was inspired by some other code in bzrlib.revision that did the same thing IIRC18:42
mgzI thought it was one of the ones removing the inventory stuff and switching a param to be a tree or something instead18:43
jelmertjatlp:~jelmer/bzr/testament-tree ?18:43
jelmerthat's lp:~jelmer/bzr/testament-tree ?18:43
jelmerbzrlib.revision.is_reserved_id() checks against basestring18:44
jelmermgz: it happens in more places, e.g. Repository._iter_revisions18:46
mgzmust have confused two different diffs. I've not been keeping up with for coding. :)18:46
=== abentley-lunch is now known as abentley
ironmagmadoes bzr require you to download the whole repository history, like git/hg do?21:44
Odd_Blokeironmagma: You can use lightweight checkouts, which do not.21:45
knighthawksvn users aren't too happy with me right now, somehow I blew away the svn history for a few days with my push. is this because in my ~/.bazaar/suvbersion.conf I added append_revision_only = False?22:06
lifelesspush shouldn't even be destructive, unless you used --overwrite22:07
lifelesss/even/ever/22:07
knighthawkdid *not* use overwrite22:07
lifelessjelmer: ^ around ?22:07
knighthawkI did a bzr merge to merge my working tree to what was supposed to be the latest version of the svn repo (only it seems it wasn't) then I commited my changes and tried to do a push that didn't work until I added append_revision_only = False but then it seems I blew up some stuff. I've since installed bzr-rewrite and now I'm trying rebase instead of append_revision_only = False. but since I'm not *sure* that's what created the problem I'm not sure if I'm22:10
knighthawk going to do it again.22:10
lifelessyeah, I can understand that22:12
lifelesssadly, I've only used bzr svn a very few times myself, so I don't really have a clue about whats up there22:12
jelmerre22:17
jelmerhi lifeless, knighthawk22:18
knighthawkhey jelmer22:19
jelmerknighthawk: yes, if you set "append_revisions_only = False" that means bzr-svn will push even if that removes existing revisions from the mainline (the revisions are still in the repository, just not in the mainline of the branch)22:19
jelmerknighthawk: The default of append_revisions_only=True is intended to prevent you from shooting yourself in the foot22:20
knighthawkjelmer, okay it *sounds* like now that I have bzr-rewrite working I can use rebase and don't need append_revision_only=False anymore (I think)22:21
jelmerknighthawk: you can restore the old mainline using either "svn cp -r ..." or "bzr push --overwrite ..."22:21
jelmerknighthawk: right, rebase will preserve the upstream branch mainline22:22
knighthawkjelmer sorry I'm not sure what is meant by mainline is that the trunk?22:22
jelmerknighthawk: mainline are basically the revisions shown by "bzr log -n1"22:22
jelmerknighthawk: non-mainline revisions will be shown too if you use "bzr log -n0"22:22
knighthawkthanks jelmer that clears up a lot. but now did I just destroy my changes of restoring the mainline by running rebase?22:31
jelmerknighthawk: it depends on what exactly you rebased22:32
=== foocraft is now known as [1984]

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