/srv/irclogs.ubuntu.com/2010/08/19/#bzr.txt

=== kbrown_ is now known as kbrown
kyanHello again! Why is it that http://bazaar.launchpad.net/~info-futuramerlin/futuramerlin.com-calculator/main0.96/files shows the content of three of my local directories even though I cded to the right one before 'bzr add' 'bzr commit -m' 'bzr push'?00:32
=== r0bby is now known as robbyoconnor
Demosthenesright. i'm using branches for separation of roles and distribution. (prod/test/dev) merging up from one to the next, i'm running into situations where i'm having simple one-line changes labelled as conflicts, which don't show in the conflict output01:15
Demostheneswhen i'm merging interactively01:15
=== Ursinha-bbl is now known as Ursinha
maxbpoolie: Hi, if you're around, what's your likely timeline for sorting the failed bzr builds in ~bzr/proposed?01:18
pooliehi maxb01:22
pooliei'm going to do that pretty much now01:22
maxbyay01:22
* maxb resumes bashing dulwich into shap01:22
maxbe01:22
pooliehi spiv01:23
spivMorning.01:24
spivOh good, the socket regression in python2.6 in maverick got fixed.01:27
jelmer\o/01:30
pooliehi spiv01:39
pooliejames_w: still around?01:39
james_whi poolie01:39
pooliespiv if your plate is empty i was going to suggest bug 619614,01:39
ubot5Launchpad bug 619614 in bzr-builddeb "InconsistentDelta during merge-upstream (affected: 1, heat: 6)" [Critical,Triaged] https://launchpad.net/bugs/61961401:39
poolieunless james_w is already on it01:39
james_wnope, I just wanted to note the pointer today, I was going to come back to it soon01:40
james_wgetting a small test case should make working out the interaction fairly easy, but unfortunately because of the strategy of building everything up and then applying the transform it can be hard work going from the final state back to the operations that caused it.01:41
spivpoolie: ok, I'll do that01:44
pooliemaxb, i know what broke the earlier uploads02:04
pooliehard and jaunty are now ok, and i'll just push rebuilds for karmic..02:04
pooliemaxb should be all ok now02:39
poolietesting them in chroot snapshots...02:59
=== lifeless_ is now known as lifeless
* mwhudson had forgotten how slow log -v is with packs05:29
pooliemaxb: hi; so bzr seems ok in the ppa05:35
pooliebzr-svn needs some love, or a backport?05:35
poolie_maxb, i'm going to backport bzr-svn now06:16
poolie_actually, maybe i'll see if jelmer wants to do that06:16
poolie_maxb, around?06:47
pooliejames_w: should i just s/debian_bundle/debian to fix these deprecation warnings?07:37
vilahi all !07:42
vilapoolie: I caught up with my mail backlog and noticed I was patch pilot this week, sorry for starting so late :-/07:45
=== vila changed the topic of #bzr to: Bazaar version control | try https://answers.launchpad.net/bzr for more help | http://irclogs.ubuntu.com/ | Patch pilot: vila | bzr 2.2-final has gone gold, build those installers
poolienp, i was a bit slack last week07:46
pooliei'm updating ppa packaging stuff07:46
pooliei'd happily swap :/07:46
poolieit's a bit tedious07:46
poolieotoh it's good practice for getting into making it better07:46
vilayeah, learning is always painful :)07:47
vilamgz: ping07:52
pooliewoo spiv :)08:15
poolievila, what's next for you?08:15
vilapoolie: roughly: pp'ing, re-submitting the mps I've put in WIP before my vacations (leaking tests and locking config files)08:16
spivvila: incidentally, if you want to be a really amazing PP, talk a look at the full list of WIP MPs for lp:bzr at https://code.edge.launchpad.net/~bzr-pqm/bzr/bzr.dev/+activereviews08:17
vilathen, pursuing config stuff (as we discussed) and/or more conflict resolution and/or UDD bugs08:17
spivJust in case the regular list doesn't keep you busy ;)08:17
vilaspiv: hehe, I've already looked at that if only to find my own  MPs ;)08:18
lifelessspiv: tests needed ;)08:18
vilapoolie: by the way, I was wrong yesterday, we *have* a maverick slave on babune but it's currently failing because it uses python-2.7 to help mgz08:23
=== maxb_ is now known as Guest7510
=== Adys is now known as Guest55038
=== jelmer is now known as Guest46994
=== Guest46994 is now known as jelmer
GaryvdMHi vila.11:04
vilaGaryvdM: hey !11:04
GaryvdMShould I maybe merge poolie's branch and mine together with mine, and merge together?11:05
GaryvdMOr land poolies, and them merge dev into mine?11:05
vilaGaryvdM: just land yours :) If a conflict occurs for poolie it will be trivial to fix11:06
GaryvdMvila: Ok.11:07
Crovax-31Hi, it's me again, if I have two branches, i want to apply 2 commits (and not all of them) from one to the other11:11
Crovax-31do I make a patch or it may be applyed directly?11:12
GaryvdMCrovax-31: You can do a cherry-pick merge:11:15
GaryvdMbzr merge FROM_BRANCH -r x..y11:15
GaryvdMCrovax-31: unfortunately, cherry-picks are not yet tracked in the history like other merges.11:16
Crovax-31GaryvdM:  which man page talk about this feature?11:18
GaryvdMCrovax-31: bzr help merge11:19
GaryvdMquote: "When merging a branch, by default the tip will be merged. To pick a different11:20
GaryvdM  revision, pass --revision. If you specify two values, the first will be used as11:20
GaryvdM  BASE and the second one as OTHER. Merging individual revisions, or a subset of11:20
GaryvdM  available revisions, like this is commonly referred to as "cherrypicking"."11:20
Crovax-31great, thanx for the help11:21
Crovax-31"bzr merge --revision=4761..4762 ../my_repo/" thanx GaryvdM11:31
fullermdNote that that's applying 1 commit, not two...11:39
* jelmer waves11:40
=== Adys_ is now known as Adys
=== Guest7510 is now known as maxb
=== maxb is now known as Guest10006
=== maxb_ is now known as maxb
=== lamont` is now known as lamont
LeoNerdIs there anything I ought to know about running bzr as root? E.g I'm using it to version control my DNS zonefiles in /etc/bind, inplace, so I just run   sudo bzr ...12:45
vilaLeoNerd: you may encounter errors about the log file or some config file in ~/.bazaar owned by root,12:47
vilabut AFAIK we fixed that in recent versions of bzr12:47
LeoNerdOK.. well.. so far I've not seen any errors or problems at all, in fact.. :) Was just wondering if e.g. there might be any security issues involved in it..?12:48
vilaLeoNerd: well, nothing that I know of, but as usual while running anything as root, be extra careful :D12:49
LeoNerdSure. :)12:49
LeoNerde.g I was just wondering if $malicioususer could plant some file somewhere that bzr as root would execute.. but then if said user can write to /etc/bind I suppose I have bigger problems12:50
vilaLeoNerd: being paranoid but willing to version control some files that only root can modify, I've setup some scripts to help me *copy* the original files into a versioned controlled tree, but that's just me :) etckeeper requires bzr to be run as root12:51
vilaLeoNerd: I'm pretty sure bzr doesn't rely on any external exceutable by default (except python itself of course)12:52
viladiff was used in the early days but isn't anymore12:52
LeoNerdYa.. was wondering on local plugins and whatnot..12:53
vilaat least not by default (patch were used too long ago)12:53
LeoNerdE.g. I know vim has had issues in the past with modelines and so on...12:53
LeoNerdA user could construct a modeline that means vim will execute a command as root, if root even just "view"s the file. :)12:53
vilaLeoNerd: so, even with sudo, the user plugins will be used12:53
vilaLeoNerd: you can avoid them if you don't need them with --no-plugins or with a paranoid use of BZR_PLUGIN_PATH, BZR_DISABLE_PLUGINS and BZR_PLUGINS_AT12:55
LeoNerdRight.. Well, I think this is good enough12:56
vilaok12:56
vilamgz: ping12:57
maxbI suppose one thing that could be done is for sudo to clear BZR_PLUGIN_PATH and BZR_PLUGINS_AT, much like it clears PYTHONPATH13:08
vilamaxb: meh, that will forbid the trick I mentioned above :)13:14
LeoNerdmaxb: Doesn't sudo by default clear most of env anyway?13:22
maxbit varies on config13:22
maxbmine doesn't because it's too damn paranoid13:22
maxbs/it's/that's/13:22
vilaLeoNerd: you may also consider 'sudo -H' so that ~root is used to better control which plugins are used and avoid the bugs I mentioned above13:29
mgzhey vila!13:30
vilamgz: heeey !13:30
LeoNerdAHyes13:30
mgzdid you have a nice holiday?13:30
vilamgz: just... lovely :)13:31
vilamgz: I'm looking at https://code.edge.launchpad.net/~gz/bzr/cleanup_testcases_by_collection_613247/+merge/3271113:32
mgzthere's some log from a few evening ago that might help as well...13:32
* mgz goes to find13:32
vilaand the corresponding one for testtools13:32
mgzhttp://irclogs.ubuntu.com/2010/08/15/%23bzr.html#t23:3513:33
mgzhttp://irclogs.ubuntu.com/2010/08/16/%23bzr.html13:33
vilamgz: see my comment on the mp while I read those logs13:37
mgzgreat thanks, I'll go read.13:37
vilamgz: hmm, I just realize the ~4000 uncollected test cases I'm seeing may require your testtools patch...13:38
mgzah, yeah, and I needed some feedback on if that'd break --parallel13:38
vilamgz: there is that too :)13:38
mgzwasn't clear from the code and I didn't want to fiddle around faking more than one cpu here as there weren't any failing test_selftest tests13:39
vilamgz: I don't understand how locals can be involved in ref cycles... Aren't they supposed to be freed when leaving a function/method ?13:40
vilamgz: cough, lack of test for --parallel ? I can believe it :->13:40
vilagrrr, I *can't* believe it13:40
mgzit works as an expression both ways!13:41
mgzjust needs different tone of voice imagined.13:41
vilalooks like holidays is not a cure for my typos ruining jokes disease :)13:41
mgzokay, I'll reply to a few points in the mp so they get recorded rather than lost on irc13:42
vilamgz: all the babune slaves have 2G not 8 :)13:42
vilamgz: works for me13:42
mgzI'm unsure, but I think this probably won't help babune,13:43
mgzunless some of the thread failures are of the "can't start new thread" variety still.13:44
vilamgz: Just mentioning to mitigate your remark about people with 8G PCs (not that I'm concerned here since I have 12G :-D)13:44
mgzehehehe13:44
mgzmost devs do, it's only me and parth who've reported issues running the whole test suite13:45
vilamgz: also, maverick/py27 is still failing if you want to have a look at it on babune13:45
mgzgreat, I will do.13:45
mgzhopefully I've got bugs filed on everything, but maverick might turn up a few new ones.13:46
=== JayFo is now known as JFo
GaryvdMI'm sure I read about tool in bzr to help merge changelog files, but I can't find anything about it now.14:03
GaryvdMCan anyone advise me where to look?14:04
mgzdo you just mean the news-merge plugin?14:05
vilaGaryvdM: james_w will now for sure but I suspect it's part of builddeb and similar to news-merge14:05
james_wpoolie: no, I prefer to import the new name and catch ImportError to fall back.14:05
mgzvila: what's the link for maverick/py27 on babune? (posted mp reply)14:05
GaryvdMmgz: oh - maybe that was what I was thinking about.14:05
vilamgz: it's just maverick, py27 has been installed for you, I will revert that once you're happy with the results to turn the slave into a "regular" one (revert to py26 until py27 becomes "natuarally" the default for maverick if ever)14:06
james_wGaryvdM: yeah, there's one for Debian changelogs in bzr-builddeb thanks to jam14:07
vilamgz:  in case you encounter weird problems related to extensions, pyrex is not available so far for py27 so I ran py26 setup.py build_ext -i14:08
mgzhm, and I see it ends with:14:08
mgzERROR: Failed to archive test reports14:08
mgzhudson.util.IOException2: remote file operation failed: /home/babune/babune/slaves/maverick64.local/workspace/selftest-maverick at hudson.remoting.Channel@3a777ac9:maverick64.local14:08
mgzwhich I presume is not my fault?14:08
vilamgz: the last one yes, some previous one went a bit further I think14:08
vilamgz: well, it's nobody's fault :) But I thought you fixed enough stuff to make it pass... I was wrong :)14:09
mgzyeah, #16 ran the whole suite, but hudson appears to have not managed to record the results14:10
mgzRan 20939 tests in 298.961s14:10
mgzFAILED (failures=53, errors=8, skipped=2184, expected failures=25)14:10
mgzthat's not too bad, and the tail-end ones in the console log all look like things I've got bugs open for14:10
GaryvdMjames_w: Thanks. I think it's maybe not beening used, as the debian dir is the root of the branch. I change that, and see if it works.14:11
GaryvdMmgz: Is that for py2.7?14:11
mgzyup.14:11
mgzodd, bzrlib.tests.per_repository.test_revision.TestRevProps.test_simple_revprops(RepositoryFormat6) has the same traceback five times,14:12
mgzmight mean Robert's cleanup reporting is broken on 2.7 somehow14:12
mgzha, yes, each (param) is adding a traceback14:13
vilamgz: good, I'm more concerned by the [multi part 0 .... ] stuff still looking like leaks from subunit or something14:19
mgzI'm just getting the full log now. continuing stream leaky problems probably explain the java xml parsing error at the end that's breaking the reporting14:21
mgzI'll have a look at the subunit code see if I come up with any theories14:22
GaryvdMvila: is this a bug? : http://pastebin.org/61386514:26
vilaGaryvdM: tree transform is malformed is almost always a bug :-/ bzr.dev ?14:27
=== rocky__ is now known as rocky
GaryvdMvila: no - 2.2.014:28
GaryvdMvila: Let me try with bzr.dev14:28
vilaGaryvdM: no need,14:28
vilaGaryvdM: 2.0 and dev are close enough14:28
vilaGaryvdM: a bug with a reproducing recipe will be highly appreciated (especially if you encountered it for a common use case (which I suspect))14:29
GaryvdMvila: Ok14:30
=== r0bby is now known as robbyoconnor
=== deryck is now known as deryck[lunch]
=== SpamapS_ is now known as SpamapS
=== deryck[lunch] is now known as deryck
nUboon2Agenewbie question: i forgot to add an item in the changelog when i was doing a commit.  is there a way to retroactively alter it to add the item?18:19
LeoNerdOnly by uncommit/commit, but then you've made a brand-new commit, not altered the original one. If it's a private branch nobody else is looking at, then that should be OK, but if it's been pushed or exists somewhere others can see it then its' a rather disruptive operation, as now everyone else will be out of sync.18:23
nUboon2AgeLeoNerd: okay thank you for a clear explanation.  That lays out my options fairly straightforwardly.18:28
nUboon2Ageoh, another related question: i pushed this rev onto LP.  can i somehow delete this branch (so i can do it again correctly?) LeoNerd?18:30
LeoNerdAh well, I don't really know LP much...18:31
nUboon2Agei mean the LP version of the branch, not my local version of the branch...18:31
nUboon2AgeLeoNerd: oh, okay well thank you for your help.  i appreciate it.  anyone else?18:32
nUboon2Ageokay i found a place to delete the branch, so thanks all. ;-)18:34
nUboon2Ageon the branch details page.18:35
rubbsnUboon2Age: if someone else already branched from that LP branch you could still run into trouble18:35
nUboon2Ageah good to know rubbs. thank you.18:35
rubbsnp18:36
rubbsmostly because all their stuff will be referencing that branch. It may be a good idea to just add another commit with your fix.18:36
nUboon2Agehere's just a thought: it'd be nice to have some kind of admin function where mistakes like that could be fixed. ;-)18:37
nUboon2Agei can imagine it would be complicated, but i can envision it being at least possible.18:38
vilanUboon2Age: if nobody has yet pull your branch you can do 'push --owerwrite'18:50
nUboon2Agevila: oh cool.  thanks!18:50
vilanUboon2Age: well, even if some people have pulled, you still can, they will have to either 'pull --overwrite' or merge if they really need18:50
nUboon2Agevila: excellante!18:51
hazmatwith bzrlib how do i get from a branch object to the working tree object?19:25
hazmati'm trying to programatically check if my local branch/checkout has uncommitted changes19:26
vilahazmat: you can go from wt to branch (wt.branch) not the other way around, a branch has no idea about which wt is using it and the only the wt can have uncommitted changes19:41
vilahazmat: wt.has_changes() should address your need19:42
hazmatvila, ic, thanks19:42
hazmatusing bzrlib.. given a remote branch url like lp:~zebra/foobar/trunk .. how could you open a branch object pointing to it?20:57
hazmati tried Branch.open(url) but it seems to want things from the local fs20:58
hazmatah.. i need to deference lp and use a transport it looks like21:04
vilahazmat: b = Branch.open_containing(location)[0]21:17
vilahazmat: when searching for such tricks, have a look in bzrlib/builtins.py21:17
* vila off to bed :)21:17
hazmatvila, i'll have a look, i ended up going location = "lp:~/foobar/foobra/ensemble".replace("lp:", "bzr+ssh://bzr.lp.net"); t = get_transport(location); Branch.open_from_transport(t).. doing open_containing with a remote location by default attempted to look at a local directory21:18
hazmatat least with the lp  alias21:19
lifelessyou can get *a* wt for a branch (not the only one, may not be the one being committed from, may not exist), by doing branch.bzrdir.open_workingtree()21:20

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