=== verterok_ is now known as verterok [00:14] can I set remote locations in locations.conf? [00:15] like Launchpad? [00:21] yes === kiko is now known as kiko-zzz [01:05] hm [01:05] does anyone have a nice rsync recipe for copying all the .bzr directories and contents out of a directory tree, but not the working trees? [01:06] not offhand [01:06] -i **/.bzr or something, I guess [01:13] ah, i'd missed the top down application of rules [01:45] \o/ :!./bzr --no-plugins selftest intertree.test_compare.*test_specific -x '\(C\)' [01:45] passing [01:50] poolie: spiv: review requested please [01:50] my dirstate infrstructure change will be blocking a later review in about 2 hours. Maybe less [02:04] what is the preferred way to assert that something is either an iterable or None? [02:08] SamB in a test? [02:09] SamB i guess i'd first ask, is that really what you want to test? [02:09] don't you know which one it should be? [02:09] but, if you did want that then i guess i'd do [02:10] if result != None: [02:10] l = list(result) [02:10] poolie: not in a test [02:10] in a method [02:10] then either assert something about l or just add a comment that the cast will fail [02:11] poolie: 'result is not None' [02:11] actually, now I'm not sure what type this argument is supposed to be [02:11] oh noes [02:11] SamB: in general we don't make assertions about arguments [02:11] unless either the api changed or it's error prone [02:11] and in the second case it's better to change it [02:11] poolie: change it to what? [02:12] so just go ahead and use it in the way it should be used [02:12] if thing is not none: [02:12] return ', '.join(thing) [02:12] I just want to make sure that all the callers are passing things with a compatible interface ... [02:12] for instance, by change the api, i mean that apis that take either a string or list of strings are a really bad idea, because strings look so much like lists [02:13] SamB: we don't do that in bzr, as a stylistic choice. [02:13] igc: what is the file_iter argument to CommitCommand.__init__ *supposed* to be? [02:14] poolie: well, some of the tests here are passing callables that return iterables, and some of them are passing iterators [02:14] right now I'm not sure which tests are right, but wouldn't it be best to check in the constructor that the arguments are remotely like we want them to be? [02:15] igc is away this week [02:15] oh :-( [02:15] sick [02:16] SamB: this might just be the python generator pattern here? [02:16] you can often treat those things as the same [02:16] (kind of vague description) [02:16] i.e., iterators are iterables. [02:17] well, the most key difference is that some of the tests pass *callables* returning iterables, but some just pass iterables [02:17] SamB: whats CommitCommand? [02:17] it's in bp.fastimport.commands [02:18] oh [02:18] so, no idea. [02:18] what we generally do is; [02:18] - ensure the docstring is clear [02:18] yeah [02:18] - let the caller do what they want [02:19] and I guess [02:19] - make sure the tests are consistant with the docstring [02:21] * SamB wishes fast-import had a --dry-run mode where it did *everything* except actually create the branches ... [02:23] Samb, nice idea [02:23] spiv, there is a 1.17 branch, https://launchpad.net/bzr/1.17 [02:23] afaics you should be able to target bugs to it [02:23] spiv: ping [02:23] note that the control is hugely mislabelled as 'target to release' [02:23] and there's a bug for that [02:24] SamB: we don't generally need the last one :) if the tests are inconsistent with the docstring, so is the code, or the tests are failing. [02:25] well, quibble [02:25] they don't always have precisely the same information content [02:26] poolie: Ah ok. I don't fully understand the difference between setting a milestone on a bugtask and targetting to a release. [02:26] spiv: hi you promisedish me a review yesterday. [02:26] launchpad has succeeded then :) [02:27] spiv: targetting is a new bugtask [02:27] with its cunning strategy of labelling one as the other [02:27] spiv: there is a link 'nominate for ...' [02:27] lifeless: yeah ... maybe [02:27] depends how often those attributes get used, possibly ... [02:27] Especially when targetting to a release then offers me a list of series, not releases, to choose from... [02:27] Bug #132733 in Launchpad Bugs: “Confusing use of the term "Target to release" on bug pages.” [02:27] Launchpad bug 132733 in malone "Confusing use of the term "Target to release" on bug pages." [Medium,Triaged] [02:27] Launchpad bug 132733 in malone "Confusing use of the term "Target to release" on bug pages." [Medium,Triaged] https://launchpad.net/bugs/132733 [02:28] that was odd [02:28] lifeless: anyway, I figured out that using "bzr fast-import" definately results in callables being passed ... [02:28] poolie: possibly because you gave the bug # and the url? [02:28] i guess so, though it's odd the first one didn't include the url [02:29] oh maybe that's for the one that did have the url [02:29] must be! [02:33] spiv: ping [review] - I'll keep pinging till I get ack or nack [02:33] so I have 2 files which I have modified which I don't want to have anything to do with what I'm doing [02:33] (uncommitted changes) [02:33] lifeless: quick suggestion about setup versioning. Instead of bzr-setup-1.17-1.exe, bzr-1.17-setup-1.exe [02:33] in git I would just not stage those files [02:33] how do I get around this in bzr [02:33] psynaptic: bzr commit takes a list of files to commit [02:33] psynaptic: or ytou can shelve the changes [02:33] RenatoSilva: good idea! please put in a bug [02:34] psynaptic: bzr commit -x foo -x bar, I think [02:34] bob2: I already committed what I wanted [02:34] by cding to the dir and bzr commit . -m "message" [02:34] psynaptic: so what do you want to have happen? [02:35] but now it won't let me push or pull [02:35] shelve them [02:35] psynaptic: push --no-strict [02:35] psynaptic: the --no-strict thing is recent, and we don't like it. we're going to make it warn rather than error [02:35] what's the rationale for strict push? [02:36] I see.. my version of bzr seems old [02:36] no such option [02:36] psynaptic: ok, what actually error are you getting then? [02:36] psynaptic: we're really trying to guess at the moment [02:36] ok.. [02:37] bob2: it's clearly not a good enough rationale ;-) [02:37] bzr push bzr+ssh://user@example.com/home/cnpopen/public_html/dev [02:37] This transport does not update the working tree of: bzr+ssh://cnpopen@openlyconnected.com/home/cnpopen/public_html/dev/. See 'bzr help working-trees' for more information. [02:37] bzr: ERROR: These branches have diverged. Try using "merge" and then "push". [02:37] so I tried $ bzr pull [02:37] bzr: ERROR: These branches have diverged. Use the merge command to reconcile them. [02:37] so I tried $ bzr merge [02:37] bzr: ERROR: Working tree "/private/var/www/subdomains/cnp/" has uncommitted changes. [02:38] psynaptic: someone else (or you from another macine) has pushed to that branch [02:38] psynaptic: do this: [02:38] bzr shelve --all [02:38] bzr merge bzr+ssh://user@example.com/home/cnpopen/public_html/dev [02:38] bzr commit [02:38] bzr push [02:38] bzr unshelve [02:38] if this is a shared branch between multiple developers, you may wish to work with a checkout, which won't let you commit if someone else has pushed stuff up [02:39] bzr: ERROR: Working tree "/private/var/www/subdomains/cnp/" has uncommitted changes. [02:39] Macbook-Pro: /var/www/subdomains/cnp> bzr diff [02:39] === modified file 'sites/default/default.settings.php' (properties changed: +x to -x) [02:40] psynaptic: the shelve didn't remove the change? Interesting (and a bug) [02:40] well [02:40] it removed 2 other files [02:40] with content changes [02:40] but not the property change [02:41] Macbook-Pro: /var/www/subdomains/cnp> bzr diff [02:41] === modified file 'sites/default/default.settings.php' (properties changed: +x to -x) [02:41] Macbook-Pro: /var/www/subdomains/cnp> bzr shelve --all [02:41] No changes to shelve. [02:41] I'll change it to +x [02:41] save the hassle :) [02:41] I'll file a bug on shelve now for you [02:41] thanks a lot [02:42] are you on MacOSX/linux/win32? [02:42] mac os x [02:42] sent in [02:43] sorry about that; its disconcerting to suggest a recipe that fails [02:43] * lifeless pings spiv again [02:43] spiv: hai [02:43] where should constructor arguments be documented -- in the class' docstring, or __init__'s? [02:43] I prefer __init__ [02:43] some folk use the class [02:43] any good examples? [02:44] lifeless: no, thanks a lot for your help [02:44] I like to put instance and class attributes in the class docstring, and constructor params in the __init__ [02:44] SamB: not offhand [02:44] so this bzr commit after the merge [02:44] seems to only contain the merge changes [02:45] should I add a merge commit message [02:45] then bzr add my stuff and commit/push again [02:46] yes, something like 'Sync with dev' [02:46] thanks [02:47] lifeless: hi [02:47] lifeless: I'll look at it in about 15 minutes. [02:47] spiv: thanks! [02:47] lifeless: thanks for the nags :) [02:47] lifeless++ [02:47] spiv: I've finished all the python changes in the patch on top of it [02:48] spiv: so I'm porting to pyrex, updating docs, and submitting [02:54] hmm, very odd [02:54] now I can't see my changes [02:54] I asked another dev to pull and it just says nothing to pull [02:55] there files are there in my working copy! [02:55] *the [02:55] bzr diff only shows the files that were unstashed [02:55] *unshelved [02:56] lifeless: bug 406099 [02:56] Launchpad bug 406099 in bzr "Better file name for bzr windows installer" [Undecided,New] https://launchpad.net/bugs/406099 [02:59] what am I doing wrong! lol [03:00] bzr missing remotebranch [03:01] I think I did something stupid earlier [03:01] bzr push origin [03:01] bzr branch origin [03:01] randomly did those 2 [03:01] :/ [03:02] I don't even know the branch I'm supposed to be working on [03:02] in git you can view your available branches using $ git branch [03:02] RenatoSilva: thanks [03:03] in bzr the command seems to do something differnent [03:03] psynaptic: it makes a new branch [03:03] psynaptic: 'bzr branches' will list branches [03:03] or you can just look on your filesystem [03:03] Macbook-Pro: /var/www/subdomains/cnp> bzr branches [03:03] origin [03:03] not sure I was supposed to have origin [03:04] spiv: you may, if you're clever find bugs in the thing I've asked you to review; I won't land it independently as I'm fixing them now :) [03:04] but does that mean I had zero branches? [03:04] lifeless: hah [03:04] spiv: its worth getting your feedback on the conceptual change and how its presented, regardless [03:05] psynaptic: branches are directories [03:05] oh ok [03:05] psynaptic: it means you had no other branches under your current branch [03:05] psynaptic: you can give a url to push - bzr push [03:06] so I can just delete /origin in the filesystem,? [03:06] psynaptic: ./origin, yes [03:06] thanks [03:06] I'm a bit confused because bzr diff is not showing anything but the changes I don't want to push [03:07] * RenatoSilva gtg [03:07] I added the dir with the files I wanted to commit and committed them [03:07] but this was before this merge [03:08] maybe I have committed changes [03:08] that I haven't pushed [03:09] right ok [03:09] bzr log shows the history [03:09] bzr missing remotebranch [03:09] ^ changesets that aren't in both [03:09] what is remotebranch though? [03:09] Macbook-Pro: /var/www/subdomains/cnp> bzr missing remotebranch [03:09] bzr: ERROR: Not a branch: "/private/var/www/subdomains/cnp/remotebranch/". [03:10] I don't know what remotebranch is [03:10] whatever branch you think is missing things [03:11] I don't know ANY branches [03:11] maybe HEAD? [03:11] master [03:11] this isn't git [03:11] something like that? [03:11] psynaptic: bzr missing bzr+ssh://cnpopen@openlyconnected.com/home/cnpopen/public_html/dev/ [03:11] ahh [03:11] psynaptic: thats where you pushed to before [03:11] its therefor a branch [03:12] riiight [03:12] You have 2 extra revision(s): [03:12] bzr push bzr+ssh://cnpopen@openlyconnected.com/home/cnpopen/public_html/dev/ [03:12] if you want to save that as the default this branch pushes to do [03:12] bzr push bzr+ssh://cnpopen@openlyconnected.com/home/cnpopen/public_html/dev/ --remember [03:13] This transport does not update the working tree of: bzr+ssh://cnpopen@openlyconnected.com/home/cnpopen/public_html/dev/. See 'bzr help working-trees' for more information. [03:13] Pushed up to revision 53. [03:13] thanks for the tip [03:16] bzr update then? [03:16] why am I at a different revision to the repo? [03:16] a fellow developer says he is at rev 56 and I am at 53 [03:17] Macbook-Pro: /var/www/subdomains/cnp> bzr update [03:17] Tree is up to date at revision 53. [03:18] psynaptic: 'update' is only useful if you are using a checkout [03:18] right [03:18] you are using a separate branch, so update just checks locally and has nothing much to do [03:19] so do you think this method I'm using is inefficient? [03:19] as for your fellow, they have some different stuff in their branch [03:20] I was given instruction on how to use their bzr repo [03:20] bzr missing will tell them whether they have additional things, or are missing what you pushed [03:20] branches and checkouts work very similarly [03:20] why can't we push to the same branch? [03:21] you can, but you'll end up changing commit orders a lot [03:21] right [03:21] checkouts automate that for you [03:22] * psynaptic pasted http://pastie.textmate.org/private/makewfs23qan1jwpxwuu0a [03:22] this is what we were told to do [03:22] there are 5 devs [03:22] spiv, i filed bug 406113 [03:22] Launchpad bug 406113 in bzr "need checks or tests that compiled extensions are loaded properly" [High,Confirmed] https://launchpad.net/bugs/406113 [03:22] all working in their own environment [03:23] did you catch jam at all? [03:23] psynaptic: for that situation I'd be inclined to use two branches [03:24] how would that work? [03:24] one sec [03:26] http://paste.ubuntu.com/235578/ [03:27] lifeless: ahh I see [03:28] thanks for taking the time to do that for us [03:28] looks like a good idea [03:30] I have added it to our project wiki so hopefully we can start using it [03:31] so what does "This transport does not update the working tree of: bzr+ssh://cnpopen@openlyconnected.com/home/cnpopen/public_html/dev/. See 'bzr help working-trees' for more information." actually mean? [03:31] is it important? [03:31] working tree = checked out files [03:32] are my changes actually in the central repo? [03:32] yeah, I get that bit [03:32] push will update the branch data, but it won't update the checked out files [03:32] ok, so in this case it will update the central server but not my own working copy [03:33] "push will update the branch data, but it won't update the checked out files" [on the remote server] [03:33] push has nothing to do with updating your local working copy [03:34] that's what I thought was the working copy [03:34] but you have a working copy on the server too, yes [03:34] right [03:35] I'm still no closer to understanding [03:35] spiv: actually, the bug is in a local change anyway; that branch should be independently golden [03:35] it's probably just too late for me today [03:35] 3.35am [03:35] not a great time to be trying to work out somewhat abstract ideas [03:36] so, your "branch" is really three things: a working copy (the checked out files), the repository (all the revision data) and the branch (a pointer to a series revisions in the repository). they're each in a separate dir in .bzr [03:36] ok [03:36] lifeless/spiv: quick yeah/nay sought on bug 406113 - specifically, whining about missing extensions unless BZR_PURE_PYTHON=1 [03:36] Launchpad bug 406113 in bzr "need checks or tests that compiled extensions are loaded properly" [High,Confirmed] https://launchpad.net/bugs/406113 [03:36] push updates the remote branch and repository, but not the working copy. "update" updates the working copy [03:37] right [03:37] poolie: I don't think we should whine [03:37] so how do I see that my changes where pushed into the remote repo? [03:37] or erorr [03:37] so I can happily go to bed [03:37] bzr missing urltoremotebranch [03:37] poolie: I think we should make bzr --version, or similar, make it clear if there are any missing extensions, and get build scripts to grep the output [03:38] that would be another option [03:38] not very obvious though [03:38] Branches are up to date. [03:38] excellent! [03:38] could also go in backtraces, though lack of them is unlikely to cause tracebacks [03:38] ah, also, "bzr log urltoremotebranch" [03:38] poolie: for debs etc it doesn't matter how obvious it is, as we should be checking it and failing the build anyway [03:38] lifeless: but, anyhow - why not? [03:39] poolie: its only for people that grab a tarball or branch bzr themselves that the obviousness matters [03:39] or for cases where there's a hole in the previous process [03:39] and we already make setup.py die if the extensions don't build [03:39] poolie: which is why I'm suggesting we patch the previous process usin the same logic as whining would [03:39] thanks bob2 [03:40] as for why not, well I don't like programs that whine at me [03:40] it gives a bad impression [03:40] and I don't think our users will like it either [03:41] you think most people who don't have extensions loading have made an informed decision not to have them? [03:41] if I do bzr commit and I have added files, modified and unknown.. will only added get committed? [03:41] or at least would agree with it if asked? [03:41] poolie: most people with the power to fix it, yes. [03:41] or should I back out and shelve [03:41] psynaptic: added and modified will be committed [03:42] thanks [03:42] psynaptic: if you run 'bzr commit',it will list the things being committed in the editor window [03:42] I did that :) [03:42] hm, i don't think so [03:42] but it doesn't make a distinction in that output [03:42] why would they want that? [03:42] I know now tho [03:42] thanks [03:43] psynaptic: everything it lists will be committed ;) [03:43] psynaptic: except for unknowns [03:43] poolie: e-thread-lost [03:44] i think running without compiled extensions should be very opt-in [03:44] more so than at present [03:47] thanks lifeless and bob2, I can get some sleep now! [03:47] poolie: so, I'd like to discuss this, but not now. [03:48] lifeless: how to I tell pqm-submit that I don't have a local copy of a branch? [03:48] c u :D [03:48] thumper: I don't know; pqm-submit --help may. [03:48] i'll try it, if it works propose a merge, and we can handle it there [03:48] damn [03:48] I don't think I can [03:48] poolie: What I think is that the people *doing builds* should do the QA [03:48] which kinda sucks [03:48] poolie: not everyone executing bzr [03:48] I'm trying to submit jml's branch for him [03:48] thumper: either branch it yourself [03:49] or make up a submit message by hand [03:49] use --dry-run to see a template [03:49] huh, good point [03:49] thumper: bzr pqm-submit LOCATION [03:49] thumper: did you try LOCATIOn? [03:49] yes [03:49] also please do merges inside launchpad, thanks :) [03:49] poolie: :) [03:49] poolie: do you mean landing target stuff? lp can [03:49] it is on my mega plan [03:50] just need a queue hooked in for pqm [03:50] lifeless: we don't have queues in LP yet [03:50] lifeless: well, not exposed anyway [03:50] thumper: how does tarmac work then? :P [03:50] lifeless: it just grabs all approved ones [03:50] hello [03:50] thumper: thats a queue, effectively. [03:50] lifeless: it isn't an ordered queue [03:51] grr! [03:51] though personally, I would really want a button to say 'ok land this now', separate from approval to dosol [03:51] Is there any way to shelve changes to binary files? [03:51] JoaoJoao: bzr shelve --all, should do so [03:52] poolie: anyhow, I'm worried that bzr whinging will not prevent bad debs, and will annoy a very large number of users very quickly [03:53] ... because there's a large number of user who're using the slow python implementations and like it that way? [03:54] lifeless: does it also work with bzrtool's shelve? (shelve1 on windows) [03:54] JoaoJoao: no [03:54] :( [03:54] poolie: no, because *when a bad deb is made* a lot of users get flipped from C to python in one hit. [03:55] no go to me then [03:55] JoaoJoao: sorry :( [03:55] JoaoJoao: you could commit the file, uncommit and revert it [03:55] and then use merge -r revid:xxxx, to restore it later [03:55] yeah, if we add this we'd presumably want to check it in the deb build process [03:56] poolie: and thats my point, if we check it in the deb, I don't think we need to be obvious at runtime for users. [03:56] we already check in setup.py [03:56] lifeless: that would work, but too much of a hassle to me... thanks for the tip anyway [03:56] its just that the setup.py check doesn't check that the things built are used afterwards [03:57] (there is a bug about builds on karmic, they put the .so's in bzrlib/bzrlib/*.so [03:57] which setup.py should arguably catch as well [04:16] just for a laugh: bzr branch lp:hg-git :-) [04:16] * SamB hopes the LP devs remembered to use bignum for bug numbers rather than fixnum ;-) [04:21] Hey all, I'm after a bzr pkg (v1.17.1) for Ubuntu Jaunty powerpc (arch)? Can't use Karmic as want to install Launchpad [04:22] meaton2veggies: it's probably easy enough to build from source using the source package bits in the ppa? [04:24] mwhudson: ok great, is there any doco for building bzr from src [04:24] meaton2veggies: it's just 'debuild' isn't it? [04:27] debget <<.....dsc>> [04:27] then dpkg-buildpackage [04:27] or debuild [04:27] lifeless: thanks [05:01] spiv: I'm landing that branch w/o the fixes- they are in my next patch anyhoo, ok ? [05:02] I'm down to three failures on the pyx code [05:10] lifeless: sure [05:12] 2 failures [05:30] \o/ [05:30] guess what [05:38] way to go robot [05:40] I'm integrating/improving the docs now [05:40] then its up for review, and qa to see if it improves commit :) [05:55] lifeless: installed deps for building, however error on install of packages trying to do 'make DEST=blah install' [05:55] lifeless: should this be changed to something in debian/rules? [05:59] meaton2veggies: hmm? [06:00] python setup.py? [06:00] meaton2veggies: dpkg-buildpackage [06:00] this will build a debfor you [06:00] then you can install the ppc deb [06:00] isn't that what you wanted? [06:01] yes [06:01] but its failing on install part, compiles fine [06:01] pastebin? [06:02] spiv: now, if you want dirstate patches to review [06:02] 112K of bundle on its way to lp now [06:03] http://pastebin.com/d3905e25a [06:04] meaton2veggies: thats odd; are you using the source package from launchpad? [06:04] lifeless: yes from launchpad [06:05] theres no install target in the Makefile i think, that correct? [06:05] thats correct [06:05] so the debian/rules file you have is broken or something [06:05] yeah [06:05] which is confusing, as to have a binary buld it has to have been correct when we uploaded it [06:06] what url did you use to get the source from? [06:06] the debian/rules were created locally [06:06] meaton2veggies: don't do that [06:06] the source didnt come with debian/ [06:06] use debget and get the whole source package from the ppa [06:06] i did do that im sure [06:06] if you did that you would have gotten a debian dir [06:06] ok [06:07] using this package https://launchpad.net/~bzr/+archive/ppa] [06:07] using this package https://launchpad.net/~bzr/+archive/ppa [06:07] yes [06:12] lifeless: u use debget with the *.dsc file? [06:12] thats my recollection [06:13] i'm not getting anything for some reason [06:15] yes, ddsc [06:15] I'll test [06:19] oh [06:19] debget is apparently toast [06:20] an easier way [06:20] ok [06:20] add the https://launchpad.net/~bzr/+archive/ppa to your sources.list, as per the web page [06:20] apt-get source bzr [06:20] then do [06:20] yeah im not gettin source for 1.17 though for some wierd reason [06:21] its giving me 1.13 from ubuntu repos [06:21] have you added the ppa? [06:21] wait correction [06:21] done apt-get update? [06:21] its fine [06:22] YAY! [06:23] :) [06:35] lifeless: cool, bzr (powerpc) deb created and installed thanks for assistance [06:35] my pleasure [07:12] EODing [07:27] poolie: ping [07:34] i'm having problems with bzr upload. when I try to upload a repo, i get bzr: ERROR: Invalid url supplied to transport: "README.txt" [07:34] what's up - is this a permissions issue or something...? [07:34] what url are you giving bzr upload to push to? [07:35] bzr upload bzr+ssh://my.server.com/srv/foo [07:36] lifeless: pong [07:36] it should be using the user 'chris' just like when i ssh in. [07:36] this sounds familiar [07:36] is there a backtrace in .bzr.log? [07:36] when i ssh in I can make files in that folder easily [07:37] poolie: I'm done with the most recent arc, modulo review feedback and excludes (which we can defer a little, I think) [07:37] there is no .bzr.log [07:37] ~/.bzr.log [07:37] nice one [07:38] poolie: Unless you have specific requests, I'm just going to be popping 2.0 things off the milestone [07:39] poolie: as I start before you, you have until I wake up to leave something here giving a specific request ;P [07:39] * lifeless is gone but can be rung [07:40] sounds good to me :) [07:41] lifeless: bombs away re 6m cycle rfc [07:41] http://dpaste.com/72786/ [07:43] chrispitzer: so it looks like a bug or an incompatibility between bzr and the upload plugin [07:43] i assume you do actually want the tree contents uploaded? [07:45] i mean, that you want a full checkout on the server [07:47] yea [07:47] it works great for a bunch of sites I use it on... bzr upload that is. [07:47] it just doesn't want to work this time. [07:48] *shrug* time to get on with my life I guess. :P [07:57] thanks anyway - later [08:20] hi all. Is there an easy way to merge a git branch into a bzr one? I tried using a simple "bzr merge" command but no luck [08:21] mdke_: what happened? [08:21] you probably need to specify the revision range [08:22] and obviously you need the bzr-git plugin [08:22] if the bzr branch wasn't made from git, you can't trivially merge [08:23] poolie: it said that it wasn't a branch [08:23] lifeless: ah, damn [08:24] lifeless: I'm working on an Ubuntu branch which was imported from the upstream svn project (gnome), but now that gnome has moved to git, I need to figure out some way of merging in the changes [08:24] short of using the "cp" command... [08:24] lifeless: I suppose the solution is to use Launchpad's import service to import the upstream project into bzr and then merge from that [08:26] poolie: is the bzr-git plugin available in Ubuntu, do you know? [08:27] I couldn't see it [08:32] brb [08:40] mdke_: you need to essentially recreate your history on top of the git import [08:40] we should make a tool to do this for you [08:40] but you can approximate it with bzr fast-export and then fast-import on top of a bzr-git import [08:41] lp does bzr-git imports [08:43] lifeless: ok, so I'll wait for the Launchpad import to take place, and then try those two commands. So I'm basically going to have to scrap the Ubuntu branch and make another one, right? [08:43] Is bzr-git built into bzr-1.17? [08:43] (my distro hasn't posted a new package yet, so I can't see for myself) [08:44] AfC: no [08:44] mdke_: sadly yes [08:44] lifeless: that's ok, we'll blame gnome for switching [08:45] mdke_: you'll need to provide -r parameters to the export :P [08:45] ok [08:45] oh AfC hi [08:45] I want to make a little progress bar [08:45] lifeless: hello Robert [08:45] sitting on the right hand side of my screen, at the bottom [08:45] is there a precanned gtk thing for this? [08:45] thanks for the help lifeless, gtg now [08:45] I knowof the ProgressBar widget, I mean the rest [08:45] lifeless: I'm sure you want to make "a little progress". The rest of us are also hoping you'll make "a little progress". [08:46] feh [08:46] lifeless: by "at the bottom" do you mean "on the panel" or "always on top (ie, small docked [sic] window)" or... [08:47] its the output from test runs [08:47] * AfC presumes that if lifeless meant on the panel, he would have said "applet" in there somewhere. [08:47] so I want something reasonably unobtrusive [08:47] yeah [08:47] I guess having a window that shows on the task list, with the content on the task list being a progress bar would be lovely. [08:47] lifeless: that's gonna be hard [08:48] What do you want more than a little window with geometry -0-0 or some such? [08:48] AfC: yeah, I'm not shooting for that today. Just completing a TUIT I've had for a while for subunit. [08:48] lifeless: [as an aside, it's a shame that applets are such an insanely convoluted API, since applets are what most of us want in these cases] [08:48] I can pipe subunit through subunit2pyunit --progress, to get bzr progress bars [08:49] but thats nowhere near as bling [08:49] lifeless: well, there's the "shell bindings", ie `zenity` [08:49] so if you're already thinking in terms of pipes that might do the trick [08:49] let me russle up an example for oyu [08:49] zenity progress bars? [08:49] * lifeless looks around in alarm [08:50] zenity anything, really [08:50] wheee [08:50] http://library.gnome.org/users/zenity/stable/zenity-progress-options.html.en [08:50] its scary [08:51] What does an error like this mean? No handlers could be found for logger "bzr" [08:51] MT-: commonly it means that your ~/.bzr.log is readonly [08:52] Is 770 ok, or does other need read permissions? [08:53] lifeless: so, try [08:53] $ zenity --progress --title "bzr test" --auto-close --percentage 80 --text "Current module: format stabiltiy" [08:53] AfC: yeah, thing is I need a subunit converter on it anway; that makes me inclined to just do the whole thing in python [08:53] as I recall, you feed stdout 0-100 and #blah [08:53] cleaner for the user than typing [08:54] lifeless: in that cast, yes, just use pygtk [08:54] | subunit2zenity | zenity ... [08:54] AfC: yah [08:54] I'm going to crib from http://www.andrew.cmu.edu/user/skey/research_prev/checker/working%20now/gui/pygtk2tutorial/pygtk2tutorial/sec-ProgressBars.html I think [08:54] lifeless: I added o+rx to everything... [08:54] lifeless: dunno. I'm not a Python guy :) [08:54] MT-: your ~/.bzr.log needs to be _writable_:) [08:55] lifeless: that is [08:55] MT-: try stracing bzr [08:55] um.. [08:55] MT-: or file a bug [08:55] I'm actually not really here right now [08:55] lifeless: [but you might want to ask if there's anything newer. The screenshot there looks OOOOOOLD] [08:55] I screwed up somewhere.. [08:55] always a give away [08:55] I doubt it's a bug [08:55] lifeless: does that file need to exist on the setver? [08:55] MT-: the path to it does [08:56] bzr will create the file in the directory if it doesn't exist, and needs to be able to do so to do log rotation [08:56] lifeless: a slightly better idea might be notification area icon + a docked window with the progress bar in it [08:56] (ie, click icon, see progress bar) [08:57] AfC: how hard is it to do rendered icons? [08:57] lifeless: you mean ... what do you mean? [08:57] lifeless: so, the .bzr.log you're referring to - is that my system or the server? [08:57] lifeless: you mean how hard is it to design icons [08:57] lifeless: or, [08:57] lifeless: how hard it is to change icons through a series to visually represent progress? [08:58] AfC: I mean, to create the icon on the fly using code to create the pixmap/svg/whateverthebackendneeds [08:58] has to be server... [08:58] lifeless: (gnome-power-manager's battery indicator being a good example of that, although last I saw Ubuntu they heavily fuck with the theme & icon set there, so as usual all bets off for people who don't use upstream) [08:58] all of the code I've seen so far wants icons paths on disk, I think. [08:58] lifeless: ah [08:58] lifeless: not too hard, actually. [08:58] lifeless: Cairo is good at that sort of thing [08:58] so, I don't want to make 100 icons all 1% further complete [08:59] yeah [08:59] or, better [08:59] disk? Hm. [08:59] * AfC looks [08:59] a complete mix of fractions for pass/not run/error/fail [09:00] actually, -> gnome-hackers I think [09:00] we've got StatusBar's setFromPixbuf(), so worst case you can draw the image to a Pixbuf and then feed that to that method [09:01] [there is an IPC barrier in the way, so it's not like you're going to be able to talk to an XlibSurface / GdkPixmap directly] [09:01] lifeless: any packages not installed that could cause that? [09:02] AfC: yeah, I don't care about htat :P [09:03] MT-: if the error only shows when you do something with your server, then its probably permissions on the server. [09:03] lifeless: if I set 777 on them, it still shows up :S [09:04] MT-: then its something else. [09:04] When I create the repo, everything is michael:bzr [09:04] MT-: Like I said, I'm not really here right now. Your best bet is to file a bug, so that we can gather some data and help you solve the problem. [09:04] We'll likely also find why bzr is giving an opaque output to you and fix that so its easier for other people. [09:05] hm - bzr:bzr did the same [09:07] lifeless: any reason 770 wouldn't be good enough? [09:07] please file a bug [09:07] I'm having dinner and stuff like that [09:07] I can't help you at the moment, for all that I can feel your pain. [09:09] well... I verified it's not permissions [09:09] it's something with the system [09:09] I'll file a bug later on it [09:09] If I can't figure it out [09:10] anybody else have any other ideas? [09:15] Sleep time - If anybody does know though, please hilight - I installed bzr on the server using aptitude install bzr and let it install its deps. Then I setup permissions and did bzr push bzr+ssh://x.x.60.226/bazaar/branches/test. It seems to work, but I get the error No handlers could be found for logger "bzr" [09:17] MT-: as I said, _please_ file a bug [09:17] its the best way to help us help you [09:20] lifeless: ok, I'll do that tomorrow - it's too late to make sense when I detail it [09:20] lifeless: thanks [11:23] hi folks === sabdfl1 is now known as sabdfl [11:24] hihi mark. [11:24] como esta? [11:24] Kinnison! long time no speak [11:24] well thank you, and you? [11:25] is there work afoot to make explicit commit (bzr commit a b c) follow the new codepath for bzr 2.0? [11:25] sabdfl: getting on, getting on. [11:25] sabdfl: gearing up for the final production run on http://www.entropykey.co.uk/ [11:25] sabdfl: Lots of interest here at debconf for it. [11:25] i hear debconf has been fun [11:26] It has been good. Lots of "interesting" announcements, especially the release team's announcement about trying to sync up debian releases with Ubuntu LTS releases [11:28] sabdfl: I think lifeless posted a patch for it earlier. [11:28] thanks fullermd [11:28] Kinnison: how was that received? [11:28] sabdfl: mixed. At the conf itself, reasonably well. On -project and -release, marginally more whinging. [11:29] sabdfl: I'm not yet convinced we won't see an attempted GR to reverse the decision [11:30] anything can happen in Debian [11:31] Aye. [11:31] So, congrats on the Launchpad/AGPL release [11:33] thanks much [11:41] sabdfl: I admit to not knowing what you mean by that codepath, but coupled with fullermd's remark http://www.advogato.org/person/robertc/diary.html?start=104 seems to fit [12:10] LarstiQ, dude! === chad_ is now known as CardinalFang [12:11] jelmer: I see you're not plaintexting over untrusted networks anymore ;) === chad_ is now known as CardinalFang [12:21] LarstiQ, I'm not sure how I can be signed in, I don't recall sending my password.. [12:24] Don't worry, I sent it for you 8-} [12:26] Is this an appropriate channel for bzr-svn questions? [12:26] fullets_, yeah [12:26] fullermd, (-: [12:27] I pushed a commit to a Subversion repo using bzr, and it was the first commit to that repo via bzr. The bzr:base-revision property of the commit was set to the commit preceding its immediate ancestor though [12:28] So my commit via bzr is revision 15993, it thinks its ancestor is 15991, and new bzr branches of that repo omit completely 15992 [12:28] Is there an easy way to fix this? [12:28] fullets_, what sort of operation happened in svn ? [12:29] From subversion's point of view it's all just a bunch of commits [12:29] fullets_: does "svn log " include that particular commit? [12:29] Yes [12:30] Not on the repository URL but on the branch URL? [12:30] Oh, one sec [12:30] Sorry, what do you mean by branch URL? [12:31] The URL to the branch in the Subversion repository [12:32] e.g. if the repository is at svn://svn.gnome.org/svn/gnome-specimen then perhaps the branch is located at svn://svn.gnome.org/svn/gnome-specimen/trunk [12:32] Ah, then yes, it shows up via svn log http://stuff/trunk [12:38] hmm, odd [12:39] bzr-svn should be warning when the order of the commits in svn doesn't match the bzr metadata [12:39] do you get any warnings during a clone? [12:40] No. There have been warning during pulls into an existing bzr branch about tags moving round, which I shut up with --overwrite, but the problem is still present in a fresh clone in a fresh repo [12:40] fullets_, So, the easiest way to cope with this problem would be to simply remove that property [12:41] I would be interested to know though how you ended up with that property [12:41] A-ha, but it's a versioned property on the branch root - is there a better way to do that than svnadmin dump -> hack hack hack -> svnadmin load into a fresh svn repository? [12:41] Oh, wait, no [12:42] it would be a revision property [12:42] I deleted *all* the non-versioned revision properties, including bzr;base-revision, from subversion [12:42] bzr-svn doesn't set base revision information in file properties [12:42] fullets_, did you also remove the bzr-svn cache? [12:42] A-ha! [12:43] I was thinking of the bzr:see-revprops property [12:43] That lives under ~/.bazaar somewhere, no? [12:44] fullets_: ~/.cache/bzr/svn or ~/.bazaar/svn-cache (legacy) [12:45] Thank you === kiko-zzz is now known as kiko [13:09] SamB: you asked about Ubuntu packaging branches, right? https://code.edge.launchpad.net/ubuntu === mrevell is now known as mrevell-lunch === sabdfl1 is now known as sabdfl [14:01] when trying to check out a branch, I get this error: bzr: ERROR: KnitPackRepository('file:///home/aquarius/canonical/ubunet/.bzr/repository/') is not compatible with RemoteRepository(bzr+ssh://bazaar.launchpad.net/~ken-vandine/ubuntu/karmic/desktopcouch/karmic/.bzr/) different rich-root support [14:01] what do I have to do to upgrade my local repository? === mrevell-lunch is now known as mrevell === JamalFanaian|afk is now known as JamalFanaian [14:21] aquarius: upgrading your local repository is one option, or you could branch --standalone to tell it to not use your repository [14:22] aquarius: bzr info will tell you what formats are for each branch [14:25] Hi all. I am setting up my first vcs and I am considering bzr. The only problem I am having so far is how to handle users... I will be following mostly the centralized layout and when users push I want them to be able to use a unique username/password. sftp seems like it will not fit the bill for this application. [14:25] Chocobo: why not? [14:26] with sftp or bzr+ssh://, the straightforward setup is to have everyone use their own username/password [14:27] Hrmmm... would each user just be part of a group for the bzr repo? I am trying to figure out permissions, where to out the repo, etc. [14:29] Chocobo: yes [14:29] Chocobo: and I highly recommend making use of posix acls [14:30] Do you know of any documentation that describes setting up bzr this way? [14:33] Chocobo: I'd check the user guide [14:35] ohhh I see, so I would do something like "setfacl -m user:USERNAME:rwx bzr-repo" [14:36] LarstiQ, if I upgrade my local repository will it upgrade all the branches that are in it? [14:39] aquarius: all branches will have their revision storage upgraded (by definition). [14:40] aquarius: can you tell me what format `bzr info` thinks the desktopcouch branch is? [14:40] LarstiQ, cool; I'll do that, then. How do I upgrade my repository? [14:40] bzr info bzr+ssh://bazaar.launchpad.net/~ken-vandine/ubuntu/karmic/desktopcouch/karmic/ -> Standalone branch (format: unnamed) [14:41] Chocobo: I'd go for group:bzr:rwx and default:group:bzr:rwx [14:41] Chocobo: but yes, that's basically it, since standard Unix permissions are a bit fidgetty in this regard, but posix acls solve it properly [14:41] oh feh [14:42] Ok, thanks. I have never used acl so I will have to look into it some more. Basically I need to make sure that files added have the appropriate permissions. [14:42] aquarius: do note that since in this case there is rich-root discrepancy, if you have branches that need to interact with other non rich-root branches this will then shift the problem [14:43] Chocobo: yes [14:43] aquarius: do you only have desktopcouch branches in that repository? [14:43] LarstiQ, no, I have loads of branches of loads of things [14:46] aquarius: then I would not recommend upgrading all of that to a rich root format just yet, the pain with the distinction will soon be something of the past with 2a [14:46] aquarius: so, my recommendation is to either branch it standalone, or use a seperate repository for it [14:47] LarstiQ, ok, cheers [15:01] LarstiQ: I don't think I would be able to find anything on that page ;-P [15:03] LarstiQ: also, what is this "password" thing of which you speak? [15:04] SamB: where? [15:04] SamB: to Chocobo? ssh [15:05] hrmm? [15:06] LarstiQ: do you want me to be quiet, or are you talking about secure shell? [15:07] SamB: I still am not sure what you were referring to, but we discussed secure shell accces to a centralized server, yes [15:11] LarstiQ: I'm being facetious, actually ;-) [15:11] pretending I forgot that SSH supports password-based authentication [15:11] SamB: ah, I didn't catch on to that :p [15:19] what does [15:19] bzr: ERROR: Server sent an unexpected error: ('error', 'No repository present: "chroot-139854732:///home/sites/"') [15:19] mean? [15:19] (I'm trying to branch from another server in our local network) [15:19] bzr branch bzr+ssh://root@webutils/home/sites/ [15:20] Mez: The error should be formatted better, but it usually means the server on the remote site was unable to find a repository related to the branch it has opened. [15:20] if you log in as root@webutils and run "bzr log /home/sites", does that work? [15:20] how would that happen? I can branch locally [15:21] bzr: ERROR: No repository present: "file:///home/sites/" [15:21] root@webutils:/home/sites# bzr log | head -n 2 [15:21] ------------------------------------------------------------ [15:21] revno: 513 [15:21] works though [15:21] Mez: `bzr info` says the repository is where? [15:22] shared repository: /home/webteam/bzr [15:23] WOW! ACL's are awesome. [15:23] ah, ok, I see. [15:23] * LarstiQ blinks [15:23] Chocobo: they are! :) [15:23] /home/sites is a symlink [15:23] that default: thing is crazy cool. :) [15:23] * LarstiQ nods at Chocobo [15:24] Mez: aha. [15:24] Thats better, 10000kB/s rather than 18 === lamont` is now known as lamont [15:28] Can ConfigObj return lists of values? [15:30] * awilkins RTFS [16:18] hi guys, anybody has copy of monotone's document about daggy fixes? their wiki is down during last several weeks and I can't find the way how to get it from google cahce [16:36] bialix: I think the gist of it is "find the revision that introduced the bug and branch from there to fix it", but you probably knew that [16:36] bialix: Frustratingly, many of the wiki pages are in the google cache but I couldn't coax this one out [16:37] I knew the gist, I'm interesting in document to show to other people [16:37] me too === thekorn_ is now known as thekorn === reggie is now known as reggie_bzr_newbi [16:44] what does it mean when bzr 1.17 complains that a folder is not versioned but has versioned children? [16:47] in one branch child file was changed, but in other branch folder+child were deleted [16:48] bialix, that doesn't seem to be the case here. I can't seem to find much in google about this. is there a command to show me what bzr thinks is the status of my folders? [16:48] bzr status [16:48] bzr ls -v [16:51] bialix: maybe an older version, but http://web.archive.org/web/20071115025521/http://venge.net/mtn-wiki/DaggyFixes [16:52] luks: many thanks, it's enough [16:54] how do i get a tree for a specific revision? [16:55] see revisiontree [16:58] hmm [16:59] its not exactly self explaining :( [17:04] repository.get_revision_tree(revision_id) or something like that [17:04] it's simple enough [17:04] found mirror for mtn site: http://mtn-wiki.1erlei.de/wiki/DaggyFixes/ [17:13] loggerhead 1.10 works fine with Bazaar 1.17, right? [17:13] (the 1.10 release is from so long ago, it seems like a good idea to ask) [17:14] kfogel: its require_any_api includes 1.17 [17:18] kfogel: so it should, yes [17:19] oh wait [17:19] * LarstiQ slaps self [17:19] ? [17:19] kfogel: ahem, that was the loggerhead copy for my bzr.dev [17:19] LarstiQ: I'm not sure I understand. Do you have local mods? [17:20] no, but it is very likely not 1.10 [17:20] * LarstiQ downloads and checks 1.10 [17:21] kfogel: which has required_bzrlib = (1, 6) [17:21] LarstiQ: does that translate to "1.6"? [17:21] kfogel: so 1.10 might complain with 1.17 [17:21] meaning anything higher than 1.6 will work? [17:22] kfogel: I think so [17:22] beuno: time for a new loggerhead release? [17:22] is the progress indicator with "Fetching revisions: Inserting stream" the revision-fetching progress, or the overall (branch) operation progress? [18:04] hrm: No handlers could be found for logger "bzr" [18:18] I need a bzr expert. I have two repos that have the exact same directory structure but bzr apparently thinks that one of them has folders that are non-versioned === mrevell is now known as mrevell-dinner [18:38] LarstiQ: any idea where jelmer is? [18:42] reggie_bzr_newbi, hey hey. [18:50] LarstiQ, ooooh yes [18:50] I dream about it [18:56] bah [18:56] Just converted a large repository (used for bzr-svn) to 2a [18:57] Repacking it now, bzr is taking upward of 1 GB of memory [18:57] Seems to be an endemic problem with bzr -- several operates take incredible amounts of memory... [18:57] *operations [19:12] Is there a convenient command to find the common ancestor revision between two branches? [19:13] bzr merge --show-base? [19:14] maxb, The revision specifier can do that. See "ancestor" under $ bzr help revisionspec [19:16] reggie_bzr_newbi, Still have a problem? [19:17] CardinalFang, yes. this is really maddening [19:18] reggie_bzr_newbi, Ignoring the directory bit for a moment -- what is it you're trying to do? [19:18] CardinalFang, I have two branches in a repo that I can't merge between. do folders have to have the same id between branches? [19:18] CardinalFang, we have a small svn repo that we are converting to bzr. we just did a fresh bzr svn-import that finished without error [19:18] branches and tags all look ok [19:20] we did a series of null merges so that bzr thinks that everything is merged up [19:20] essentially cd verY; bzr merge ../verX; for each topleveldir bzr revert X; bzr revert .; bzr commit [19:21] at that point, doing a bzr merge ..\verX in verY shows 'nothing to do' [19:23] now we make a small change in verX and try to merge to verY. it gives conflicts complaining about a directory not being versioned. pretty sure I've found the problem but not surehow to fix [19:23] doing a bzr ls --show-ids in the root of verX shows that one of my folders (the one that is causing the problem) has an id that is different than what it has under verY [19:23] reggie_bzr_newbi, That final "bzr revert ." should revert all file contents and leave all metadata. That's special. "bzr revert $subdir" will undo changes, file contents and metadata, for files beneath that directory. [19:24] Is that what you intended? [19:24] well, I had 3 files in the root that existed in verX but not verY [19:24] so after the merge I had file.base and file.other [19:24] I couldn't revert by filename, it just gave me an error [19:25] bzr revert . removed them [19:25] it was correct for them not to exist in verY, but I didn't bzr to understand that [19:25] but I wanted bzr to understand that [19:25] reggie_bzr_newbi, I'm not sure what "bzr revert $dir" will do for a merge. I'm trying to decide if it makes sense. [19:28] We take it to a private discussion. [19:32] ronny: jelmer is at Debconf [19:33] * jelmer waves [19:33] oh, sup [19:34] jelmer: what are the future plasn for dulwich, stay protocols + data formats, or more [19:34] ronny, Basically fix bugs, improve performance [19:34] i see [19:35] ronny, If git ends up implementing a new format (which seems unlikely at this point) dulwich will implement it as well [19:36] jelmer: i'd like to be able to do in-memory-merges at some point for all vcs's [19:36] so i want to see if they have things to offload the tricky bits [19:36] ronny: Ah [19:37] ronny: I'm not particularly interested in maintaining an implementation of merge in Dulwich, to me it is mainly about the formats and the protocols [19:37] basic retarded commit building works [19:38] jelmer: a rename finder might suffice to make my life easy thon [19:38] (i kind of dont want to do that one) [19:40] ronny: I don't have any plans to do one, but there might just be somebody else who is interested in contributing one [19:43] jelmer: dont you need one for bzr-git anyway? [19:43] ronny: A rename finder? [19:43] jelmer: yes [19:43] ronny: Eventually we'll need a rename finder for bzr-git, but there already is one in bzr that we might be able to use there. [19:44] ronny, And it doesn't look like it will happen in the short term since tracking renames means changing the bzr-git mapping format and that will cause all revision ids to change. [19:44] i see [19:44] ronny: I'm open to the idea of having one in Dulwich, it's just not really something I particularly care about myself. [19:45] i'll take a look at implementing one later on [19:46] hmm, i despiese the launchpad bugtracker, so many clicks, so long loading times [19:47] ronny: it does have a hugely redeeming feature, though: you can interact with it entirely by email. That's a huge win. [19:48] ronny: not saying that long load times are a good thing, of course. [19:48] kfogel: given todays email clients neither is nice [19:49] ronny: are you saying that today's email clients are worse than yesterday's, in certain ways? (Couldn't quite tell.) [19:54] kfogel: no [19:54] kfogel: they are shit since ages [19:54] ronny: :-) [19:55] this might be the fault of the email protocols [19:55] i dont expect anyone that touched a imap implementation to be able to do reasonable userinterfaces [19:56] * Tak blink === reggie_bzr_newbi is now known as reggie [20:10] salgado is reporting that he can reproducibly create a branch that is unpullable using "bzr branch" and "bzr push": "A request was made for key: ('sha1:f4bb3cbd77a7fa6ed7b4a9df79d4e3b69c0cc1c6',), but that content is not available" [20:31] ronny: I'm rather happy with mutt actually [20:31] LarstiQ: never managed to warm myself up to that one [20:32] ronny: somehow it seems to mesh well with my vi mindset [20:32] LarstiQ: not with mine tho [20:33] LarstiQ: whats the usual amount of mail you manage, i got hundreds if megabytes of dozens of mailinglists [20:38] ronny: I switched my non-work mail around november of 2006, the Maildir since then is 730M [20:40] LarstiQ: i see, sounds like a fit quantiy [20:41] but I've removed a lot of mailinglists from that I'm no longer subscribed to [20:41] like debian-devel, really can't keep up anymore [20:41] (and low on disk space, so..) [20:41] i keep buying larger harddisks [20:42] * LarstiQ wants to move to a new server but has some inertia there [20:42] ronny: work mail since the same period, 11051 entries, but that also has seen a bunch of deletions [20:42] those are quite good amounts [20:43] hmm [20:43] good as in not yet too much that clients croak? [20:43] ops [20:44] i just noticed i that anyvc doesnt deal with ignored files [20:44] (in bzr) === [1]reggie is now known as reggie [21:00] want to ask something regarding "removed" files [21:02] lets say i remove some files from one branch and i "keep" them, when I push the changes to another branch , when the branch is updated the files are removed, how can I keep them on the other branches as well? [21:03] ronny: that should be easy to fix? [21:04] LarstiQ: well, as soon as i have tests, and a generic working ignore command [21:04] LarstiQ: so its more work, but a easy fix [21:04] i"ll give vellum some love now [21:05] Savvas_P: you can't (got mentioned in https://bugs.launchpad.net/bugs/402196 but I don't think a specific feature request got filed) [21:05] Launchpad bug 402196 in bzr "remove --keep deletes files from disk in remote branches" [Wishlist,Triaged] [21:05] ronny: right. [21:05] ronny: vellum? [21:06] LarstiQ: a task based build tool [21:06] * LarstiQ looks it up [21:06] ronny: like (n)ant? [21:07] (or, not that I think of them that way, scons or waf) [21:08] LarstiQ: OK thanks [21:08] LarstiQ: its not an inference machine [21:08] LarstiQ: its supposed to automate things around a python style project [21:10] lifeless: Salgado is reliably producing corrupt branches when he pushes to launchpad. He was unable to reproduce it locally, even pushing stacked over the smart server. [21:10] lifeless: He is using 1.18dev. [21:12] ronny: Zed Shaw is involved with pida? [21:12] LarstiQ: nope, i just kind of started working on vellum and he stopped for now [21:16] k [21:19] abentley: hi [21:20] salgado: have you filed a bug? [21:20] lifeless: Hi. [21:20] abentley: whats the nature of the corruption? ACF on pull/scan ? [21:21] lifeless: https://pastebin.canonical.com/20552/ [21:21] lifeless, not yet [21:21] lifeless: On my stale version of bzr.dev, it gave an ACF, but when I updated, I got the same error. [21:22] abentley: this is ACF still, jam added a method to raise [21:23] I'm not sure ValueError was the best exception to raise, but anyhow [21:23] it does the job [21:23] The ACF is on branch. [21:23] this is missing a CHK page [21:24] lifeless: I thought so. It wasn't created using a bundle, though. [21:24] lifeless: Or at least, salgado can reproduce it with push. [21:25] salgado: when did this start happening? [21:25] lifeless, I first noticed it yesterday [21:25] salgado: does it happen to all branches, or just this specific one? [21:25] lifeless, any branches on this project [21:26] lifeless, other than (my own) trunk [21:26] are you working from a shared repo? [21:26] yes [21:27] so, this suggests several bugs to me [21:27] the smart server isn't asking for enough follow up data [21:27] or the smart server is trying to read data it doesn't need [21:28] the former would be on push,the latter on pull [21:28] salgado: could you please file a bug [21:28] so we can start recordin the data we gather [21:29] will do [21:29] abentley, got the same error when branching from a branch pushed with bzr-1.17 [21:30] one possibility is that you have managed to trip the trie size expansion in your branch [21:30] * salgado tries branching with bzr-1.17 [21:31] but that doesn't seem likely if *all* your branches that you push are bong [21:31] right [21:33] lifeless, when I branch from within my shared repo I don't get the error. (not sure you've seen that in the discussion) [21:34] actually, when I'm within the shared repo and branch from lp.net, I don't get the error [21:34] is the bug filed? [21:35] filing now [21:36] lifeless, https://bugs.edge.launchpad.net/bzr/+bug/406597 [21:36] Launchpad bug 406597 in bzr "ACF when trying to branch from any of my canonical-identity-provider branches" [Undecided,New] [21:39] is this a new project? [21:41] cd /tmp/ === JamalFanaian is now known as JamalFanaian|afk [21:57] salgado: ok, so I've got a handle on it. [21:58] data that is referenced isn't being copied [21:58] if you just 'bzr push /tmp/new', does that work? [21:59] lifeless, yes, it works and I can later branch from there [21:59] same thing when using bzr+ssh [22:03] how about this [22:03] bzr branch lp: /tmp/trunk [22:04] bzr push --stacked-on /tmp/trunk /tmp/mine [22:06] the initial branch is going to take a while, but we'll see === cprov is now known as cprov-afk === salgado is now known as salgado-afk [22:30] lifeless, the push succeeded and I'm now branching (bzr branch mine/ mine2), which is working fine -- it'd have failed already if the problem existed [22:35] salgado-afk: ok [22:36] salgado-afk: now, please try with bzr 1.17 [22:36] it should be fast as the trunk is reusable [22:39] lifeless, redoing just the push with 1.17? [22:40] lifeless: so in your iter-changes-partial-parents patch, what part of that is "already present in a branch that will be merged" ? [22:40] ah, the set_tags_bytes stuff? [22:41] lifeless, worked as well [22:42] jam: the change to the signature of _process_entry, which has now landed so hopefully isn't visible in the diff [22:42] lifeless, salgado-afk: This is the missing chk page issue? [22:42] jam: yes [22:42] salgado-afk: redo the push --stacked-on, yes [22:42] salgado-afk: using bzr 1.17 for the push and then branching from it and so on [22:42] lifeless: unfortunately: + result, changed = self._process_entry(entry, self.root_dir_info) [22:42] is, indeed, present in the diff [22:43] I'll create my own, I guess [22:43] salgado-afk: lp is running bzr 1.17, so if its a 1.17 bug we'll need to use 1.17 to trigger it [22:44] lifeless, right; I did the push with 1.17 and was later able to branch from the pushed branch [22:45] salgado-afk: branching from it using 1.17 ? [22:46] and [obviously] branching into /tmp as well, because we want the failure case [22:46] lifeless, both 1.17 and 1.18, but I'm not waiting until it finishes because the error happens early on [22:48] salgado-afk: erm, the backtrace shows that it happens during tree building, which is nearly the very end of it [22:49] lifeless, it takes exactly 20s for the error to happen when I branch lp:~salgado/canonical-identity-provider/test4 === psynaptic is now known as psynaptic|afk [22:50] (just timed it) [22:52] salgado-afk: outside your shared repo? [22:52] yes [22:53] thats nuts [22:56] jam: so, were you ok with the test progress patch? [22:56] lifeless: truth be told, I think it makes figuring out the test suite one step harder to understand [22:57] And I don't quite understand when you know to use SEEK_SET vs SEEK_CUR [22:57] so, the concept is being built in subunit [22:57] I'll be taking it to testing-in-python once its a tad more mature [22:57] At least, when I saw it originally [22:57] I would have thought you would be doing SEEK_CUR, but you have SEEK_SET [22:58] generator tests (that we don't have) would use SEEK_CUR [22:58] ah, I see now, you are still calling countTestCases [22:58] you just do it in a decorator [22:58] right, I move from using it as part of the contract, to it being used by the public contract [22:59] I guess I'm just really confused by the layering [22:59] As in, I barely have an idea what is going on [22:59] level of confused [22:59] wow ok [22:59] uhm [22:59] you're wrapping this with that [22:59] at a random time [22:59] and expecting it to have all the values [22:59] or not [22:59] so, we have some main steps [22:59] we make a suite, something honouring run(result) [23:00] we pass that into TextTestRunner.run(suite) [23:00] which creates a result and does some UI stuff [23:00] k, following so far [23:00] currently, TTR.run calls countTestCases [23:01] which removes any opportunity for lazy evaluation [23:01] (and subunit doesn't support countTestCases at all) [23:02] so, layering wise, test cases should be responsible for knowing if they are lazy or know how many tests they have [23:03] this patch doesn't go all the way to achieve that. But it does change TTR so that it no longer assumes the test case its running does know [23:04] lifeless: but unittest.TestSuite *does* support countTestCases, right? [23:04] yes [23:05] its a design bug that that method exists at all [23:05] Why wouldn't a TestSuite know how many tests it has aggregated? [23:05] Given that you have a separate TestCase instance for each test [23:05] AFAIK [23:05] the method returns it transitively [23:05] countTestCases isn't len(self._tests) [23:06] its sum(test.countTestCases for test in self) [23:06] its a Composite pattern [23:06] the problem though, is that if one of the tests *doesn't* know [23:06] well, self._tests can contain a TestSuite as well, right? [23:06] (say its a generator test) [23:06] then you have to actually run that test to find out how many tests it has [23:06] given that we don't have generator tests... [23:07] nor does unittest support it, afaik [23:07] yes, but I'm not doing this for bzr I'm doing it so that I can reuse TTR outside bzr [23:07] unittest supports it fine [23:07] except for countTestCases [23:08] one example of a generator test is LazyLoadingTestSuite, which I posted to TIP a couple months back [23:11] so some of the confusion is just Unittest issues [23:11] like having a Runner.run(suite) which calls suite.run(result) etc [23:12] right [23:12] and then you are decorating run() [23:12] to do all sorts of random stuff [23:12] like call *back* into Runner.progress() [23:12] startTesetRun and stopTestRun go some way to allowing the deletion of Runner [23:12] or is that result.progress() [23:12] i guess it is result [23:12] Test.run calls into result.progress [23:12] the decorators run that is [23:13] right,which is actually the suite, but TestSuite conforms to the TestCase api? [23:13] yes [23:13] suites are tests are suites [23:13] well, *a* suite [23:14] well, to clarify, *a* suite is *a* test, as well as being a collection of tests. [23:14] externally its just *a* test; the fact it is composed of many children is hidden from the public API that TestRunner is allowed to use [23:15] so... [23:15] I think your patch adds complexity [23:15] if it is necessary, then so be it [23:15] so without it, TTR calls test.countTestCases, and subunit (because its just reading from a socket) can't answer that sensibly [23:16] but it certainly isn't something that I'd go "oh yeah, that is what I want" [23:16] lifeless: sure, but it could return 0, which is what we are doing now anyway [23:16] since you just aren't setting num_tests [23:16] which means it stays 0 [23:16] nope, it gets set [23:16] or you could return a sentinel "-1" [23:17] this is what happens with the patch: [23:17] TTR.run(test) [23:17] result = result_class(num_tests=0) [23:17] test.run(result) [23:17] now, for bzr's normal runs, the next step is [23:17] Hi! [23:18] (inside test), result.progress(self.countTestCases, SEEK_SET) [23:18] which sets result.num_tests [23:19] for subunit2pyunit --progress, the same thing happens, except rather than calling self.countTestCases, the subunit stream has a progress: item in it [23:21] so given that you are trying to show progress, it is a little bit icky to have the "num tests" keep getting bigger, as that means whatever progress indicator you have is invalid anyway. [23:22] jam: yes, and this is one of the main difficulties with doing progress of things with unknown length [23:22] and if the stream has "progress:" why couldn't it return that as part of countTestCases... because it hasn't read it yet at the time of "result=XXX" ? [23:22] right [23:22] also because cat stream1 stream2 | subunit2pynit --progress [23:25] lifeless: though that again doesn't have any valid meaning for progress info... [23:25] not to mention... does it have any meaning anyway? [23:26] catting a saved stream doesn't seem like it is actually running anything [23:26] and hence... who cares about its progress [23:26] or is that "cat FIFO1 FIFO2" ? [23:28] jam: so the point is to decouple things such that the result object doesn't know or care [23:28] saved streams are useful for timing analysis [23:29] lifeless: I can understand why one would save the output [23:29] I'm not sure why you would want --progress with saved output [23:29] jam: pragmatically, one is unlikely to do that [23:29] lifeless: anyway, it sounds like you solved a problem you're having, which isn't one I'm having. And it adds complexity, though not a tremendous amount. [23:29] personally [23:29] combining FIFO's is a very common case though, ec2test does that [23:29] just having subunit.countTestCases() == 0 [23:30] seems like a perfectly reasonable alternative [23:30] lifeless: though again, combining FIFOs would mean that your info is a bit bogus [23:30] and you really should intermix them [23:30] rather than read one and then the next [23:30] right, we do [23:30] but you can use something fancier than 'cat' I'm sure [23:30] we get progress from both [23:30] so I certainly wouldn't block your patch [23:31] and transform them into CUR as you combine them [23:31] I'm not *happy* about it, but if you need it, do it. [23:31] ok; I wish I knew how to make you happy about it :) [23:31] well, I'm not "super happy that this has finally landed" [23:31] lifeless: I'm not *unhappy* either [23:31] ah good === psynaptic|afk is now known as psynapticx === psynapticx is now known as psynaptic [23:47] hello jam, hello all [23:47] hi poolie [23:48] can i call you briefly?