[07:51] Say I have a loom. What's the best way of merging the loom into the parent branch while erasing all the history, making each thread in the loom a single commit? [07:51] I could just generate patches and apply them manually. [08:06] morning [08:08] Why would anyone want to use loom instead of pipeline? [08:08] looms came first... [08:10] Neither allows you to associate a thread/pipe/patch with a message, though. [08:15] Is it possible to convert a branch to an init-repo branch without cloning all over again? [08:17] quotemstr: depending on what you mean by that, yes, see `bzr help reconfigure` [08:20] * thumper wants a command to turn a stand-alone branch into a shared repo and move the branch to a named directory [08:20] don't suppose that exists yet? [08:20] Ah, I see. [08:21] What's the difference between bzr branch in a shared repository, then, and bzr checkout? [08:22] read http://doc.bazaar.canonical.com/latest/en/user-guide/core_concepts.html [08:22] thumper: it's not hard to do that, just in a couple of steps [08:23] `mv branch name; bzr init-repo branch; mv name branch/name; bzr reconfigure --use-shared branch/name` [08:26] mgz: similar to what I do now :) [08:26] mgz: I was hoping for one command :) [08:31] feel free to submit one for merging :) [08:33] you'd need to be a bit careful over checking that the location really is just a plain branch, moving repos around is one of the easier ways to lost revision history [09:08] Okay, so I had two branches in a shared repo, trunk and test. [09:08] any lp:udd devs around? === mrevell_ is now known as mrevell [09:08] I deleted test with rm -rf, and now most bzr operations complain that the directory that used to contain test is no longer a branch. [09:09] But test was a branch of trunk. Why should trunk know about test or care that test's been deleted? [09:11] Huh. trunk is now a checkout of test? When did that happen? [09:16] jml: who are those mysterious creatures? [09:16] quotemstr: check back through your .bzr.log to see if you like [09:17] mgz: anyone who can tell me how to land https://code.launchpad.net/~james-w/udd/binary-scanning-series/+merge/119248 [09:17] jml: it's changed recently, poke vila [09:18] (if by merge you also mean deploy, otherwise it's just push to the branch, no?) [09:18] mgz: Ah, I didn't know about that file. Thanks. [09:19] mgz: so there's no gatekeeper ala pqm? [09:20] jml: nope, just merge locally, run tests (hah) and push [09:21] really needs to be deployed at the same time though, otherwise the skew from what's actually being used vs trunk becomes painful [09:21] and because the test aren't great, so breaking sooner while people still remember the mp is best. [09:22] quotemstr: you know how to change trunk back to a normal branch, right? [09:23] mgz: I'm sorry, but I don't think I can take responsibility for that. [09:23] jml: I see vila did update README_DEPLOYMENT after doing the quantal chroot stuff [09:25] jml: well, I'm not really sure who should. I can do it, but if things blow up you and james will still be the ones we coming crying to. [09:27] mgz: that's fine by me. [09:28] okay. want me to merge and push to, or have you done that? [09:28] mgz: Too late. I just puled again. [09:29] mgz: pulled, even. [09:29] Is it possible to tell bzr to use hard links _by default_? Some commands that branch internally don't provide a top-level hardlink option. [09:29] quotemstr: that works fine too, shared repo so apart from constructing tree again doesn't really hurt [09:30] hardlinks aren't a win when using a shared repo. [09:30] mgz: I'm still trying to figure out how to run the tests. [09:30] mgz: lot of dependencies, no obvious list of them or means of acquiring them. [09:32] mgz:For me they are. A branch with hard links takes 4.4 seconds. A branch without hard links in a shared repo takes 10.4 seconds. [09:32] jml: that is a good point [09:32] mgz: 'ImportError: cannot import name LAUNCHPAD_API_URLS' [09:32] from bzrlib.plugins.launchpad.lp_api import LAUNCHPAD_API_URLS [09:33] mystery meat bzr. [09:34] heh, that's a recent change on trunk, aaron updated the launchpad plugin to expect a newer launchpadlib version [09:35] and apparently udd is getting vars from launchpadlib via the bzr plugin... [09:36] \o/ [09:38] ah, it does have a comment so is for (semi) sensible reasons (launchpadlib had the api stability of a not very stable thing), wants updating though [09:39] mgz: cool. you right to do that? [09:39] yeah, I'll take that one. [09:42] mgz: thank you [09:47] ...is there any reason to support any older launchpadlib anyway? we control the versions... [09:47] jml: apart from lp, james_w introduced other tests dependencies which I don't remember from the top of my head and that are not installed (nor easy to install on jubany), caveat emptor [09:47] jml: i.e. test cannot be run on jubany [09:48] vila: what makes them hard to install on jubany? [09:48] have 1.9.12 on jubany, will making 1.6 the minimum break anything for you jml? [09:48] mgz: pretty sure not. [09:48] * jml checks [09:48] launchpadlib = 1.10.2 [09:49] we're laughing. [09:50] jml: usual china wall [09:50] vila: oh. hmm. [09:50] vila: what are your thoughts on buildout? [09:51] jml: no first hand experience, almost only bad reports though :-/ [09:51] vila: heh. [09:51] vila: my thesis is that Python packaging is terrible in pretty much every way. [09:52] vila: so it's simply a matter of choosing your means of execution. [09:52] jml: debian packaging of python stuff, or the wide range of packging available for python? [09:52] jml: oh, also, I'm now part of jfunk's team (since monday) [09:52] jelmer: deploying Python services with dependencies [09:53] jml: regarding test deps, the consensus was that the bzr-package-importer package should add them as build deps [09:53] jml: ah, ack on that [09:53] jelmer: so, every available option, including Debian packaging [09:54] which is great until you want to have more than one service on a machine, or want to be able to update a dependency without a week-long lead time. [09:55] vila: is lp:udd deployed as a package on jubany? [09:55] nope, as a branch [09:55] vila: what's the bzr-package-importer package used for? [09:55] track the other dependencies :) [09:56] lp:udd is not packaged to the best of my knowledge [09:56] I needed *something* to keep track of the deps and install test setups [09:56] vila: so b-p-i is installed on jubany? [09:56] vila: or is it just for dev envs? [09:57] jml: installed in the quantal chroot, I don't think it's installed on jubany (precise) itself [09:57] vila: and the actual service runs from the chroot? [09:58] jml: all jobs running in the chroot are started from the crontab (see lp:udd), that lefts the apache web server running on precise [09:58] and the tmp reapers [09:58] vila: thanks [09:59] vila: so, will you no longer be maintaining lp:udd once you move to jfunk's team? [09:59] and that's not that bad to be able to say that in 3 IRC msgs ;) Far from an automated deployment, but... [09:59] jml: yes, I moved last Monday [10:00] vila: yeah, definite improvement in deployment :) [10:00] vila: I asked that question with a negative, so your answer confused me :) [10:00] * jml tries the positive construction [10:00] argh :) [10:00] vila: Are you still maintaining lp:udd? [10:01] jml: no [10:01] check. [10:01] vila: who is? [10:01] jml: lp maintenance team [10:02] vila: thanks. [10:02] * vila wonders if he should have answered 'no' to the negative... [10:02] Do you still beat your wife ? [10:02] yes! [10:02] ha ! Said the single ! :) [10:02] vila: at chess? quite comprehensively [10:03] hehe [10:03] "Have you stopped beating your wife?" is the traditional formulation. [10:04] ha right [10:04] Hmm. I guess lifeless is the person to talk to re longer term udd maintenance plans then. [10:05] jml: jam has a kanban card about moving jubany to wepobs [10:06] vila: ah cool. I might approach him, since we have quite a lot of friction with our udd deployment that's currently maintained by them. [10:07] jml: hopefully I addressed a lot of the pre-requisites, apart may be pushing my b-i-p branch but the history there is pretty boring anyway ;) [10:09] vila: yeah. the main issues are that packages are a really error-prone way of managing dependencies. (there's a long lag with updates, it's difficult to get the exact versions used on prod, upgrades bypass the regular automated testing process, if your machine is shared then things can randomly break because someone else upgraded a version, etc.) [10:10] vila: and that lp:udd (well, our deployment especially), doesn't give a whole heap of visibility as to what it's doing through the web [10:12] which doesn't matter so much when you've got shell access [10:12] "really error-prone way", not sure, in the lp:udd case, the only strictly required branch is lp:udd, everything else can use the quantal packages (see my last mail in the udd ML) [10:12] today [10:13] jml: on jubany, installing from sources wasn't an option for xz-utils for example as this isn't a dev machines and the dev packages are not installed... [10:14] jml: but yeah, lack of visibility is an issue as is the need to issue commands on jubany [10:14] to fix imports [10:14] deploying new versions is another story [10:15] vila: we still use packages for non-Python dependencies. [10:16] for lp:udd ? [10:16] no, for pkgme-service, txpkgme and libdep-service [10:16] ha [10:17] we're in the middle of migrating to buildout. [10:17] oh [10:17] why not juju ? [10:17] we don't like it very much, but we like everything else less [10:18] vila: why juju? [10:19] way of the future ? Allows a single story for dev/test/prod ? [10:19] vila: That would only solve the 'many services, one machine' issue if IS were willing to have one archive per service. It would still mean that developers would have to use different packages to the ones in production, since people aren't given general access to the 'cat' archives. [10:20] jml: I found a way: chroot with a dedicated PPA ;) [10:20] vila: and it wouldn't address the multi-day -- sometimes multi-week -- lag that we get when updating package dependencies. [10:20] vila: not allowed to deploy from PPAs in production. [10:20] jml: allowed in the jubany chroot [10:20] jml: don't get me wrong, I'm not arguing *against* you, [10:21] but either juju is the preferred way and each service runs in its own isolated machine where a PPA is allowed or it's far less interesting [10:21] vila: I still see juju as very interesting, even when using something like buildout or virtualenv for dependency management [10:22] right, my point is more about: if it's isolated devs should be able to deploy specific packages [10:22] and get rid of the delays [10:23] it's a bit ironic to run end-to-end tests and then wait for deployment... [10:23] may be ironic is not the right word... [10:24] vila: quite possibly. [10:25] vila: "silly"? "pointless"? :P [10:25] and having isolated machines (1 service by machine) addresses the issues of package compatibility [10:25] okay, stopped fiddling and did that udd/launchpadlib change: [10:26] mgz: LGTM [10:26] of course devs are supposed to submit their patches upstream or to ubuntu and converge as fast as possible to the standard packages (which is what I had in mind with the pristine-tar issue) [10:27] vila: I always find such patches more convincing when they have been deployed and been known to work :) [10:27] jml: isn't it ? [10:27] That's one more reason to allow devs to deploy them to demonstrate their patch is working no ? [10:27] yes. [10:28] * vila feels better :) [10:28] lunch break [10:28] :) [10:43] hello [10:43] I have a bzr project where files mysteriously seems to have vanished [10:43] how can I figure out what happened? [10:43] heres the project: http://bzr.savannah.gnu.org/lh/emacs/xwidget/files/head:/leim/quail/ [10:43] and a missing file is latin-post.el [10:49] jave: looks like it exists in the branch [10:49] do you mean your local branch doesn't have the file? [10:50] try looking in your .bzr.log (see `bzr version` for the location) for 'latin-post.el' to see what's happened to it recently [10:51] mgz: yes, it doesnt exist in my local copy [10:53] so, `bzr status` should tell you the current state vs the last committed revision, but the .bzr.log output may be more useful (if it was bzr that touched the file rather than say, a mistake in the make clean or something) [10:53] I get: [10:53] [11406] 2012-08-17 00:01:14.716 INFO: missing leim/quail/latin-post.el [10:53] [11406] 2012-08-17 00:01:14.717 INFO: deleted leim/quail/latin-post.el [10:53] [10:54] and that's under a 'commit' command? [10:54] [11406] 2012-08-17 00:01:14.607 INFO: Committing to: /home/joakim/current/build_myprojs/emacsnew/allbranch/my-working-copy/xwidget-bigmerge2/ [10:54] 0.182 Selecting files for commit with filter None [10:54] [10:54] If I understand the log format at all [10:54] right [10:55] so, something (not bzr) removed the file, then you committed the change without noticing [10:55] okay [10:55] hmm [10:55] how can I get out of this mess? [10:56] can fix by bringing the file back and committing [10:56] should I just checkout again from my upstream? [10:56] or if it's a change you haven't pushed anywhere and don't care about, just uncommitting [10:57] recently ive only merged from upstream trunk [10:57] anh probably not pushed to the public branch [10:59] the files arent touched by build command afaics, so something more serious must have happened like a disk failure during copy or something. so, ill probably just checkout from the savannah branch and discard this broken branch [10:59] anyway, thanks. [11:01] jave: so, the simple fix is `bzr revert -rbranch::parent leim/quail/latin-post.el && bzr commit -m "Restore accidentially deleted latin-post.el file"` [11:01] which is always safe [11:02] but if you're not sure whether you might have other broken changes, and don't have any important changes you've not pushed back yet, then just restoring the branch to the trunk state is fine too [11:04] mgz: theres a large number of files mising [11:05] so I would like to revert to a known sane state [11:05] right, that does sound like the best option [11:05] and just hand pick any relevant local changes [11:05] you can cherrypick merge from your broken branch to a fresh one [11:06] yes [12:26] hm... qt4-x11 was the last thing out of the queue and it's in again... thought the issues over pending packages were fixed === deryck is now known as deryck[lunch] === deryck[lunch] is now known as deryck