/srv/irclogs.ubuntu.com/2011/07/11/#bzr.txt

=== poolie_ is now known as poolie
spivHmm, I think I just found a hack to improve the test suite time by about 10%.01:03
poolienice01:06
pooliewhat was it?01:10
lifelessrm -r <some dir>01:12
spivYep, seems to work: have _check_safety_net just open .bzr/checkout/dirstate directly and compare the raw bytes to its known pristine state, rather than open_workingtree and check .last_revision()01:14
spivWhich perhaps hints we can optimise opening a working tree a little more, but this is easier ;)01:14
spiv(And perhaps we can improve further by just using stat, but that's probably not worth the complexity)01:16
poolieindeed01:31
poolie+101:31
spivHmm, I thought I'd targetted that branchbuilder patch to lp:bzr/2.4.  I wonder if I entered lp:bzr/2.4 into the text field without also clicking the radio button...01:41
poolie:/01:48
pooliespiv your branch has conflicts01:48
poolieso you probably need to resubmit anyhow01:48
poolieor fix it before mine completes01:48
spivpoolie: thanks, looking now02:03
spivOh, lp:bzr/2.4 is the same as lp:bzr.  I got the impression that we'd split them already.02:06
spivJust in time to avoid resubmitting :)02:08
pooliewe were meant to have split but vila hasn't done it02:15
pooliemaybe we should02:15
=== poolie_ is now known as poolie
vilapoolie, spiv: lp:bzr shouldn't be the same as lp:bzr/2.4 AIUI, at least I've seen poolie sending a cleanup on lp:bzr and that's ok, the plan is to open lp:bzr as 2.5dev1. A few commits before that won't matter.06:29
vilapoolie: I think we should keep the minimum API to 2.4.0 for a little while so plugin authors can focus on releasing for 2.4 without having to handle 2.506:31
vilapoolie: Does delaying the API bump sounds ok ?06:38
spivvila: Well, https://launchpad.net/+branch/bzr/2.4 still resolves to ~bzr-pqm/bzr/bzr.dev06:39
poolievila, i'm not sure what you mean06:40
pooliethere might have been api changes on trunk that would not be appropriate post-final-beta06:40
poolieif that's true, we should branch off 2.4 from a previous revision06:41
vilaspiv: eerk06:41
spivvila: Poking around I see there is a lp:~bzr-pqm/bzr/2.4, but that's not where lp:bzr/2.4 resolves to06:41
pooliepossibly we should branch from the revision tag anyhow06:41
vilapoolie: no no06:41
vilaspiv: yup, that's the bit I missed, hopefully we can fix that without losas06:41
vilapoolie: there is no known API break that I know06:41
vilapoolie: I'm talking about bumping to 2.5. Last time we did this bump early, I don't want to make it *too* early06:43
vilaat a minimum, not when opening for 2.5dev106:44
poolieyou're talking about when to change the api version vs the library version?06:44
vilaAfter 2.4.0 sounds about right06:44
vilayes06:44
pooliei think the separate api version is almost a null concept06:44
vilaha06:44
poolieiow i think people should just depend on the implementation version06:44
pooliei don't think the api version is reliable enough to be worth while06:45
pooliei don't think the api version is reliable enough to be worth while06:46
vilahmm, ok, in this case we should decide if we deprecate that and make it widely known06:46
pooliethere is a bug complaining about it06:46
vilaso in the short term, I can just open 2.5dev1 and leave it at that (and also fix the lp:bzr/2.4 associated branch)06:46
pooliecan we be more concrete?06:48
pooliei think the actions are06:48
poolie - branch off bzr/2.4 from trunk06:48
poolie- increment the version in trunk06:48
poolie...?06:48
poolie- add pqm configuration for 2.4 if needed?06:48
vilabranch off and pqm are already done06:48
vilaand I have a branch to switch to 2.5dev1 where I should commit and land06:49
pooliebut the 2.4 series in lp is pointing at the wrong branch?06:49
poolie- add news and other document stubs06:49
vilalast, lp:bzr/2.4 should point to lp:~bzr-pqm/bzr/2.406:49
poolieright06:50
vilayup, document stubs are uncommitted but done06:50
vilaI need to create a 2.5 series and some milestones on lp06:51
vila(while ensuring doc/developers/releasing.txt is still up to date)06:52
poolieok, thanks for taking care of it06:59
poolievila, babune seems unreachable07:11
vilarestarted07:11
pooliei was wondering if spiv's changes would have made things faster07:12
vilawhich ones ?07:13
pooliehe did a thing to make selftest faster at checking whether it needs to make a new scratch directory07:14
vilahmm, just looking at it07:14
spivvila: r602007:14
vilabut the dirstate doesn't protect against repository changes07:14
vilawe talked about making the branch/repo read-only but I don't think we ever implemented that07:15
spivIt's no weaker than the check it replaces07:18
spivWhich was just wt.last_revision() == 'null:'07:18
vilaspiv: yup, just saw that07:18
jammorning all07:18
vilaspiv: may be it should :)07:18
spivvila: well, maybe07:19
spivvila: except that this check has proved quite sufficient for years07:19
pooliehi there jam07:19
spivSo I think probably the effort to make it stricter is probably not worth it :)07:19
vilaspiv: did you see it trigger often ?07:19
vilaI know I never did07:19
spivvila: a better question is:07:19
poolieis this about the guard wt above the tests?07:20
spivvila: did you ever see a problem that a stricter check would have avoided or helped with?07:20
spivvila: I never have.07:20
* vila nods07:20
poolieit's a little kludgy that it's even there07:20
* spiv -> gone for the day07:29
pooliebye spiv07:43
vilapoolie: all done, 2.5dev1 sent to pqm07:50
vilathere will probably some tweaks needed to move news entries from 2.4 to 2.5 for the ones landed since the fork07:51
poolieok good, thanks07:59
pooliejam, how are you?07:59
Riddellgood morning08:07
pooliehi Riddell, how are you?08:09
jampoolie: doing pretty good08:09
jamdid you enjoy your vacation?08:09
jamseems you were productive on the flight back againg08:09
pooliei did08:10
poolieit was pretty good08:10
pooliei got a bit closer to getting usertest to do what i want too08:10
pooliei hope to get back to that tomorrow or wednesday08:10
pooliejam, how did you go with the performance bug that was affecting linaro?08:11
jampoolie: bzr-svn peak memory issues? I got a little ways, but mostly I have to learn the bzr-svn codebase a bit08:12
jamthey are unblocked for now, because of the manual improt08:13
jamimport08:13
Riddellpoolie: I'm bright and breezy and looking forward to another exciting week of bzr08:14
poolie:) great08:14
poolieany topics in particular? something on the developer guide perhaps?08:15
pooliejam, so what's next for you?08:15
jamI was hoping to meet up with Jelmer today08:15
jamonce he wakes up08:15
jamand finish the "is branch up-to-date" stuff08:15
pooliedid you see his mail? he won't be back for another day08:15
poolie*2 days08:15
poolievila, according to the wiki you're pp this week; will that fit with your RM work?08:16
Riddellpoolie: yes I began looking at the packaging guide, I'll make some changes to it.  although the main problem with it is working out how to sensibly split the UDD stuff and the traditional packaging stuff (which mostly isn't in it)08:16
poolieyes, that is a big question08:17
pooliedepending a bit on how much this is supposed to be a description of the future vs practically useful today08:17
pooliespiv's selftest change doesn't seem to have especially made a visible change on babune08:21
pooliebut, there is a fair bit of noise08:21
poolieoh, it did on maverick08:21
pooliehttp://babune.ladeuil.net:24842/job/selftest-chroot-maverick/buildTimeTrend08:21
poolieperhaps natty just ran when the machine was busy08:21
vilapoolie: argh, how did I manage to miss that :(08:30
vilapoolie: don't answer :)08:31
pooliewhich bit?08:31
vilapp'ing this week08:31
poolieoh that's ok08:31
vilayeah, the queue is pretty short08:31
vilapoolie: regarding spiv change: yeah, looks noticeable on maverick and lucid but not on natty08:34
vilathey run serialized and the machine was quiet otherwise so, a priori, no external noise08:35
vilawe'll see if the progress persists but it's a good improvement08:35
jammaxb: ping for great justice! (Actually just to ask you what happened to your code that checks if a package-import branch is up-to-date.)08:51
jammaxb: I found: https://code.launchpad.net/~jelmer/bzr-builddeb/check-udd-status08:57
jambut jelmer said you made it much faster by avoiding launchpadlib08:57
jamand I don't see a ~maxb branch of bzr-builddeb08:57
pooliejam i wonder what the action is on lp ssh performance08:58
pooliesince it's partly just waiting for it to get to the top of the queue08:59
jampoolie: the last state-of-the-losa report said it was being worked on09:02
poolieoh, really09:02
jam(getting ha proxy at least)09:02
pooliethat's great09:02
pooliei rebuilt on natty and it did get faster09:03
poolieso, go spiv09:03
jam"Partial de-spof of codehosting in process "09:03
jamI'm inferring a bit there09:03
jambut haproxy would be getting rid of a SPOF09:03
=== hunger_ is now known as hunger
=== 13WAAFAXG is now known as wallyworld
=== med_out is now known as medberry
=== tchan1 is now known as tchan
=== oubiwann` is now known as oubiwann
bigjoolscan anyone help with this please http://pastebin.ubuntu.com/641976/ - bzr switch thinks  that something I just branched is not a branch :(15:37
maxbbigjools: I'd guess that your current checkout is a checkout of a local branch since deleted?15:57
bigjoolsmaxb: gah, yes15:58
bigjoolsthanks15:58
bigjoolswhat a weird error though15:58
maxbwell, ish15:58
bigjoolsI guess it would help if I'd realised it was referring to a different branch to the one I just tried to switch to!  /o\15:59
maxbIt's a perfectly sensible error, but thrown from too low-level a point in the code, and not decorated with suitably informative context15:59
=== deryck is now known as deryck[lunch]
muephello16:58
muepis there something roughly equivalent to git fetch origin && git log master..origin/master in bzr?17:00
muepI'd like to see the changelog before I actually apply the new upstream changes17:01
AuroraBorealisjust branch upstream and do a bzr log on it?17:03
=== beuno is now known as beuno-lunch
AuroraBorealisbzr branch <orgin> && bzr log <orgin> or something17:04
maxbmuep: 'bzr missing --theirs-only' ?17:07
mueplooks somewhat what I am looking for17:08
muepis it safe to mv a directory to which I have cloned an upstream bzr-using project?17:20
muepI currently have just trunk cloned in src/emacs/ and I guess to get other local branches I would need to get some other directory17:24
muepso I though I should maybe move my current copy to src/emacs/trunk and branch my local branches from that alongside it17:24
=== beuno-lunch is now known as beuno
=== AuroraBorealis is now known as aurora|away
=== yofel_ is now known as yofel
jamdahlHey guys, I'm having a problem with bzr explorer not launching from its shortcut20:16
jamdahlanytime I try to open bzrw.exe, nothing happens20:17
=== aurora|away is now known as AuroraBorealis
AuroraBorealisis the launch argument like this? "C:\Program Files (x86)\Bazaar\bzr.exe" explorer20:26
jamdahlnot exactly"C:\Program Files (x86)\Bazaar\bzrw.exe" explorer20:36
AuroraBorealisshould still work. whats bzr.log say?20:36
AuroraBorealisshould be in your documents folder20:36
AuroraBorealis.bzr.log i think20:36
jamdahl Mon 2011-07-11 16:36:30 -0400 0.041  bazaar version: 2.2.3 0.041  bzr arguments: [u'explorer'] 0.044  looking for plugins in C:/Users/jamdahl/AppData/Roaming/bazaar/2.0/plugins 0.044  looking for plugins in C:/Program Files (x86)/Bazaar/plugins 0.125  encoding stdout as osutils.get_user_encoding() 'cp1252' 0.255  loading explorer extensions for clothes ['Bazaar support', 'Register on Launchpad'] 0.255  explorer extensions provided by th20:37
jamdahlgah, limit to length20:37
AuroraBorealispastebin20:37
AuroraBorealisthat shiz20:37
jamdahlhttp://pastebin.com/q81TeHum20:38
AuroraBorealishmm weird20:39
jamdahlwhen I run bzr explorer from command line I get the same NoRepositoryPresent: No repository present: "file:///C:/" line20:41
AuroraBorealisis it trying to autoload a repository?20:42
AuroraBorealistry deleting your config for bzr explorer and see if that fixes it20:42
jamdahlWhere is it?  I've tried deleting the folder in appdata/roaming20:43
jamdahlthat was the first thing I tried when reinstalling failed... pesky config files...20:45
AuroraBorealisyeah20:45
AuroraBorealisits %appdata%/Roaming/Bazaar20:45
jamdahlYep, I've deleted that and if I run bazaar explorer it will regenerate that directory but still doesn't launch a gui20:46
AuroraBorealisare you running the latest version of both bzr and explorer?20:49
jamdahlthankfully I can call pretty much everything else in bzr and qbzr from the command line20:49
AuroraBorealisi dunno what its doing trying to load C:20:49
jamdahlI'm using one of the standalone packages20:50
jamdahlif I have the wrong version of python it isn't my fault :P20:50
jamdahland it's not exactly the latest version but I'm downloading that now20:51
jamdahlI was using 2.2.320:51
jamdahldownloading 2.3.3 now20:51
AuroraBorealisit comes bundled with python so you don't need that20:52
jamdahlThat's what I'm saying :P20:53
jamdahlupdating to latest version of bzr did not change anything20:55
AuroraBorealishmm =/ i dunno20:56
jamdahlaha20:56
jamdahlI've been writing a plugin for excel to use bzr for VBA version control20:57
jamdahlit got a bit messy at ttimes20:57
jamdahlapparently at one point it did an init on the c drive20:57
jamdahlapprently bazaar didn't like that and tried to autoload it or somethign20:57
jamdahldeleting the repo in the c drive fixed it20:57
AuroraBorealisnice =)20:58
jamdahltoo bad I can't find a satisfactory tool to diff sheets themselves21:03
jamdahlanyway, thanks for the help aurora21:06
Noldorinis it possible to edit old commit messages?21:06
maxbNoldorin: no21:24
Noldorinmaxb, is this feature being considered? i know it was at some point.21:24
AuroraBorealisdunno why you would want to21:24
NoldorinAuroraBorealis, typos in past messages, basically21:24
NoldorinAuroraBorealis, or accidental misinformation21:24
maxbNoldorin: The immutability of revisions is pretty much baked deep into the fundamental precepts of bzr (and git and hg)21:25
maxbThe only way that I can see it could ever be implemented is via some sort of "No, actually I meant ..." metadata attached to future revisions, which masked the appearance of earlier revisions in the UI21:26
Noldorinmaxb, that's not what i heard. was talking to one of the guys who designed the bzr system, a couple of years ago here, and he said it would be possible21:26
Noldorinmaxb, he said it would be hard and require some changes to the way hashing was done or something, but possible21:26
maxbSounds like you should ask him then :-)21:26
maxbBut in any case, it's definitely a Hard Problem, and I've not heard of anyone seeking to address it recently21:27
Noldorinmaxb, oh yeah, i totally agree it's non-trivial :-)21:28
Noldorinmaxb, was discussed briefly on the mailing list before i think...wish i knew the guy's name i once talked to.21:28
spivmaxb: to be precise, I think it'd be possible to have that metadata not necessarily be "attached to future revisions"21:28
maxbThe benefit seems quite low compared to the necessary expenditure of effort, which makes it a feature fairly unlikely to be worked on21:28
spivmaxb: but it would need to be stored in the repo somehow, and we'd need to figure out how/when to transmit it efficiently, etc.21:29
maxbHi spiv21:29
* maxb now has jubany access :-)21:29
spivmaxb: yay!21:30
Noldorinmaxb, possibly, though bzr is fairly mature these days...there can't be *that* many more important thigns?21:30
Noldorinwell, perhaps there are21:30
Noldorinmaxb, spiv right, so what's making the problem trickier than simply editing the metadata file for the repo with the new comit message?21:31
maxbSuppose you edit the embedded metadata of a revision in one repository... how does bzr know it needs propagating to other repositories?21:32
maxbHow do you manage the auditability of such changes - or otherwise prevent them from being done maliciously?21:33
Noldorinmaxb, a simple boolean flag? either per branch or per revision21:33
maxbboolean? What happens when I want to edit my edit? :-)21:33
spivNoldorin: "per branch" doesn't work, a repository can be used by many branches, and the number can change over time21:33
maxbAnd what about if two people edit a revision in conflicting ways?21:34
spiv(And similarly a revision can be propogated any number of times)21:34
Noldorinmaxb, spiv ok, so i'm being naive. the only thing that would really work is versioning the commit messages *themselves* :-P21:34
Noldorinhaving each commit message essentially as a file21:34
Noldorinmaxb, that would seem to solve all those issues21:35
spivNoldorin: you could prototype that approach as a plugin21:35
Noldorinspiv, oh yes?21:36
maxbOf course, once you start down this path, people will want to edit metadata other than messages :-)21:36
spivNoldorin: store the extra info in a secondary store next to the regular repo21:36
spivNoldorin: and hook into bzr's fetch etc logic to do the propagation the way you envisage21:36
spivNoldorin: I think that it'd be an interesting (and useful) way to prototype it.  I also think you'll find it's harder than it looks ;)21:37
Noldorinspiv, no doubt it will be quite hard, yeah. good suggestion though21:37
Noldorinspiv, just thinking, would the functionality really be so different to bzr tags?21:37
spivThere *might* be one or two points in bzrlib that don't make it as easy to write that plugin as it ought to be -- file a bug if you find them, they can be fixed.21:38
spivIt is different to tags, because tags are per-branch21:38
spiv(and not versioned either :P)21:38
Noldorinspiv, the tags list is simply merged in the case of a conflict i suppose?21:39
spivSee bzrlib/tag.py; if there's a conflict bzr reports it and lets the user sort it out basically.21:40
spivAnd tag deletion isn't propagated.21:41
Noldorinspiv, in terms of merges you mean?21:41
spiv(See also https://bugs.launchpad.net/bzr/+bugs?field.tag=tags)21:41
spivNoldorin: well try it yourself: make a test branch with two commits, branch it, and do 'bzr tag foo -r1' in one and 'bzr tag foo -r2' in the other21:42
spivNoldorin: and see what happens if you try push/pull/merge between those21:42
Noldorinspiv, right21:46
AuroraBorealiswhat should i include in a bug report for bzr explorer?21:46
AuroraBorealisjust my bzr log?21:46
Noldorinspiv, so wouldn't it be easier just to patch the source rather than do a plugin?21:46
Noldorinspiv, since i'd really want to modify the metadata structure. otherwise it owuld work too differently to an intended working version21:46
spivHmm, much of it would be the same, and it would probably avoid requiring a new repo format if you did it as a plugin that used a secondary store.21:47
Noldorinspiv, yeah, we'll see...21:48
Noldorinbrb for now21:48
spivI guess it would be easier to patch bzr proper, but it's also harder for people to test a patch21:48
Noldorincheers for the info21:48
Noldorinspiv, yeah, so it might not get known as quickly21:48
Noldorinhmm21:48
Noldorini'll consider. bye for now21:48
spivAnd I don't think it would be *that* much easier.21:48
spivI might be wrong :)21:48
putrycyhi! Let's assume that I am working on some project. In some point in the past I gave the source to my friend. He has been coding and how he is sending the modified source to me. In the meantime I made some changes too22:04
putrycywhat is the simpliest way to merge?22:04
putrycyFrom my point of view of course22:04
spivputrycy: how did they send the modified source to you?22:05
putrycyonly source files22:05
spivAh.22:05
putrycythey don't have access to the repository22:05
spivIdeally you'd have been using bzr branches from the start.22:05
putrycynor they use bazaar22:05
putrycyso, I should make a branch usning the received source files?22:06
spivStill, in your case the best you can do is basically make a branch starting from the revision they started from22:06
spiv(i.e. 'bzr branch -r 1234 my-branch friend-branch')22:06
spivthen in friend-branch apply their changes (copy their version of the source files into it)22:07
spivthen commit that, and then use 'bzr merge' to merge that back into my-branch22:07
putrycyOK, I get it, thank you very much22:08
putrycybtw isn't there anything like patch in bazaar?22:08
spivYou're welcome.22:08
spivSure, the 'bzrtools' plugin adds a 'bzr patch' command22:08
putrycyand does it resolve my problem too?22:08
spivBut you said you had entire source files, not patches?22:09
putrycyyes, of course22:09
putrycyjust looking for the simpliest way to merege22:09
putrycyIt would be perfect If I could make patch using the source tree and the branch from that they started development22:10
putrycyand then just apply the patches22:10
spivSure, you can use 'bzr diff' to generate patches, but I don't think it'd be easier (I don't think it'd be significantly harder either)22:10
spivIf you already have patches, then just applying the patches is almost certainly the way to go.22:11
putrycyI have to try out both to find out...22:11
sidneiso, how easy is it to split a bzr branch while keeping history?22:22
putrycyyesterday i noticed some strange (for me) bahaviour: bzr didn't want to add any files to the repository if there was a .svn directory in the same director what an added file22:30
putrycycould somebody explain it to me? And how to overcome it?22:30
dupondjehttps://bugs.launchpad.net/ubuntu/+source/bzr/+bug/809048 any idea whats broken ?22:39
ubot5`Ubuntu bug 809048 in bzr (Ubuntu) "bzr crashed with AttributeError in stopTest(): '_TypeEqualityDict' object has no attribute 'clear'" [Undecided,New]22:39
lifelessdupondje: what python version ?22:44
lifelessputrycy: you have bzr-svn installed22:44
lifelessputrycy: so that is detecting you have an svn checkout there and is working with that instead22:45
dupondjePython 2.7.2+ (default, Jul 10 2011, 09:48:58)22:46
dupondjeubuntu oneiric22:46
lifelessdupondje: I suspect testcase.__dict__ isn't what it used to be in earlier pythons ;)22:47
pooliehi all23:02

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