[00:10] igc: whats the testing guide and why isn't it part of the dev guide? [00:11] sorry if that came across picky, I'm just a little surprised / concerned about fragmentation [00:11] lifeless: someone moved it out (vila maybe) [00:12] lifeless: http://doc.bazaar-vcs.org/developers/ [00:12] oh [00:13] so this is a terminology thing [00:13] thats all dev guide to me [00:13] and I suspect to poolie as well [00:13] just chapters in the dev documentation [00:20] Is http://bazaar-vcs.org/bzr/.bzr/repository/packs/ really badly compressed, or did I accidentally misplace most of my repo while upgrading to 2a? [00:21] Oooh. Never mind. That is a 1.9-format repo. Hm. [00:22] Ohh! http://bazaar-vcs.org/bzr/bzr.dev/ is a branch reference now. Clever! [00:22] Confusing, too. [00:23] So lp:bzr is now the official location for bzr.dev? [00:23] yup [00:24] What should I set bzr to use as the public/submit branch? [00:25] check the docs ;) [00:25] :< [00:25] .....Which docs? :D (kidding) [00:25] [I've paged it out] [00:26] The doc directory in the source tree doesn't help. [00:28] I'll keep the public and submit branches set to bazaar-vcs.org for now, then. [00:31] Peng_: HACKING.txt [00:31] look for locations.conf [00:36] Ah, thanks. That didn't help very much, though. I'm not a PQM user. [00:37] And LP is open source now. I have missed a lot! [00:39] Peng_: well, lp:bzr then ;) [00:40] Literally "lp:bzr", or the http or bzr+ssh location that points to? [00:43] literally [00:43] if you just want 'bzr send' to work [00:49] OK. [00:55] hi all [00:55] welcome back igc [00:55] thanks poolie [00:55] Good morning. [00:55] Good morning. Or whatever. :) [00:55] hi spiv [00:55] Is it morning? [00:55] hi Peng_ [00:56] Peng_: it is here :-) [01:40] hi ho [01:40] what is the simplest way to allow people to push to a machine with bzr+ssh but not to have shell access? [01:41] There's a script, contrib/bzr_access or somesuch. [01:41] authorized_keys policy [01:41] Yeah. [01:41] and or that script [01:41] oh kay... [01:42] which is easier / more configurable? [01:42] launchpad :P [01:42] Heh. [01:42] lifeless: haha [01:42] He's right... [01:42] where does the package install the contrib dir? [01:42] I don't think it does [01:42] Peng_: it is for some friends polytech work [01:42] no project [01:42] and they don't want it public [01:43] and I don't want them poking around my machine [01:43] Umm. Install Launchpad on your machine? :D [01:43] heh [01:43] no [01:43] You could just give them SFTP access. [01:44] Peng_: that isn't great [01:44] this should be an easy thing to set up for bzr [01:44] I've been frustrated that it wasn't easier [01:44] like sticky group bits [01:44] Peng_: you'd want to give 'em smart server access too ... [01:44] and umasks [01:44] et al [01:44] I think we should be able to set something in the locations.conf (or something) [01:44] and have the smart server set the right groups [01:44] IMHO [01:45] SamB_XP_: I know [01:58] spiv, hello [01:59] poolie: hi [02:00] poolie: I've done a couple of rounds of "do something to a bug" "gar, file a bug on launchpad" this morning. [02:01] poolie: I have a fix for the 2 hpss vfs calls on incremental push; I've played a bit with trying to anticipate future requirements with the new verb I'm adding, but decided against it so I'll just submit the simple fix. [02:03] igc, to answer the only other question on our agenda [02:03] see my mail to emma on friday, i'm aiming to get the site up this week [02:03] from a shared branch deployed to escudero [02:03] spiv, cool [02:03] poolie: thanks [02:03] or you can if you get to it first [02:03] spiv, we still seem to get a lot of 'medium(?) in use' errors [02:04] maybe this should be handled under -Dcleanup but perhaps there's something else we should do that would avoid them obscuring the real error? [02:05] poolie: hmm [02:10] my thoughts exactly :) [02:10] :) [02:10] maybe we'll try -Dcleanup first and then see what happens [02:10] or more importantly, putting a choke point for all cleanups [02:13] spiv: whats trigering vfs on incremental push ? [02:13] lifeless: "cannot update remote workingtree" warning [02:14] meep yes I saw that [02:14] what was it? [02:14] push explicitly checks for a working tree so that it can issue that warning, and we have no HPSS way to find a working tree. [02:15] It doesn't actually care what format or anything it is, just whether or not there is one. [02:16] So I've made a new BzrDir.open verb that returns a yes/no for the presence of a workingtree in this bzrdir. [02:16] +1 [02:16] have you seen spurious outputs of that warning btw? [02:16] I could have made a has_workingtree verb, but may as well cut out the roundtrip and take the opportunity to slightly decruft the BzrDir.open verb :) [02:17] No, I don't think so. [02:17] so, I think has_workingtree would be more precise [02:17] but as we don't support working with them remotely anyway [02:17] doing what you've done is fine [02:18] Right. [02:18] what cruft are you deing? [02:18] [if its the declarative capabilities, I'm not sure we want to remove them] [02:18] The current BzrDir.open verb squashes some error conditions into just 'yes'/'no', for backwards-compat reasons. [02:19] I see, cool. [02:20] poolie: one thing I forgot to discuss on the phone: elmo's email re the karmic chroot [02:20] poolie: one of us should reply [02:23] hmm, why does multi-pull try to pull data from a file URL when i want to fetch from a bzr+ssh URL? even worse, it sees the path the branch was on the other machine from which i first pushed it up [02:24] zsquareplusc: it uses the remembered pull locations, IIRC. You can use "bzr pull --remember NEW_URL" in those branches to change that. [02:26] hm, doesn't this make the multi-pull more or less useless? it apparently manages to find these branches on the remote URL but then it turns to a completely different location to download?!? [02:27] zsquareplusc: no, it just does the same as "bzr pull" with no arguments would do in each of the individual branches. [02:28] Which is often the right thing, and if it's not it's usually easy to use either --remember or edit your locations.conf to make it do the right thing. [02:28] It would be nice to have a "pull all of these from *over there* just this once" feature too, though. [02:30] well the branches were created on one machine, converted from CVS. i pushed them to a repo on sf.net. so i have to manually touch each of these again, re-push etc :( [02:33] spiv: i disagree that it is doing the right thing in this case. i have no local copy yet, just and empty shared repo. i'd certainly expect that multi-pull downloads from the URL i'm giving it not from anywhere else. [02:36] how do i see the saved push location? bzr info? [02:36] because i don't see it there on the branch i pulled (one of those were multi-pull failed) [02:38] zsquareplusc: if you don't have a branch yet, then pull (and multi-pull) aren't the commands you need. [02:38] i don't see a multi-branch :/ [02:38] Yeah :( [02:39] I agree there are things we could support better, I'm just explaining that multi-pull is doing what it was designed to do. It would be nice to have multi-branch or similar. [02:40] We're actually planning to rethink how we deal with groups of branches for 3.0, because we know we're a bit lacking. [02:40] well if it would just fail, OK. what's irritating me is that it somehow remembers a local path on my other machine [02:41] i ran a bzr info on the branch i originally pushed, it has that file URL there listed as parent [02:42] zsquareplusc: that does sound weird. multi-pull walks all the subdirectories of the directory you run it in looking for branches to pull, perhaps one of those has a branch with that info? [02:42] Whatever multi-pull does with an individual branch you ought to be able to reproduce with plain "bzr pull" on that branch. [02:43] i gave it the URL of the remote repo, so it apparently walks trough those :/ [02:43] Oh! [02:43] That does sound likely to confuse, yes. [02:43] I guess that's like doing "bzr pull -d REMOTE_URL"... [02:47] that the branches remember that file:// parent does not hurt? at least the fresh branch i made from the remote repo (using bzr branch) does not list it anymore, it has the remote repo URL as parent, which makes more sense [02:49] and is there a special reason that when i bzr branch, that same URL is not right away saved as push, pull and merge location? at least the way i was using it, that would have been helpful [02:56] spiv: yeah, it does seem a bit silly for it to be attempting to pull *into* an HTTP url ;P [03:01] SamB_XP_: there might be a smart server there :P [03:01] it was a bzr+ssh URL [03:02] oh, that's a bit less dumb then [03:09] I thought that the bug with bzrlib/bzrlib/*.so was fixed? [03:10] hmm. getting access denied on c:\...\temp\xxx.pag [03:16] i made a bash script that does several bzr branch(es) now when i run it under cygwins bash it prints that its connected using ssh and then the error about access denied on the temp file :( [03:24] when i run the command manually it fails the same way - when run in a bash shell. it works in a cmd.exe :/ [03:35] it seems to be paramiko/win_pageant.pyo:121 that causes the error (official bzr 1.15 windows distribution) === timchen1` is now known as nasloc__ [04:48] * igc lunch [05:13] spiv btw bug 432993 is the kind of thing i was referring to earlier [05:13] Launchpad bug 432993 in bzr "TooManyConcurrentRequests when failing to connect over ssh" [High,Confirmed] https://launchpad.net/bugs/432993 [05:38] * igc medical appointment - bbl [06:01] i can haz hard linkz agan plz? [06:01] poolie: you're working on a bug script? [06:02] thumper: what do you want them for? [06:02] i am [06:02] lifeless: hardlinking working copy files is not currently supported in [06:02] lifeless: just how I work [06:03] thumper: tell me more [06:03] lifeless: I have light weight checkouts of devel [06:04] many? [06:04] lifeless: and I build new branches using 'cbranch --lightweight --hardlink' [06:04] lifeless: now about 20 [06:04] have you considered using switch ? [06:04] yes [06:04] I use pipelines [06:04] What doesn't it do/does wrong for you? [06:05] but I like to keep my work in meaningful directories [06:05] it adds context for me [06:05] sure [06:05] I started with switch originally [06:05] so I use meaningful directories [06:05] but I found I had too many copies on the go [06:05] and switch [06:05] do you mean 'you forgot where you were' [06:06] or 'you actually needed multiple work areas at once due to $thing' [06:06] lifeless: it had to do with work that was in various states of review [06:06] lifeless: I often have tests running in one branch [06:06] while hacking in another [06:06] 888 Confirmed [06:06] 353 Triaged [06:06] 265 New [06:06] 147 Incomplete [06:06] 47 In Progress [06:06] 17 Fix Committed [06:06] or even running LP locally in another [06:06] poolie: welcome to API's [06:07] mm, i have poked at them before [06:07] lifeless: I also found that using TAGS, with multiple directories, I need different emacs buffers [06:07] the vodka is strong but the meat is no good [06:07] lifeless: or I can get jumped around into the wrong directory [06:08] thumper: would it be a good idea for 'bzr switch' should incremental-update TAGS? [06:08] thumper: here's where I'm coming from: we're doing UI overhaul around groups of branches. [06:08] I don't pretend to understand TAGS [06:09] I know [06:09] thumper: I suspect many folk have 'lightweight + switch' as key building blocks in how they want to tackle that. [06:10] I guess I use my checkouts as a kinda "work in progress" list [06:10] thumper: so I want to understand the friction you felt more [06:10] I delete them when they are merged [06:10] I use multiple checkouts for various reasons [06:10] I like to be able to run against trunk without switching my current work [06:10] thumper: so just click affectsmetoo on the bug and then... oh :) [06:10] to perhaps test stuff [06:11] more seriously, we could look at in content filtering [06:11] and sometimes running long tests locally while wanting to hack other stuff [06:11] so I need more than one concurrent checkout [06:11] one I had more than one [06:11] I found that I wanted meaningful directory names [06:12] the easiest way I found was to have lightweight checkouts for my work [06:12] and moved to cbranch [06:12] from there to hardlink [06:12] perhaps having a way to tag branches in a local repo as in various states would help me [06:13] so I could easily see which branches I have locally that aren't merged [06:13] without having them all in their own checkouts [06:13] fwiw, i work almost exactly like thumper [06:13] as long as I could list them easily [06:13] thumper: I use directories to tag branches [06:13] lifeless: inside the repo? [06:13] thumper: mkdir pending; mkdir review; mkdir experimental [06:14] fwiw, thumper works almost exactly like me :-) [06:14] yup [06:14] i don't actually have any real problems with bzr here, as 'make build' takes far longer than tree building :( [06:14] I don't have trees in my repo [06:14] it seems ick to me [06:14] mwhudson: true [06:14] thumper: thats not anything to do with trees :) [06:14] thumper: I put branches under there [06:15] lifeless: but if you have a lightweight checkout, and you move the branch [06:15] lifeless: how do you reconcile that? [06:15] bzr switch --force [06:15] but it happens rarely [06:15] as I have only a few checkouts [06:16] and usually state changes are also when I need to stop editing (or conversely start editing) branches [06:16] lifeless: I got my workflow from jamesh [06:16] lifeless: when I first started using bzr [06:16] thumper: I'm not criticising it! [06:16] lifeless: I'm not saying you are [06:16] lifeless: I'm trying to give context [06:17] thanks ;) [06:17] lifeless: part of it is "this is how I was taught" [06:17] righto [06:17] lifeless: I have thick skin, you have to be a hell of a lot more direct for me to think you are criticising :) [06:18] All the rugby [06:18] lifeless: I didn't start rugby until I worked in the UK [06:18] lifeless: never played in NZ before that [06:18] :) [06:36] what's the recommended workflow when working on a feature branch while trunk keeps actively updated? [06:37] hack;hack; commit; merge trunk; check for regressions; commit; hack; hack; loop [06:39] I'm using launchpad, I have one branch in rev 18, and other in rev 21 which is the trunk. I'm afraid that when I merge the former (likely to keep at rev 18) with the latter, that could be at rev 25 for example, well I'm afraid I have problems... [06:39] what are regressions? [06:39] when things stop working [06:39] and so I need to keep in sync with the target branch? [06:40] up to you [06:40] you asked for recommended ;) [06:40] hum so it is recommended to avoid regression? [06:40] the more diffs between branches, the more likely the merge will break code? [06:41] * RenatoSilva how merges are get done is still an enigma for him [06:46] RenatoSilva: avoiding regressions is a fancy way of saying 'don't introduce bugs' :) [06:47] RenatoSilva: I dunno if falling behind and having to do larger merges is more likely to introduce bugs (probably), but it's also harder and more likely to conflict [06:47] and bugs can happen when you merge. [06:47] RenatoSilva: basically, bzr compares the history of all the changes in the two branches, and applies the changes that are present in the merge source but not yet present in the target. [06:48] bob2: yeah, I don't know about bugs either (generated by the merge itself?) [06:49] RenatoSilva: but bzr is just software; the way it understands changes is by seeing which lines of text have changed, rather than understanding that e.g. "function X was renamed to Y", so it's possible that the result bzr merge will produce something other than what a human would have done if they were applying those changes manually. [06:49] RenatoSilva: by combining your code with the trunk - e.g. if you modified some function to introduce a bug [06:49] RenatoSilva: the classic thing is stuff like adding a required argument to a function in one branch while adding a call to that function in another [06:50] RenatoSilva: both branches are correct, but the combination is not, and you'd need to be waaay cleverer than any vcs tool is today to figure that out automatically [06:50] spiv: that's what I imagined, for example if I merge branch X in rev 19 with trunk rev 21, where they have diverged at rev 17, so bzr will take revs 18 and 19 and try to apply the diffs to rev 21 on the trunk, right? [06:51] RenatoSilva: and sometimes changes in the two branches are simply incompatible as-is, e.g. one branch may add a new argument to a function, and the other may add a different new argument instead. (or mwhudson's example, which is similar) [06:51] RenatoSilva: the mechanics of the merge - bzr will merge unmerged work. [06:51] RenatoSilva: you should just try; nothing like experimentation to help you see [06:51] RenatoSilva: if you merge X into trunk, then yes. [06:52] RenatoSilva: (although not via diffs, precisely; diffs don't handle renames and bzr does, for instance) [06:52] Hmm, well, I guess diffs can do renames. [06:53] diffs aren't so good for changes to symlinks or binary files, though :) [06:55] Well, merging isn't so good for symlinks or binary files..... [06:55] spiv: ok I don't mean `diff`s are generated, I just think it's sort of magic :) [06:56] Peng_: yeah, but at least it DTRT when only one side has changed them. [06:56] spiv: Oh, cool. [06:56] Peng_: for bin files you have to choose between one and another versions right? there's no merge for them ... [06:57] RenatoSilva: Well it's totally theoretically possible to develop merge tools for binary files. [06:57] RenatoSilva: Merging really isn't scary, and it's a major part of using a DVCS. [06:57] RenatoSilva: Even if things go horribly wrong, you can just "bzr revert". [06:58] lifeless: well I have merged a few times, I just see it as magic :) (just curious about how it works -- because of the initial issue) [07:01] spiv: well I think something similar to a merge-directive is used [07:01] RenatoSilva: well, if a file originally had a series of lines ABCD, and one branch changed it to ABC, and the other changed it to AECD, then merge would result in AEC. [07:01] spiv: except that the commits are "packaged" under another one [07:02] spiv: AEC? weird, so bzr tries to do same-line merges? o.O [07:03] RenatoSilva: no, by "ABCD" I mean four lines [07:03] RenatoSilva: just using a very compact notation because IRC isn't really designed for multi-line examples :) [07:04] ok :) [07:04] so it is recommended that as I update trunk, I do a bzr pull in the other branch? [07:05] no, you can't [07:05] (In principle a merge algorithm can work with sequences of bytes rather than sequences of lines, but for various reasons lines tend to be a good tradeoff for performance and human-intelligible results for source code) [07:05] because the other branch has different changes [07:06] back [07:07] lifeless: hum you can't pull from a diverged branch, right [07:07] so what should I do? [07:07] merge trunk into the other? [07:07] yes; as I said waaaay above :) [07:08] let's use an example [07:09] branch X rev 19, diverged from trunk at rev 17, and trunk is at rev 21 [07:09] so I merge trunk into X, and X get a new rev 20 { trunk 18-21 } ? [07:09] RenatoSilva: yes [07:10] cd X; bzr merge trunk; ; bzr commit -m 'merge trunk' [07:11] and when I'm done I merge X into trunk, that gets a rev 22 { X 18, 19, 20 { trunk 18-21 } } ? [07:11] * trunk, which gets [07:11] Not sure exactly what you mean by that notation. [07:12] spiv: that's the only way I can see it :( [07:12] It's tip revision, rev 22, would have two parents, trunk's 21 and X's 20. [07:12] spiv: rev 22 of trunk will contain 3 revs from X: 18, 19 and 20, where 20 is a merge with trunk [07:12] RenatoSilva: "contain" isn't really the right relation. [07:13] RenatoSilva: "has parent" is the relation. [07:13] what's a tip revision? [07:13] RenatoSilva: the most recent revision in that branch. The "tip" of the branch :) [07:13] the most recent commit on a branch [07:13] Also known as "head" [07:14] RenatoSilva: have you seen the output of "bzr viz" (if you have the bzr-gtk plugin) or "bzr qlog" (if you have qbzr)? [07:14] spiv: I think if you explain me using my notation I could easily understand :) [07:15] * RenatoSilva trying to understand "It's tip revision, rev 22, would have two parents, trunk's 21 and X's 20." [07:15] RenatoSilva: I can't, because I think the way you read your notation presumes a view of the system that isn't accurate [07:15] poolie: so whats your bug thing? [07:15] spiv: I'm pretty sure that notation means rev 22, which contains X's 18, 19, 20. X's 20 contains trunk's 18-21. [07:15] davidstrauss: contains is the problem though :) [07:15] davidstrauss: as revisions are not containers for revisions [07:16] lifeless: what does it mean when they're nested in the log output, then? [07:16] davidstrauss: a) what lifeless said, b) that reading would confirm my suspicion that it's an inaccurate model for bzr [07:16] davidstrauss: non-left hand parent [07:17] davidstrauss: e.g. a merge occured, and the revision that is indented was not present in the left hand ancestor of the above revision [07:17] lifeless: last time I saw a merge commit the revisions merged were showing "inside" the merge revision [07:17] RenatoSilva: so, a commit has links its parent(s), and they are links rather than copies. [07:18] RenatoSilva: and those parents in turn have links to *their* parent(s), and so on. [07:18] lifeless: I have never seen one for the scenario I mentioned though [07:18] RenatoSilva: yes, they will show like that; this indicates 'merged by' not 'contained within' [07:18] lifeless: i'd like to make the state of the queues more visible [07:18] maybe with a graph of open bugs etc [07:19] and to have a list of tags perhaps [07:19] RenatoSilva: so you can draw a diagram of the revision ancestry back to the start (a revision with no parents) by repeatedly following those links. [07:19] and just generally get a better feel for how much things can be extended using apis [07:19] poolie: what I'd love: a google appengine web page; showing the bzr project [perhaps project-group even] bugs in my preferred sort order [07:19] spiv: so replace "contains" with "has children linking to it, which are:" [07:20] spiv: is that accurate? [07:20] davidstrauss: if so, that notation is inaccurate, and should be trunk 22 { X 20, trunk 21 } [07:20] lifeless: yeah me too but small steps [07:20] hi all [07:21] i'd like to prototype some kind of dashboard [07:21] spiv: why would a single revision have children from two different branches? [07:21] davidstrauss: and expanded out one more level would be trunk 22 { trunk 21 { trunk 20 }, X 20 { X 19, trunk 21 } } [07:21] spiv: I mean, direct childred [07:21] children* [07:21] davidstrauss: that's what a merge is [07:21] spiv: A merge pulls in revisions from one other branch [07:22] davidstrauss: also, "parent", not "children", unless you're asking a different question to what I think you are? [07:22] spiv: which may have children from other branches still [07:22] lifeless: i guess overall the thing is that all the data is there, but the tools for querying it are not so great [07:22] for something as simple as 'how many bugs are open in bzr' you need to iterate them [07:22] which is the opposite of what you want [07:23] spiv: but if i merge from another branch and commit as rev 22, revision 22 should only have direct child revisions from one other branch [07:23] poolie: meep, theres no __len__ on search results? [07:23] davidstrauss: it will have two parents [07:23] davidstrauss: and no children (yet) [07:23] spiv: so, the indented revisions below a merge revision in log are *parents*? [07:24] poolie: the API folk have expressed a strong desire to be told about issues [07:24] davidstrauss: those parents will be the previous tip of the branch you just committed in, plus the revision you merged in from the other branch. [07:24] davidstrauss: have you seen "bzr viz" or "bzr qlog"? [07:24] trunk 22 { X 20, trunk 21 }? [07:24] spiv: haven't used any gui tools [07:24] davidstrauss: the history is a DAG, and those tools do a good job of visualising it [07:25] davidstrauss: "bzr log" makes an attempt to represent some the structure of that DAG in plain ascii, which is inevitably a bit hard in complex cases :) [07:25] spiv: I'll jsut keep X updated by merging trunk into it regularly, then when I'm done I'll merge X into trunk, and then see what happens in log/qlog :) [07:26] davidstrauss: if you pass --show-ids to log it will explicitly give the "parent:" links for each revision. [07:26] RenatoSilva: good idea :) [07:26] spiv: ok, so let me rephrase my previous statement. "rev 22, which has parents {X's 18, 19, 20}. Also, X's 20 has parents {trunk's 18-21}. [07:27] A revision only has 1-2 parents. But its parents have their parents, and on up the chain. [07:27] spiv: I still don't see how a revision could have parent revisions other than (1) in the same branch and (2) in one other branch [07:27] davidstrauss: "rev 22, which has parents {trunk 21, X 20}." [07:27] Peng_: N parents [07:27] (Not that it has to be restricted to a simple chain.) [07:27] Peng_: hg has the 2 thing [07:27] spiv: Is rev 22 in X? [07:27] lifeless: Oh, I thought bzr did too. [07:27] davidstrauss: "and consequently some of its ancestors are X 19, X 18, etc." [07:27] Bazaar supports octopus merges? [07:27] Peng_: yes [07:27] Peng_: nope, 0 through to 'overflow a 4K b+Tree zlib page' [07:27] Peng_: which is 'many' [07:28] davidstrauss: this stuff is really ahrd to understand :) [07:28] hard [07:28] RenatoSilva: Is rev 22 on branch X? [07:28] lifeless: I hope that doesn't mean there will be some obscure index exception instead of a simple WhatTheHellAreYouDoingError. [07:29] "bzr merge" will let you do it? [07:29] Peng_: it will except on commit; and yes bzr merge will let you do it - --force [07:29] davidstrauss: I mean the whole subject [07:29] Given that rev 22 has parents X:22 and trunk:21 (according to spiv), it should follow that rev 22 is either on branch X or trunk, correct? [07:29] davidstrauss: I can't see it as anything different from the weird rev 22 { X 18, 19, 20 { trunk 18-21 } } [07:29] I meant "Given that rev 22 has parents X:20 and trunk:21 (according to spiv), it should follow that rev 22 is either on branch X or trunk, correct?" [07:30] davidstrauss: I'll just try to do it in pratice and see what happens [07:30] lifeless: Cool. I always figured --force would lose the other revision information or something, like with a cherrypick. [07:31] davidstrauss: yes, I'm talking about the example where X is merged into trunk [07:32] davidstrauss: e.g. "cd trunk; bzr merge path/to/X; bzr ci" [07:32] spiv: OK, this suddenly makes a bunch more sense. [07:32] spiv: I was assuming rev 22 was on yet another branch [07:32] Which AIUI was the example under discussion [07:32] But I might be wrong :) [07:32] davidstrauss: phew :) [07:32] spiv: and that's why i couldn't understand how it could have parents on two other branches [07:33] spiv: it was trunk to X [07:35] lifeless: hmm, skimming scrollback, I see both [07:36] lifeless: the most proximate to where I started clarifying notation was X to trunk, though :P [07:36] spiv: no its not :) [07:36] It seems more likely that it's X->trunk, given that one of the parents is rev 21 on trunk. [07:36] spiv: :08 RenatoSilva asked, 5 lines later or so you said you didn't get the notation :) [07:36] (And knowing that the new revision is 22) [07:37] lifeless: https://edge.launchpad.net/hydrazine [07:37] barely anything there [07:37] a foaming agent huh? [07:37] If it were trunk->X, the new revision (22) would have to have rev 21 on X as a parent [07:38] by definition, yes. [07:38] branch contents are recursively defined [07:38] rev 21 is the first parent of rev 22 [07:39] so it really is trunk's 22 { X's 18, 19 and 20 { trunk's 18, 19 } } ? [07:39] lifeless: 'dangerously unstable'... 'used in various rocket fuels' [07:40] ' These reactions are extremely exothermic (the catalyst chamber can reach 800 °C in a matter of milliseconds,[22]) and they produce large volumes of hot gas from a small volume of liquid hydrazine,[23] making it a fairly efficient thruster propellant ' [07:40] :) [07:41] i aspire to making a fairly efficient propellant [07:41] we shall see [07:41] When is the current "edge" version of LP going stable? [07:41] 3.0 is targeted for the end of this week [07:41] nice [07:42] and it'll run bzr 2.0.0 to [07:42] too* [07:42] lifeless: yes, I see :08, but :11 is more proximate to me :P [07:43] poolie: Is there a comprehensive listing of changes? [07:43] in lp? or in bzr? [07:43] poolie: in lp [07:43] i don't know, sorry [07:43] poolie: bzr 2.0 is pretty obvious with the changelogs [07:44] well, the branch is public [07:44] what's the recommended comment when commiting a merge with a lp branch? "merge with lp:project" ? [07:45] https://code.edge.launchpad.net/~launchpad-pqm/launchpad/devel [07:45] RenatoSilva: i guess that's fine, but maybe say why [07:45] RenatoSilva: Given that the merge will always be directly on "lp:project," it would mean every merge commit would be identically explained. [07:45] RenatoSilva: It's best to list any bug or question that's related. [07:46] always be directly on "lproject," ? [07:46] RenatoSilva: that's fine, or even "merge from trunk", although as poolie says you're probably doing the merge for a reason, so stating that reason in the commit message is a good idea. [07:46] RenatoSilva: "Merge changes from branch lp:~davidstrauss/pressflow/blah to fix LP #23424" [07:46] Launchpad bug 23424 in pango1.0 "Opentype Latin fonts poorly handled" [Medium,Fix released] https://launchpad.net/bugs/23424 [07:46] RenatoSilva: e.g. "Merge from blah to get bugfix for 1234" [07:46] davidstrauss: the reason for merging is always the same: to keep up-to-date with trunk [07:47] RenatoSilva: Oh, you mean a merge from trunk into your feature branch [07:47] RenatoSilva: I was assuming this would be into trunk from a feature branch [07:47] But personally I've often done just "Merge from trunk", and left the rationale implicit (keeping up to date to minimise integration headaches) [07:48] Yeah, it's not important to be too detailed when merging from trunk to keep a feature branch updated. [07:48] The opposite direction is where the commit messages matter more than anywhere [07:48] If I'm merging from an unusual source or for an unusual reason I would say why, though. [07:49] davidstrauss: yes, X into trunk would be "merge with lp:~user/project/subject", and I think bug numbers and explanations they're all in the branch, the problem is if it is deleted after merging [07:49] doesn't source branch go automatically into commit metadata? [07:49] RenatoSilva: Merged revisions retain all data post-merge [07:50] davidstrauss: Merged revisions retain all data post-merge? [07:50] Aren't I repeating info when typing branch name in commit? [07:50] RenatoSilva: merge copies all the revisions that are referenced (and not already present) [07:50] I prefer commit messages like "AutoWidget 3.0 support (Some User, #12345)". [07:50] I guess it would make sense to include the branch URL too, though. [07:51] Peng_: doesn't it go into commit metadata? [07:51] RenatoSilva: The branch URL isn't the same as the branch short name [07:51] ok url is better [07:51] RenatoSilva: (and recursively, so parents of parents of parents, etc, will be copied. So if you merge a branch to trunk it is possible to later rebranch that old branch from trunk) [07:52] if url is stored, then no need of even the word merge [07:52] you just say "fix for problem x" or "new feature y", it doesn't matter whether it is a merge or regular revision [07:53] RenatoSilva: basically, whatever works well for you :) [07:53] I just think it's a bit weird having to put any message for just keeping up-to-date with trunk [07:53] spiv: but I want to know if urls are stored or not :) [07:53] RenatoSilva: No [07:53] Not in the history. [07:54] RenatoSilva: you might prefer rebase [07:54] spiv: so it says it is a merge, but don't say a merge with what? [07:54] RenatoSilva: I personally hate rebase [07:54] what's rebase? [07:54] RenatoSilva: Please use google [07:54] RenatoSilva: the history has a full copy of all the revisions from the source branch that you merged from. [07:55] davidstrauss: hmm, I don't see how rebase would help here [07:55] spiv: i know [07:55] spiv: but you don't know from where they came from if you don't have urls [07:55] spiv: It would eliminate RenatoSilva having to write commit messages for merging from trunk [07:55] True, but why do you need where they came from if you have the commits themselves already? [07:56] RenatoSilva: It's literally impossible for bzr to guess the canonical URL for a branch at merge time [07:56] I.e. what information does "where they came from" tell you that can't already get from the commit messages, authors, etc in the actual commits? [07:56] davidstrauss: oh, I see. I think that would be the tail wagging the dog, personally. [07:57] spiv: Indeed. [07:57] I'm thinking of a workaround: merge X into trunk locally, delete lp's X, push local trunk as X. How about it :) [07:58] So, if Launchpad is launching with bzr 2.0 this week, does that mean bzr 2.0 is going stable, too? [07:58] RenatoSilva: How does that change anything? [07:58] davidstrauss: humm, true :( [07:59] 2.0 is already stable [07:59] I just think up-to-date merging is not natural [07:59] RenatoSilva: Rather, it would just create a very confusing history. [07:59] RenatoSilva: What do you consider a natural alternative? [07:59] RenatoSilva: you don't need to delete lp's x; just push over it [08:00] RenatoSilva: I think you could do your workaround; it will look very similar, but you won't be able to as easily tell where you merged trunk, which means you won't know why a bug was introduced. [08:00] davidstrauss: well s/merge X into trunk/bzr send X > trunk, how about it [08:01] a natural way is one just like I'm cerating X NOW [08:01] lifeless: I disagree. There's a big problem with the proposed workaround: every time he updates from trunk, the commit history for his feature branch gets buried in the parents of a merge revision. [08:01] and applying the changes, that before were revs 18, 19 and now would be palin revs 22, 23 [08:02] lifeless: It creates a history with a depth at least as many parents deep as the number of merges with trunk [08:02] Imagine I can get X and extract the changes on raw diffs [08:02] then I bzr branch trunk and manually apply the diffs [08:03] and commit [08:03] just like I'm cerating X today [08:03] RenatoSilva: "bzr send" is just a tool for packaging merge data [08:03] davidstrauss: well it would not work as the branches have diverged [08:03] RenatoSilva: What does "send" have to do with the branches diverging? [08:03] davidstrauss: I'd pry to bzr pull md.diff [08:03] try [08:04] RenatoSilva: I think you should look at http://bazaar-vcs.org/Rebase before trying such an ill-advised workflow [08:05] RenatoSilva: Taking a fresh branch, applying the old diff, and committing is just a bad approximation of rebase [08:05] ok thanks [08:06] as I have a commit prompt in my front, I'll just type merge with trunk by now :) [08:06] RenatoSilva: Rebase treats updating a feature branch from trunk as fundamentally different from merging [08:06] RenatoSilva: I advise against using the language "with" for bzr merges [08:07] merge from trunk? [08:07] RenatoSilva: In Bazaar, merges are directional. Branch A can be merged into B, or B into A, but there is no single operation that does both [08:07] RenatoSilva: Either "merge from trunk" or "merge trunk into _____" [08:07] merge trunk into here [08:07] RenatoSilva: "From" is generally best because the "to" is obvious [08:08] RenatoSilva: "To" is always the current branch [08:08] with is obvious too [08:08] merge with trunk cannot mean merge this into trunk [08:08] RenatoSilva: Not really. Once your revisions get merged back into trunk, the "merge with trunk" commit messages may be a bit ambiguous [08:08] because the comment would be in trunk, not in this branch :) [08:09] ok ok, not that bad to be clearer anyway [08:10] RenatoSilva: Remember that every commit you create on the feature branch will be browsable on the trunk after the feature branch is merged back into trunk. [08:10] ok [08:11] "Merging trunk changes" [08:11] how about it [08:12] or "Trunk changes merge" [08:12] RenatoSilva: "Merge from trunk" is my usual one [08:12] Maybe rebase or something similar could be in bzr as default [08:12] RenatoSilva: "changes" is redundant. All revisions and merges are of "changes" [08:13] RenatoSilva: rebase is distributed with most bzr installs [08:13] I don't like 'from' [08:13] RenatoSilva: Is there a reason why? [08:13] why don't you like rebase? [08:14] RenatoSilva: http://fourkitchens.com/blog/2009/04/20/alternatives-rebasing-bazaar [08:14] Merging trunk --> trunk changes into here or here's changes into trunk??? Merging trunk changes ----> oh, trunk changes were merged (obviously, into here) === weigon_ is now known as weigon [08:17] bookmarked your link, thanks [08:18] * vila . o 0 (God bless people that fix loom test failures :-) [08:19] vila: Is Looms being actively developed? [08:21] davidstrauss: supported rather than developed, but it's here to stay under one form or another if that's what you care about [08:21] vila: What's the preferred option, that other one that works among multiple branches? [08:22] davidstrauss: I use loom or regular branches myself, but some people seem more at ease with bzr-pipeline (if that's what you're referring to :) [08:23] davidstrauss: I don't have an opinion on their respective merits since I use only loom but I heard that pipeline were fitting its users needs [08:23] davidstrauss: both are work in progress AIUI [08:24] Pipeline looks like a crappy copy of the git branching interface [08:24] :-( [08:24] http://img24.imageshack.us/img24/1857/imagemxv.png ---> WEIRD ! [08:25] RenatoSilva: Looks normal to me [08:25] davidstrauss: hard to understand, I mean [08:26] RenatoSilva: Granted, I've never used this application before, but this is what I see: [08:26] absolutely crazzy actually [08:26] (1) upserprefs is branched from trunk [08:26] at 17 [08:26] (2a) Revs 18-21 get made on trunk [08:26] (2b) The theme prefs work gets committed to userprefs. [08:27] (3) Merge from trunk -> userprefs [08:27] (4) Merge from userprefs -> trunk [08:27] RenatoSilva: right? [08:27] davidstrauss: right :) [08:27] davidstrauss: humm :) [08:27] how about the numbers 17.1.1 and 17.1.2 [08:27] It's unclear (and irrelevant) whether 2a or 2b happened before one another [08:28] RenatoSilva: The first number means you merged from a branch that was originally branched at revision 17. [08:29] RenatoSilva: those are just the revision number's bzr assigns those revisions; http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html#understanding-revision-numbers [08:29] ok I just mean weird numbers [08:30] RenatoSilva: the revision numbers are unique for all numbers on the trunk [08:30] RenatoSilva: unique and stable [08:30] I'd use 22.1 and 22.2 instead of 17.1.1 and 17.1.2 [08:31] what does the red lines and circles mean? [08:31] RenatoSilva: The red line is the merge into trunk from the feature branch [08:32] RenatoSilva: The red circles are unique revisions on the feature branch [08:32] RenatoSilva: I think the colours are just to help you associate revisions from the same branch [08:32] ok [08:32] RenatoSilva: so qlog has arbitrarily chosen grey/black for trunk and red for userprefs, I think. [08:33] maybe I get those numbers better later [08:33] RenatoSilva: you can ignore the numbers if you like, you probably don't need to use them. [08:33] RenatoSilva: If we numbered like 22.1 and 22.2, the numbering wouldn't actually provide any useful data about the source of the revisions [08:34] RenatoSilva: spiv is right; you can just treat the numbers as opaque strings [08:34] davidstrauss: (actually, I usually am more interested in when revisions got merged than when they were branched, but that's another discussion...) [08:34] ok guys [08:34] spiv: But it's obvious where revisions got merged in the bzr log --include-merges [08:34] (and either way, a graphical tool like qlog is probably a nicer solution than interpreting dotted revnos) [08:35] davidstrauss: ah, but that presumes I know when the revision was merged ;) [08:35] davidstrauss: or requires me to log all of history [08:35] spiv: You mean by time? [08:36] spiv: Are you trying to answer, "Given revision ID X (and no other data), I want to know where it was merged into my current branch." [08:37] davidstrauss: yes [08:37] spiv: There's no way to look that up with the log tool? [08:38] davidstrauss: qlog or similiar does a good job of it (I haven't looked recently, so pardon my lack of precision), but not in core "bzr log", no :( [08:39] Actually, qannotate is probably what I'm thinking of. [08:39] what about bzr log --include-merges ? [08:39] The use case is usually "look at annotations, see a line of interest, and wonder a) what the original commit that introduced that line was, and b) when it landed in this branch" [08:40] And qannotate handles that very very nicely, IIRC. [08:41] RenatoSilva: that will show all revisions, including merges, but I'd rather not have to grep all of history if I can help it :) [08:43] spiv: Actually, you can. It's just two steps. [08:43] spiv: bzr log -rX --show-ids [08:44] spiv: bzr log -rrevid:[parent-from-last-command-results] [08:44] wait [08:44] spiv: sorry [08:44] spiv: that's just the source [08:44] davidstrauss: right :) [08:45] davidstrauss: given that qannotate exists and works so well I'm probably not going to scratch this itch any time soon, but it probably wouldn't be so hard to extend log somehow to handle this. [08:46] Possibly with mainline:REV revisionspec or something. [08:46] spiv: Looking into the bzr architecture, it appears that there's no way to directly determine the children of a revision. [08:46] Right. [08:46] spiv: It has to be constructed by iterating through the mainline [08:46] Yes, graph-walking is required. But that's how bzr determines the x.y.z revno anyway. [08:47] spiv: How does the second number of a merged revision get set if I branch from A->B, then B->C, and then merge C->A? [08:47] lifeless: bug #433843 and associated fix in lp:~vila/qbzr/433843-fix-isolation-breaks [08:47] Launchpad bug 433843 in qbzr "test failures trying to escape isolation" [Undecided,Fix committed] https://launchpad.net/bugs/433843 [08:48] vila: is there a merge proposal? [08:48] spiv: s/second number of a merged revision/second number of the merged revisions/ [08:48] lifeless: permit_dir('/') sounds like the easiest way to fix it and not being that heretic [08:48] vila: I'll need to look [08:48] lifeless: it's in qbzr just as sec [08:48] spiv: Oh, bzr must just assign that number at merge time [08:48] davidstrauss: So multiple levels of merge between mainline and that rev, you mean? [08:48] spiv: nevermind [08:48] ok :) [08:49] lifeless: https://code.edge.launchpad.net/~vila/qbzr/433843-fix-isolation-breaks/+merge/12148 [08:49] spiv: I was trying to figure out how the second number (which is the ordinal of branches off the revision in the first number) was assigned when branching is read-only and transitive [08:49] spiv: But it's clear there's no way that could happen until merge-time [08:51] davidstrauss: right [09:00] I want to merge 2 websites codebase. Yesterday I upgraded 1 website. Added a 'before upgrade'. Now I want to start working on site 2 with that tag. [09:00] Can I continue working in the same directory? I still not understand bzr branching :( [09:01] s/Added a/Added a tag/ [09:02] thanks everybody [09:02] ngnp: Don't your sites have different directories? [09:03] davidstrauss: partly ... but the main code is the same [09:03] ngnp: you can branch from the tag [09:03] in the same working dir? [09:03] ngnp: i would use a different dir [09:04] otherwise I have to reconfigure apache :( [09:04] davidstrauss: I guessed I had to. I hoped for a 'switch to' tag [09:05] ngnp: you can revert to a tag [09:05] and then merge later with current .bzr or through a push [09:07] ngnp: I'm still not clear on your workflow [09:10] davidstrauss: me neither ... with eclipse/svn i'm used to 'switch to' and then continue working on that older/newer version. Code stays in same dir. But that is with central repo. Now I have a local. So I guess I need more experience with bzr ... [09:10] Tnx for your time :) [09:10] ngnp: you can't switch to tags in bzr [09:10] ngnp: tags are merely aliases for revision numbers [09:12] ic ... so I have to "bzr pull -r 7" then upgrade site 2, then merge with site 1? [09:13] ngnp: I still don't understand your upgrade workflow, but I have to head off. [09:13] ngnp: Sorry :-/ [09:13] np .. cy [09:14] heya [09:21] why do bzr status show unknown filenames from the root (if my cwd isn't root of the repository), and if I try to add them it only tries to do so relative from my cwd??? [09:24] trondn: this is old bug [09:24] bialix: ah.. ok.. just got bitten by it... [09:24] heh [09:33] * igc dinner [09:34] bialix: 429911 has some further info now -bbl [09:35] igc: hi [09:36] ubottu, say me please URL for bug 429911 [09:36] Launchpad bug 429911 in bzr-explorer "BZR > Explorer > UnicodeDecodeError" [High,New] https://launchpad.net/bugs/429911 [09:36] Error: I am only a bot, please don't think I'm intelligent :) [09:36] trondn: its a mismatch [09:36] good ubottu, take a cookie [09:36] trondn: there is a desire to have commands report paths from the root; but its [fairly clear to me] that this doesn't work well with paths users type in from their shell [09:36] trondn: and commands like add work from that basis [09:37] igc: re that bug, we seems to get mbcs encoding path to wordpad.exe. we need to cast it to unicode. [09:38] lifeless: I would expect that I could use the output from one command as the input to the next one without having to change directory.. That said, its not that big of a problem :) [09:38] trondn: me too! [09:44] vila: sorry, was on a call [09:44] lifeless: no worries [09:45] vila: MemoryTransport [09:45] vila: someone may have a branch at / [09:45] vila: check isolation is bad idea [09:45] bialix: its a very good idea; its telling you about latent bugs in your test suite [09:46] lifeless: in theory yes, that's why I restricted the permit_dir('/') to very very narrow tests [09:46] vila: they look like they should cope with MemoryTransport, no ? [09:46] they all want to check a '/not/existant/branch' [09:47] aaron insists that MemoryTransport is not very well [09:47] bialix: MemoryTransport is not *yet* very well, it doesn't mean we can't take it there [09:47] vila: does your patch compatible with bzr 2.0? [09:47] bialix: he's asserted that MemoryTree is a problem; its not very complete which I agree with, but PreviewTree writes to disk so is slow. [09:48] vila: or more precisely: with 1.17 API? [09:48] MemoryTransport is fully compatible with Transport, I'm not aware of any issues with it. [09:48] bialix: does your test suite pass ? [09:48] vila: I'm using 1.18.1 [09:48] bialix: that patch won't be comaptible with < 2.1 [09:49] vila: test suite pass for me [09:49] vila: w/o your patch [09:49] bialix: feel free to delay landing that patch, I'm not going to play tricks to guarantee API backward compatibility for potentially borken tests... [09:50] you can make self.permit_dir optional [10:17] hey folks,, looking for an article on using bzr in deployment of web site code. [10:18] i saw an article before where you setup a bare repository on your webserver, then you setup some kind of hook which exports the code straight to the site working directories on pushing up from your local branch. [10:18] does anyone know of this technique or know where the article might live.. google isn't getting me there today. [10:19] Personally I use a cron job [10:20] because my site needs an amount of 'building' before it can go live. [10:20] My cronjob pulls, if any updates happened, it runs 'make check' and then rsyncs the content [10:31] the site i'm working on doesn't need any building like that, just need to export 2 tree paths to locations in the website accounts directories. [10:31] just looking for a way to push it up to the webserver [10:37] bialix: I'm not part of qbzr-devs 8-) I can't supersede my own submission :D [10:38] lifeless: nice suggestion, works like a charm [10:39] lifeless: (MemoryServer is needed instead of MemoryTransport of course, but that was semi-obvious ;-) [10:40] bialix: bah forget my last remark, the UI has changed again and I thought I couldn't resubmit where in fact hte button has just been moved [10:47] Oh good. I was just thinking, "Gee, bzr _seems_ like a decent project, but where are the long license discussions?" [10:47] vila: so what should I do? [10:47] fullermd: bzr is a GNU project :-D [10:47] Hi all... Can I just double-check: .bzrignore files must be in top level of project, right? And there's no comment syntax? [10:48] rusty: 1.) Right. 2.) Comments start with # [10:48] Peng_: ah, thanks... I couldn't find any documentation on that point. [10:48] bialix: well, I applied to join the team, feel free to approve me :-D As for the patch, I think I addressed all concerns raised by lifeless and you, so again, feel free to approve and merge :-P [10:48] Peng_: does \ escape # then? [10:49] rusty: Noo idea. [10:49] fullermd: haha [10:49] rusty: Try it and see! :D [10:49] vila: so I should feel free as twice as usual? [10:49] rusty: hi [10:49] Now all it needs to do is read email, and it'll be a Real Opensource Project. [10:49] rusty: I suppose [#] would work too... [10:49] rusty: you pung me about subunit; did you get my replies ? [10:49] lifeless: hi! Just back on the .vcignore tradmill... [10:49] bialix: yeah, welcome to free software world :D [10:49] triple free [10:50] ta-da [10:50] lifeless: yep! But then I went away for 3 weeks, and the draft sitting there when I got back today seemed stale :)_ [10:50] rusty: I'm doing a subunit talk @ LCA [10:50] rusty: so the more adoption between now and then the better :) [10:50] we decided to make part of our new project free (LGPL) [10:50] lifeless: I've pretty much decided to go with libtap for the moment, but the API could be easily changed to output subunit directly (rather than via tap2subunit) [10:50] rusty: in fact, I see that the default ~/.bazaar/ignore uses [#] to escape a rule :) [10:51] rusty: whats the usecase/situation? [10:51] vila: if you join qbzr-dev you'll get all bugmails [10:51] spiv, bialix: \# works too. [10:52] Oops, I mean Peng_ [10:52] bialix: ha, right :-/ [10:52] rusty: Cool. (You mean it does what you want, right?) [10:52] Peng_: I'm compiling a table of the different VC systems ignore semantics, that's all! [10:54] bialix: there should an option somewhere that allow me to unsubscribe to these mails, otherwise, I'll filter them, anyway, I think I better join anyway [10:55] rusty: so, tell me more about where you're choosing between tap/subunit [10:55] rusty: or I'll have to supply you with beer and ask you @ LCA [11:11] vila: ok, be good boy and don't commit wild code then. [11:12] vila: approved, welcome to the club [11:12] bialix: :-D [11:12] lifeless: because I maintain libtap? :) [11:12] rusty: :P [11:13] rusty: then I should talk to you about how subunit is an improvement over tap :) [11:13] rusty: however, you said something about samba? [11:13] lifeless: naah, line-at-a-time rules :) [11:13] and here I thought tap was to do with ethernet ... [11:14] rusty: shame that it can't detect unfimished [11:14] lifeless: well, it can if you have a plan... [11:14] rusty: you mean, like a plan to cook and eat you ? [11:15] rusty: I know :> [tap2subunit handles that] [11:15] lifeless: yes, I want to put some unit test infrastructure into the samba tree. They already use subunit, so makes sense to aim for that. [11:15] rusty: they have a thing called libtortue [11:15] sorry [11:15] libtorture [11:15] have you found that? [11:16] lifeless: yeah, but it confuses torture testing and performance testing with correctness and unit testing. [11:16] ah [11:16] jelmer: ^ [11:16] lifeless: I really want just unit tests, ie. "hey, I really screwed this up" :) [11:17] rusty: so I think a good reason to use libsubunit for stuff in the samba tree is because it's easier ;) [11:17] rusty: tap2subunit isn't ugly, but its not brilliant either. Much better to start with the same protocol, unless you have some external code you're just exposing. [11:17] lifeless: my tdb and talloc tests are already using libtap tho :) [11:18] (CCAN went for libtap) [11:18] are you at all interested in being able to drop maintenance of libtap ? [11:19] lifeless: TBH I think subunit is a YA project. Tap is nice and browsable, and simple. [11:19] SamB_XP: http://en.wikipedia.org/wiki/Test_Anything_Protocol [11:19] rusty: young adult ? [11:19] SamB_XP: yet another [11:20] ah [11:20] yarg,, keyserver down? [11:20] SamB_XP: pejorative sometimes, sometimes adopted such as 'yaml' - yet another meta language [11:20] yeah, I've seen many programs whose names start with "ya" for that reason [11:21] lifeless: my main issue with TAP is lack of nesting, which is finally being fixed... [11:21] rusty: I disagree rather strongly there; taps simpleness pushes burdens onto the programmer/editor; I can go into some detail of the things it inhibits another time [11:22] lifeless: In my limited experience it has been sufficient. I don't like complex tests :) [11:23] rusty: this isn't about the test though - its about what you do with them [11:23] rusty: it's not so much complex tests as nested test suites, I think [11:24] rusty: taps not introspectable; you can't run - or even sensibly approach the problem - of running just a single thing from tap in an edit-test cycle, as a for-instance. [11:24] SamB_XP: yes, I agree. Which is why I'm happy about the nested TAP implementation. I have exactly this issue with ccanlint, in fact. [11:25] rusty: anyhow, you're happy with tap - great. Let me know of any bugs or glitches you have with tap2subunit and I'll fix em. [11:25] lifeless: unit tests should be so fast you don't need to :) [11:25] rusty: yeah right! [11:25] rusty: ack; see my blog recently ;) [11:26] some of us use finite-clocked computers [11:26] rusty: but, you shouldn't have to change test _protocol_ to work with integration tests, acceptance tests, and so forth. [11:27] have to admit bzr does a pretty good job of using the same framework for acceptance-type tests as for plain-old unit tests ;-) [11:28] when you change protocols you change toolchains; unless one toolchain is a strict superset and can read the other protocol [11:28] lifeless: it's not clear why that universal protocol shouldn't be TAP tho! [11:29] rusty: well, not having enough features might do it ;-) [11:29] lifeless: maybe you should write a blog entry about it ;-) [11:30] SamB_XP: I have a 'real testing needs XXX' list to finish; my most recent post to the TIP list was one of the items on that list. [11:30] tip list? [11:30] SamB_XP: when I get those items checked off, I'll feel confident going 20 rounds vs TAP anyday :) [11:30] SamB_XP: testing-in-python@lists.idyll.org [11:30] ah [11:33] rusty: I think you mean smbtorture [11:33] rusty: there are a bunch of reasons that make it clear to me ;). it can't tell the different between streaming & trailing plans - unless its told at the front :P. fixtures aren't addressable; the model it encodes isn't comaptible with xUnit(arguably _way_ more successful than TAP), it can't attach [for transport] test artifacts (neither can subunit, in progress), it can't provide progress [unless it has an up front plan] [11:33] rusty: libtorture is just a unittest framework [11:33] hmm, did that cut off ? [11:34] hi, btw :-) [11:34] hi jelmer :) [11:34] jelmer: where did that run-on paragraph end for you jelmer ? [11:35] "front plan] [11:35] oh cool [11:35] jelmer: hi :) Yes, smbtorture conflates a lot of different tests. I'm mainly concerned about the lib/ dir; it'd be nice to have good unit tests for stuff in there. [11:36] rusty: jelmer wrote a *separate* think 'libtorture' - its not smbtorture [11:36] s/think/thing/ [11:36] lifeless: some things in smbtorture use libtorture though [11:37] sure, but rusty is seeking pure unittesting, which is what I thought, and you're confirming, libtorture is [11:37] lifeless: initially we just had very big functions that would return 0 or 1 depending on whether all of the hundreds of subtests they ran succeeded [11:37] lifeless: right [11:38] rusty: there are some things that do have tests [11:38] rusty: in particular for some of the functions in lib/util/ we have basic unit tests [11:39] rusty: see lib/util/tests [11:39] rusty: there's more, but its not really a 'quick over IRC' discussion, so I'm inclined to shelve it until either I get time to write a serious blog post on it (and endure any flames :P) or we're face to face and I can show you stuff [11:40] rusty: you might like to watch the SLUG talk I did a couple of months back; it was a 'oh we need a speaker urgently' deal, but not bad all the same [11:41] lifeless: sure... I've been happy with tap. But I *always* use a plan. The arbitrary numbering of tests, rather than being explicitly labelled: well, you should see what libtorture does :) [11:43] rusty: I'm happy for users to make their life as hard as they want :) [11:44] lifeless: ccan uses a simple system where independent test cases go in separate source files. So ideally only dependent tests are in a single file. It works quite well for isolating tests (though a gdb helper to stop on the first fail would be a win). [11:47] lifeless: for CCAN, I want any idiot to be able to write tests. libtap has the benefit of simplicity. libtorture starts to push the curve, *and* you don't get "addressable fixtures" (if that means what I think it means?) [11:47] rusty: libtorture does give you all that's required for addressable fixtures (if I am guessing right what they are) [11:48] rusty: addressable fixtures just aren't implemented yet [11:49] an addressable fixture is just naming a single test [11:51] rusty: I'm not sure I want idiots writing C code :) but I agree with the desire for simplicity [11:51] lifeless: right,that's what I figured. tap uses numbers, which is a movable feast unless you have the source in front of you. [11:51] lifeless: (and even then, figuring out the 113th test can be nontrivial) [11:51] precisely [11:53] lifeless: but in libtap the test name (if using "ok1" which is the simplest) is the code, which is the same as libtorture's torture_assert(). [11:54] rusty: interesting [11:54] rusty: have you seen check ? [11:55] rusty: you'll probably hate it, because it needs some boilerplate to insert it into a project, but I'm curious :) [11:55] lifeless: no? [11:55] https://sourceforge.net/projects/check/ [11:56] (or apt-get install check) [11:56] its an xUnitish C unittesting library [11:56] forks() before fixtures [11:56] supports some half decent higher order assertions - not brilliant though [12:00] lifeless: this is *not* helping me get through my email backlog!! [12:02] rusty: phfhtaw [12:21] Eer... Hello? :) [12:22] Is there anyone here available to give a little bit of help for a problem with bzr on OS X, whose cause is an upgrade from 1.13 to 1.17? [12:22] I probably can't help, but I'm curious what your problem is. [12:23] well, mostly the fact that I get the following notice every time I use bazaar : [12:23] "Key 'foreign-mapping-upgrade' already registered" [12:23] Unable to load plugin 'rebase' from '/Library/Python/2.5/site-packages/bzrlib/plugins' [12:23] fact is, the rebase plugin exists in the given directory [12:23] Alcmene_: you have incompatible versions of svn and rebase [12:24] so, the problem is with svn and not bzr ? [12:24] anyway, I've been living with this notice for two weeks, so it's not the main problem [12:25] the big one happened when I tried to use the "push" command [12:25] bzr: ERROR: The API for "" is not compatible with "(1, 13, 0)". It supports versions "(1, 17, 0)" to "(1, 17, 0)". [12:25] Alcmene_: with bzr-svn [12:25] I therefore assume that the upgrade from 1.13 to 1.17 didn't go totally well, which I already suspected before [12:26] unfortunately, I haven't found any way to uninstall bazaar completely [12:26] since I haven't found a full list of all installed data [12:27] jelmer: isn't the bzr-svn plugin packaged with the bzr isntaller itself? I don't understand why I should upgrade it on its own :s [12:28] 'bzr plugins -v' shows their paths. [12:28] So will the traceback in .bzr.log (use 'bzr version' to see where that's located). [12:28] Alcmene_: I'm not saying you should upgrade bzr-svn necessarily, just that the versions of bzr-svn and bzr-rebase you have installed are incompatible with each other [12:30] * Alcmene_ is checking the log [12:33] jelmer: are you sure about that? Cause the log says "Plugin name svn already loaded", which is quite the same as "Key 'foreign-mapping-upgrade' already registered": makes me think that I have a plugin duplicate, one from 1.13, and one from 1.17. How does this sound to you? [12:36] Furthermore, the "IncompatibleAPI" message I gave earlier says that (unless I misunderstand something) my bzrlib module expects bzr to be 1.17 and not 1.13... While my bzr _is_ 1.17! === mrevell is now known as mrevell-lunch [12:38] No, that's just unclarity of the message. It means SOMETHING expects bzrlib 1.13 and got 1.17. [12:39] fullermd: mmh, that's interesting. Thanks! [12:40] Examinating the log, it seems that bzr-svn is called when trying to use "push" [12:40] so I think we have spotted our guilty module [12:40] however, if someone could tell me why the hell bazaar calls bzr-svn when pushing a bzr branch to an ftp server... :s [12:44] Alcmene_: it's not called, but loaded nonetheless [12:44] (all plugins are loaded when bzr is started) [12:45] I agree, it's always loaded (that's the cause of the notice I get every time), but it is actually used when using push [12:46] because it's only when using this command that svn-bzr outputs to the log [12:46] ...and only with it that I get an error and not just a warning [12:48] Alcmene_: it might be trying to see if the remote location happens to contain a svn repo [12:49] might be, yeah [12:49] anyway, I have the trace now, so perhaps I'll take a look at it [12:49] this IRC is logged and archives are publicly available, isn't it? [12:50] Hi all === pwolanin is now known as pwolanin|afk [12:50] Is there a way to do a bzr push without remembering the address of the pushed-to branch? [12:51] Hi Lo-lan-do === doko_ is now known as doko [12:53] Lo-lan-do: when you first push, bzr remembers that url and should use it in future if you just run 'bzr push' [12:53] bob2: Yes, and I'd like to avoid that in some circumstances :-) [12:53] bob2: he asks for the opposite ;) [12:54] Lo-lan-do: sorry, totally missed the '-out' [12:54] Lo-lan-do: do you want to sometimes push to another server and have bzr remember the previous one instead? [12:54] Or do you want it to not remember at all? [12:54] Alcmene_: I want it to not remember at all. [12:54] The context is that I want to mirror a local repo into a remote one with pushes. [12:55] and don't want bzr to push every time you commit ? [12:55] Some of my local branches have push addresses memorised, which is fine. [12:55] Others don't, and then my mirror script will remember unwanted addresses. [12:55] Alcmene_: No, this is a maintenance script I intend to run from time to time only. [12:56] (I know about bound branches :-) [12:56] Lo-lan-do: (couldn't know, had to try ;) ) [12:56] well, have you tried --no-remember? [12:57] cause the help tells you about --strict and --remember [12:57] but the --no-strict option exists, even though it is not listed [12:57] Ho-hum. [12:57] Good to know, let me try that. [12:57] perhaps have they implemented it too? [12:58] push --no-remember doesn't give an error message, but it still remembers the URL :-/ [12:58] :/ [13:00] from the doc: [13:00] If there is no default push location set, the first push will set it. After that, you can omit the location to use the default. To change the default, use --remember. The value will only be saved if the remote location can be accessed. [13:00] doesn't seem like they've thought that someone would _not_ want it to be remembered [13:01] I'll just have to patch it :-) [13:01] (someday) [13:01] In the meantime, I'll sed on the branch.conf [13:01] (omission that I totally understand, BTW ;) ) [13:24] Ok, so, just in case all of this is logged and someone happens to have the same problem as I had: the problem was an obsolete bzr-svn version [13:25] I know, sounds obvious :( [13:25] diff size stuff? [13:48] Lo-lan-do: You can set the push loc in the branch.conf to an empty string, and then it won't be touched (except by --remember)... [13:54] fullermd: But then I lose the automatic remembering next time I do a manual push. [13:55] But thanks for the idea :-) [13:56] well, you could add the --remember option to the default ones in the conf [13:56] or you could also, with your script, save the previous location, do the push, and re-write the previous location back [13:57] hi Lo-lan-do [13:59] Hi jelmer [14:00] Alcmene_: I think it might be simpler to just implement a working --no-remember option :-) [14:01] hello jelmer [14:04] Lo-lan-do: might be, yeah ;) [14:06] hi Tak [14:07] Tak: Feel free to merge your branch into lp:monodevelop-bzr - I've approved it [14:08] oh, ok [14:08] I'm not overly familiar with how that works on launchpad :-) [14:08] do you have any thoughts on how "Review Changes" should act when there are pending merges? [14:09] Tak: it should probably list the pending merges somewhere [14:11] hmm...I don't have a ton of control over how that works without completely overriding/rewriting the UI for that panel [14:13] I suppose I could try creating a dummy diffset with the merges grouped together [14:18] Can bzr reconcile fix "inconsistent parents" errors? [14:19] Yes. [14:19] Thanks, I'll try that. [14:20] I'm getting a KnitCorrupt error when pushing to a branch that has them. Hopefully a reconcile will allow me to push again. === mrevell-lunch is now known as mrevell [15:31] Lo-lan-do: I doubt the two are related. [15:35] fullermd: Indeed, the push failed. I'm trying to start afresh. [15:56] so how do I do a merge on launchpad? normal branch,merge,commit,push? [15:57] Tak, yes [16:21] beuno: So what did become of the t-shirt? [16:22] Peng, I can't ship to the US, so I'm trying to score one in the London office, and send to you via snail mail [16:24] beuno: Ah. That sounds complicated.. [16:24] Peng, it is, but I will eventually win [16:25] How do t-shirts normally make it to the U.S.? [16:25] so how does that interact with the merge proposal stuff? or are merge proposals just formalities? [16:26] Tak: Merge proposals are an administrative thing, so people can work together to get a branch ready to merge. [16:26] ok, so it's technically unrelated to the actual merging [16:27] Tak: They're of great value, but they're completely disconnected from runn -- yeah. [16:27] * Tak nod [16:27] That could be changed in the future, of course. [16:27] I was wondering if I was missing the big green MERGE! button [16:28] There already is...something to help automatically merge things, but I don't remember the name. [16:29] Oh, there's your problem. It's chartreuse. [16:29] What's chartreuse? [16:29] Chartreuse is a problem? [16:29] Try Génépi instead. It even tastes better. [16:29] The big MERGE! button. [16:30] Oh! [16:30] * Peng looks up chartreuse on Wikipedia. [16:31] Yellow-green? I did not know that. [16:32] Think of how much happier you were 3 minutes ago :p [16:32] Now that LP is open-source, I can go download it and change it to chartreuse and set up my own instance, right? [16:33] Only if you GFDL it. [16:36] * SamB_irssi wonders why bzr-search creates so many files in /tmp in the process of indexing a branch... [16:37] It does? [16:37] Peng: it sure seems to! [16:38] try it with a branch of lp:coq [16:40] it keeps waffling between files like "/tmp/bzr-index-B4Xk5c" and files like "/tmp/tmpoubU4Q" [16:46] SamB_irssi: I believe when we create a btree index, we build the content in tmp [16:46] and then copy the bytes to the final location [16:46] That way we don't hold the whole content in memory [16:46] and we can be sure that we can 'seek', etc. [16:53] that explains why I didn't see it - my font color is already set to chartreuse === deryck is now known as deryck[lunch] [17:47] jam: makes sense ... but you repeatedly open new BTree files in /tmp ... like, way faster than I can run ls [17:48] that part, not so much [17:49] SamB_irssi: this is while building the index, right? [17:49] I believe bzr-search creates 1 index per prefix, or something like that [17:49] I don't know the specific storage mechanism [17:49] but it creates a *lot* of little indexes [17:50] jam: a buttload, yeah [17:50] and puts them all together and then indexes that, I believe [17:50] why does it put them each in a file before indexing it ? [17:54] the file you see *is* the index [17:54] we just write it to a temp file [17:54] and then move it across [17:54] i think [17:54] I haven't researched the bzr-search code much [17:54] I also believe it builds the index 2k revs at a time [17:55] That's right. [18:00] search seems to generate... 4 different indexes [18:00] revisions, terms, documents, terms2 [18:01] and that may just be the top level view and those themselves have sub indexes [18:01] Indexilicious. Or something. [18:02] well, it has the low level data, then indexes those, shoves all of that data into a '.pack' file as a series of indexes, then creates a 'names' file which is yet another index... [18:05] interesting poking at the code a bit [18:05] it uses 'make_mpdiffs()' to be able to figure out what actual content was introduced in a revision [18:05] walking the diff hunks [18:05] also interesting is that it doesn't seem to index non-ascii data [18:06] _tokeniser_re = re.compile("[^A-Za-z0-9_]") [18:08] That would be a good place for one of bzr's lazy regexes, no? [18:08] Peng: it probably would, but it is done inside an "_ensure_regexes()" so it is already lazy [18:09] "_ensure_regexes()" seems more error-prone than a lazy regex to me. [18:12] Anyway, not the point. [18:12] Peng: Sure, probably mostly because of timing [18:12] lazy may not have been available [18:12] True. [18:12] also, bzr the command line replaces the regex compiler so that *all* re.compile() statements are lazy === mrevell is now known as mrevell-dinner [18:17] more interesting is that bzr-search does a lot of work to make its content compact [18:18] using offsets to produce simple integers to do lookups between the different indices [18:18] I wonder if that is obsolete with btree indices but was never updated to follow suite [18:20] Any idea why loggerhead would be generating links like (Note duplication of host) [18:21] It seems to do it when proxied through Apache but not when I hit it directly. [18:30] Nevermind, it seems the Apache config does Funny Stuff. [18:31] Seems maybe I shouldn't try and cascade two levels of proxying… [18:31] Two levels of proxying does...that? [18:32] I guess it gives the hostname at each level of proxying, in case they're different? [18:36] Loggerhead receives only one Host: header, but "X-Forwarded-Host: zforge.org, zforge.org" (and same for X-Forwarded-Server) [18:37] Ah. [18:41] I'll debug that after food. [18:42] Prob'ly a Paste thing. === deryck[lunch] is now known as deryck [18:51] hi! I have a lot of changes in a project that I'd like to partition across a series of commits, is there a tool that helps on this? [18:52] shelve/unshelve? [18:53] servilio: yup, shelve/unshelve works or if you prefer there's an interactive commit plugin that's pretty nice [18:53] http://bazaar.launchpad.net/~asabil/bzr-interactive/trunk [18:54] phinze: thanks! [18:54] I quite like shelve/unshelve, although annoyingly shelve(2) doesn't do partial interactive unshelve, as unshelve1 had [18:54] * servilio goes to look at bzr-interactive [18:54] So you either have to shelve up in reverse order, each set of changes, or.. shelve the lot, commit, unshelve, then reshelve again [18:57] Peng_: Prob'ly, yes. Any idea how to be sure? [19:00] jam: I'm talking a bajillion different files created in /tmp -- not just a few hundred [19:02] SamB_irssi: are they being deleted? [19:04] jam: of course, yes [19:05] there only ever seems to be one at a time ... [19:05] SamB_irssi: then i'm not very surprised [19:05] bzr-search generates a lot of tiny indices [19:06] when it is done, you could try doing [19:06] Lo-lan-do: Sorry, I don't, except for lots of digging around in the code. [19:06] grep 'Graph Index' .bzr/bzr-search/indices/*.pack [19:06] and you'll see how many it created [19:06] also note that it has some logic for combining indices [19:06] I don't know the frequency, etc [19:07] but there is a possibility of having significantly more created than the final number [19:07] SamB_irssi: On my simple index of bzr-search itself (which is a rather tiny project), I have 2928 indices [19:08] % grep 'Graph Index' .bzr/bzr-search/indices/*.pack -c [19:08] .bzr/bzr-search/indices/1aa4b32392ac306a517bbde1541c6156.pack:69833 [19:08] .bzr/bzr-search/indices/1cc10f06974551571a251c2b615a7ecd.pack:42632 [19:08] .bzr/bzr-search/indices/3428b8cb5c8ca0c0ce6fbd3e77440b24.pack:45649 [19:08] .bzr/bzr-search/indices/50ad99ed8415ebe08ff77c5ba0ff2efd.pack:33426 [19:08] .bzr/bzr-search/indices/9b494322bed23caf692fbfb91adea948.pack:47050 [19:08] .bzr/bzr-search/indices/cc5a9bde095ed3939a49a73f1fabb749.pack:42741 [19:08] igc: hi [19:08] SamB_irssi: that isn't a bajillion, that is only about 200k [19:09] well off of a bajillion [19:09] hello all [19:09] but yes, all 200k of those will have created a temp file [19:09] that's still a heck of a lot of temp files! [19:09] 200k temp files? That's healthy... [19:13] 200k -- what the hell? [19:14] bialix: 'bzr-search' while generating the search index creates a *lot* of temp files [19:14] oh no [19:14] only 1 at a time [19:15] but a lot in a row [19:15] this will be major overkill on windows [19:16] SamB_irssi: actually, looking at the code, we may be creating 2 temp files per index [19:16] hence why you saw the bzr-index and the plain tmp- [19:16] we create a temp per row, and then one temp for the root [19:16] well, temp per row, and then a temp for the final output [19:18] That's, um, a lot of writing. [19:23] SamB_irssi: out of curiosity, what is the total size of your .pack files? [19:23] I'm just curious what the average index size is [19:24] jam: the index ones ? [19:24] SamB_irssi: yeah [19:24] du .bzr/bzr-search/indices [19:24] Hello all, is there a way to tell bzr-svn to have dpush-like behaviour in checkouts (not use bzr metadata)? [19:27] jam: 55 megs, apparently, or 56028 for the command you gave [19:27] hmm... 288 bytes each [19:27] lots of small ones :0 [19:28] alf: that would be excessively evil [19:30] SamB_irssi: why is that? [19:30] SamB_irssi: why would that be? for me it would make sense if you are trying to commit to a repo you don't own and don't want to create noise [19:31] I personally think binding to a remote branch is evil period ... [19:32] hmm, how much does the post-dpush rebase load the server? [19:33] no, I mean I think you should look at your commit and make sure you did it right before pushing to the remote ;-) [19:34] Peng_: Too lazy to debug myself, but I found a workaround by deleting the header in the Apache configuration. [19:36] SamB_irssi: You may be interested in: lp:///~jameinel/bzr/2.1.0b1-small_btree_no_disk [19:36] That uses an in-memory object until the btree > 1 page (4k bytes) [19:36] the time for 'bzr index bzr-search' drops from 4s => 1.0s for me [19:37] http://zforge.org/scm/browser.php?group_id=9 now works :-) [19:37] ideas on this guys ? http://pastebin.com/m37a7deec [19:38] ereslibre: upgrade your bzr-gtk [19:38] ereslibre: the ProgressBarStack was deprecated for a long time before bzr-gtk was updated [19:39] (which didn't happen until we finally removed it :) [19:39] jam: senior Fuente insists on newer subvertpy in windows installer. can you update it and provide new installer? [19:39] jam: thx :) [19:43] SamB_irssi: on my Windows laptop, that change makes a world of difference in the OS [19:43] without it, the System overhead goes through the roof, and my machine is a bit unresponsive [19:43] with the change, the cpu load goes up, but without a corresponding IO overhead [19:44] bialix: I'm happy to change it, but what am I changing it to? [19:45] hey guys.... trying to update from my laptop to my windows desktop,,, c:\devel\myproject>bzr update "bzr: ERROR: [Error 123] The filename, directory name, or volume label syntax is incorrect" [19:45] htis is when it gets down to a file that is in a tmp directory which should be ignored. [19:49] SamB_irssi: by comparison, I can index all of bzr.dev in 5m2s, with temp files I was at only 22MB/65MB after 4min [19:52] I'm glad I usually have /tmp as a tmpfs. [19:55] I was just trying to commit to a checkout of a simple SVN repo and got "bzr: ERROR: exceptions.TypeError: unsupported type None" (along with the traceback). [19:55] I am using 1.17 (debian). Is this something known/fixed or should I file a bug? [19:56] alf: Always upgrade before asking/filing a bug [19:56] jam: buildout.cfg: subvertpy-release = 0.6.9 [19:57] alf: I'm pretty sure that is a known and fixed issue [19:57] bzr-svn was trying to set a revision property to None [19:57] rather than an empty string, etc. [19:57] bialix: what about the version of bzr-svn itself? [19:57] jam: I dunno [19:57] jam: jelmer is not very specific [19:58] jam: http://bazaar-vcs.org/BzrForeignBranches/Subversion?action=recall&rev=234 lists bzr-svn 0.6.5 as latest [20:01] I think we want to release the 1.0 series with 2.0 if possible [20:01] but I don't know where jelmer is in finishing 1.0 [20:02] k, I believe Naoki also wanted us to try out tbzr 0.3 [20:02] rc2-5 ... coming up [20:04] thx jam [20:26] davidstrauss: using bzr 2.0rc2 and latest bzr-svn I am still getting a crash, although I am not sure if it is a bug in bzr or bzr-svn... [20:26] alf: Why are you asking me, in particular? [20:29] davidstrauss: only because you were the first to answer me before, sorry [20:29] alf: Sorry, but I don't know anything about bzr-svn :-/ [20:30] davidstrauss: no problem [20:44] hmm... just checking: there is no way I can migrate history to a SVN server to which I only have HTTPS access, right? [20:45] denys: If your history is linear, yes you can. [20:45] If you have write access. [20:45] Lo-lan-do: what's the trick? [20:45] And if you have a non-linear history, then you can only move one part of it. [20:46] You can push to svn repositories. [20:47] Lo-lan-do: you mean: I replay the history? [20:48] Lo-lan-do: bzr-svn + push (I am sorry if this is a stupid question, but I have never done that) [20:48] Lo-lan-do: I have to migrate a CVS module to a SVN server, and I only have HTTPS access to the SVN server [20:50] really? can't you ask the admin to import a dump of a svn repository? there are cvs2svn tools that work well, you do not need to do the extra conversion through bzr. [20:51] zsquareplusc: no, unfortunately, there is NO WAY they will allow anything to execute locally on the server. === oink is now known as kiko [20:52] denys: svn can dump a repository to a xml file and svnadmin can mport those again. of course the admins would need to run that, not you. i would hope they already to use that to backup their servers.. [20:54] zsquareplusc: I know this would be possible, but the admins are extremely paranoid and not exactly willing to go out of their way to help. so, that option is unfortunately out. hence my enquiry :-( [20:56] sounds like an IT department of a larger company ;-) [20:56] Maybe tailor is able to push to a remote SVN repository? [20:56] just an IT at a modest university [20:57] denys: do you really need to use their svn server? use bzr right away ;-) [20:57] Lo-lan-do: things is, I could not see how it could be done using svn functionality - I just wanted to check with others [20:58] zsquareplusc: it has been a 3 years battle just to get svn with external access. I would love to get bzr, but that is still "FUTURE WORK" [20:58] Ideally, you'd pull from CVS into a bzr branch that's bound to an SVN branch with bzr-svn. [20:59] But that sounds like a lot of complication. [21:01] Lo-lan-do: the problem is just preserving history with a reasonably accurate timeline (timestamp-wise) [21:01] denys: well with a distributed system like bzr you don't have to integrate that tightly with system administration. having a smart server may be nice, but bzr also works if you just have webspace where you can push to using sftp :-) [21:06] zsquareplusc: yes, but the issue is that research oriented projects should be hosted at the university (this is an essential part of the valorization of the work beeing done here). hosting elsewhere is possible (I have done it) but that's not desirable. furthermore, sftp cannot work for external collaborations, because there is no way that the university will grant ssh access (even restricted, even when run in VMs as we do) to non-local [21:06] personel. [21:08] the external participants would need to host their branches elsewhere ("outside") so that you can merge them in that case. so the "trunk" could be at your place [21:10] denys: hey you came to bzr so we at least have to try to sell it ;-) you can of course also try to import your code into the SVN repo. bzr-svn may work and there may also be other tools that can accomplish this. [21:10] they would still need to authenticate to get locally hosted branches - and that is a problem [21:10] http+password is possible [21:11] only if you are in control of the server, which we are not [21:11] I have NO access to the server but HTTPS [21:12] its the same setup as you would do for https for svn, only that its not the svn backend but a simple forder you have write access to [21:13] but I have NO access. not to a folder. not to anything. its HTTPS or nothing. [21:14] so you do not even have a web page for your project where you can upload files? [21:18] no, uploading is also extremely difficult. you need to setup a tunnel through 2 specific gateways. _I_ can do that, but none of my colleagues could. and the pain, the pain... [21:25] I want to have software version in each text file of my application automatically. Is it possible? Just like those $xxx$ comments in CVS [21:29] "Keyword expansion" is the ... well, keyword, you're looking for. [21:29] There's a plugin for it, but it's not practically usable. Needs various bugfixes. [21:29] so bzr doesn't have it in core? [21:31] No. [21:33] It causes large amounts of headaches in CVS. Would it be better in Bazaar? [21:33] Everything's better in bzr. [21:33] Ponies get distorted by RCS files, y'know. [21:35] Don't belittle RCS files. RCS files are going to make me rich. [21:36] Well, they'll make me money, at least. [21:36] how to know what rev a file belongs to? I mean, the rev that was the latest to change that file? [21:36] (Large migration from CVS to Bazaar planned at a client.) [21:36] "I am Sub Version, the widow of the late Premier of CVS. On his death, he left TEN MILLION DOLLARS in his RCS files. I require your help to move this out of the country..." [21:37] RenatoSilva: bzr log $file [21:37] fullermd: :-) [21:37] fullermd: you get too much spam ;-) [21:38] Well... I have an email address. It's tautological. [21:39] Hello, I am trying to understand why bzr dpush needs a rebase afterwards. Can someone point me to an explanation (preferably containing a simple example)? [21:41] alf: AIUI, because what dpush does IS actually a sort of rebased push. I don't know any details beyond that vague sense though. [21:44] after the dpush it has to make your local revisions carry the ID of the remote branch again, as otherwise they would not look at being the same? the changesets get a new ID when they are integrated in the other VCS. (maybe this, i don't really know) [21:45] so it integrates all your changes in the other repository and the rebase makes your local branch look as it were checked out from the new head of the remote repo. (?) [21:46] zsquareplusc: the devil is in the details :) [21:47] Lo-lan-do: thanks [21:51] Let's say that the svn repo contains revision A-B and you dpush additional revisions C-D. [21:52] Then the local branch will contain A-B-C-D and the remote A-B-C'-D' (?) [21:54] How then is the rebasing performed? I must be missing something. [21:55] after rebasing, your local repository will also contain A-B-C'-D' - same contents so they are "in sync" [21:57] Can rebasing delete revisions (eg C-D)? [21:58] hmm is anyone working on a bzr book? [21:58] Depends on your opinion on the Great Detroying History question. [21:58] It doesn't delete them from the repository, no. But they're no longer in your ancestry. [22:01] not following rebase discussion but I have a question about the one from a time ago [22:02] merge from trunk for just updating versus rebase (which I have not used yet) [22:02] isn't the former a mess with your history? [22:03] when you work with bzr on both ends you usually don't need rebase i guess [22:03] because in pratice if you're working on a feature branch, you just want to keep it up-to-date with trunk [22:04] I'm just worried about the mess in mistory [22:04] we'll have seevral artificial commits "merge with trunk" [22:05] why artificial? it was a change in the history of your branch [22:05] is keeping the exact history of what happened, even if it includes those artifical merges (for update purpose), the only reason for preferring the former not the latter? [22:06] zsquareplusc: artificial in the sense that you'd get the same result if you instead of merging from trunk, remove changes, pull from trunk, then apply changes (I think this is rebase) [22:06] zsquareplusc: the question is: is it just about keeping a history??? [22:07] rebase rewrites your branches history. so you may get different revision numbers. with merge you do not have this problem. you just get an increment when you commit the merge [22:08] so you may get different revision numbers? for example? [22:09] in a rebase that can happen. as you can make it base on a different history [22:11] * RenatoSilva is back (conn problems) [22:29] when you checkout code from a remote system, do you have to specify an absolute path? eg,,, bzr init; bzr pull bzr+ssh://me@ipaddr/home/me/code/project1 or can you just specifiy a location relative to your home on the remote system after the host address? [22:31] Full path, until the server's running 2.1. [22:31] 1) i'd just cd to to local directory with your projects and use bzr branch [22:31] (or you're using sftp) [22:31] fullermd: so rebase... [22:31] fullermd: I was disconnected [22:31] fullermd: what's the problem of rebase === mrevell-dinner is now known as mrevell [22:32] Oh, no. I'm not getting drawn into THAT discussion again. [22:32] fullermd, ahh,, ok i'm only running 1.18 [22:32] fullermd: our conversation was interrupted [22:32] I wasn't in that conversation. [22:33] fullermd: my point is that rebasing (if I understand it correctly) makes the history more natural, even if not that precise [22:33] fullermd: sorry if you wasn't, I thought it was you who wss talking to me [22:34] No, you were talking with zsquareplusc. After the 15th or 20th time I watched that discussion unfold, I decided it was an utter waste of time. [22:35] If you already agree with $ME (for any value of), there's nothing to discuss, and if you don't, nobody is going to change their mind. [22:35] It's more productive to debate whether god exists, and if so, whether he supports $POLITICAL_PARTY. [22:37] I think you're confusing me to someone wanting a flame war, REALLY [22:37] fullermd: if you were here yesterday or so you'd know why I was asking [22:37] Yeah, that's what everybody says when they open up topics like that :p [22:37] fullermd: I don't even know how to use rebase or what it is exactly, I just think the idea is good [22:38] fullermd: ok forget the word rebase, I'll explain the problem more strictly [22:39] fullermd: ok forget the word rebase, I'll explain the problem more strictly (ignore if you wish) [22:40] hmm, i have .bzrignore in the root directory of my WT, is that that right location for my ignore list? [22:40] i'm finding that some files matching my pattern aren't being ignored. [22:40] It is. [22:41] What suggests they aren't being ignored? [22:41] they're appearing in unknown [22:41] Oh. That's a good indication 8-} [22:41] ahhh wait, they're in another tmp dir near the other tmp dir.... ;P [22:42] there's tmp for uploads, and a tmp for captcha's,, i forgot to ignore jpg's in the captcha tmp.... oops [22:42] 1) I have feature branch fb cerated from trunk rev 10 2) I submit a few revisions to trunk, which is now at rev 15 3) at the same time I commit to fb, which is now in rev 12 and done 4) I merge fb into trunk and the result is... [22:43] bzr: ERROR: [Errno 2] No such file or directory: u'C:/Users/Me/Documents/devel/project.com/.bzr/checkout/limbo/new-2/web/public/shared/js/jquery.form.js?2.31" [22:43] what's this about??? [22:43] trying to pull down from repo on my linux box. [22:44] windows version i'm getting this error on is 1.18.1 and linux version is 1.18 === verterok_ is now known as verterok [22:48] Got me. There've been occasional weird issues with files being/not being in limbo where they shouldn't/should, but they were mostly older versions. [22:48] Is it happening consistently? [22:49] yeh, i completely deleted the copy on the windows machine, then re-init'd an empty branch, and tried to pull into that branch again. [22:49] is it something to do with the ? in the file name perhaps? [22:50] Possible, I guess, if that's illegal on Windows. But I thought all those cases were handled. [22:50] Any particular reason you're init/pull'ing instead of branch'ing? [22:50] oh, tried just branching also and it broke. [22:50] was first try to just branch. [22:50] just as alternate method tried init/pull [22:51] didn't try a shared repo yet,,, but i feel this is something to do with the file or that character, rather than antyhing like branch locaiton. [22:51] morning lifeless [22:51] No, shared repo wouldn't much matter. That's all happening in limbo (building the working tree) [22:51] Can you make filenames with question marks in them? [22:52] jam may be more helpful than I... [22:52] i'm actually just deleting the file from the branch on linux machine, and trying now, it was just a copy of the downloaded jquery.form 's plugin. [22:52] fullermd: ? is illegale [22:53] \ / * : ? | " < > are all illegal [22:53] hello [22:53] hi jam [22:53] hey poolie [22:53] Well, that would 'splain it then. [22:53] Though I thought we had traps to give more pointed errors in cases like that. [22:54] NET||abuse: I would agree with fullermd that I thought we would at least give a nice error for this case. But we can't create them so you need to delete them on another machine (for now) [22:54] eh, yeh,,, problem solved... hmmmm so no ? marks in windows version. [22:55] guess it could be an ntfs problem. [22:55] restricted characters [22:55] poolie: let me know when/if you want to call [22:56] jam, hi, i do want to call [22:56] i'm just finishing something up here and i'll call in a few minutes [22:56] skype/home/mobile? [22:56] home is probably easiest, but skype is fine too [23:01] hi jam [23:01] so the cStringIO thing; my original thought was 'probably won't hit disk', I think. [23:01] jam: but I'm glad to have it be nicer for windows ;) [23:01] lifeless: well, it has to allocate an inode, etc [23:01] I'll try checking it on a linux box [23:02] allocating the inode doesn't have to hit disk, until fsync on the containing dir [23:02] anyhow, I've +1'd [23:02] yeah, I sawthat [23:02] jam, calling [23:10] huh.. when i have parent branch: bzr+ssh://me@ipaddr/path/to/repo but then bzr push says no push location [23:10] sorry for the basicness of this, it's just a bit of a confusion [23:11] push doesn't use the parent location by default. [23:11] It has its own. [23:11] ohhh,, how do i set that then? [23:11] You can use the saved loc shortcut to set it quick (`bzr push :parent`) [23:13] ahhh, ok [23:13] bit confusing though isn't it? [23:14] The operative theory is that push'ing to somewhere other than you branch'd from is a very common case. [23:14] (e.g., you might often branch from a location you can't write to) [23:15] ahah,, that's true. [23:15] i guess.. it's just more a ,, where do i look for those instructions? [23:15] they're not very obvious, even after reading the workflows documentation. [23:15] Contrast with merge, which also has its own stored location, but will use the pull loc if that's not set. [23:15] hm. when that :parent shortcut works in such cases, it would be worth mentioning that in the error message of push when it has not yet a saved location [23:16] First, merge'ing from your original base is more common, and second, if it's NOT what you want, accidentally doing so isn't near as harmful. [23:16] (if you accidentally push somewhere you didn't intend, it can be much harder to undo) [23:16] Not sure what instructions you mean. If you mean having to supply a location when none is saved, that's common to pretty much any command (including pull). [23:17] If you mean the shortcut names, last I heard they weren't documented. [23:17] Their existence is mentioned buried in NEWS, but last time I wanted to know what the choices were I had to dig into the code. [23:17] That was a while ago, though. Maybe they're in the manual. [23:17] well i did not know about it, i always had to specify the same URL 3 times.. branch then pull/merge and push :/ [23:17] lifeless: so on an old linux box, indexing 'bzr-search' itself: 4.894s => 2.426s [23:18] cool [23:19] (I haven't followed the progression of the documentation as closely as I should :| ) [23:20] zsquareplusc: You certainly shouldn't have to specify it on pull after branch. branch sets the parent loc. [23:20] fullermd: with instructions i mean instead of just "bzr: ERROR: No push location known or specified." it could additionally mention what's possible [23:21] Well, what's possible is specifying it. Trying to describe all the possible forms that can take is *way* out of scope for an error message. [23:22] It _should_ (in the sense of 'out to', not 'I think is') be in the docs. [23:22] Holy crow. "ought to". My fingers are not my friends today. [23:23] i'd not mind short usage tips when i'm doing something wrong. better than nothing and "good look to find it in the manual" [23:24] Giving useful tips in a situation like that is bzr-dwim territory ;) [23:25] I am experimenting with bzr-svn and have created a branch of an svn repo. I have commited something on local branch and something in the svn repo so they have diverged. [23:26] well an an option is when the help is built in to give at least a hint on how to get that help, e.g. if there were a "bzr help location" it could direct the user to read that. [23:28] I am trying to push to the svn and of course I cannot due to the branches having diverged. So I merge from svn to the local branch. [23:29] Now when I try to push to the svn it says that Operation denied because it would change the mainline history... [23:30] I am wondering in what way my push will change the history on the svn. [23:31] svn can't represent the history bzr has, and the standard projection into lower dimensions (as it were) differs from the existing history. [23:34] so is this one of the use cases for rebase? [23:34] so if svn and its bzr branch have diverged, is there a way to perform the merge from the branch->svn without changing the mainline? [23:35] (I mean the mainline history) [23:36] Generally, by doing the merge the other way around, so the svn history and bzr mainline coincide. [23:39] I don't think I got that. If my branch and svn have diverge what steps do I have to take to get my branches changes to svn (without history changing)? [23:40] Merge the bzr changes into the svn changes, rather than the other way around. [23:40] e.g., have a checkout (not a branch) of the svn branch, and a bzr branch in which you do the work. To land it, merge it into the checkout and commit it. [23:41] ahh, ok [23:41] (you could use a branch instead of a checkout of course, but a checkout can be conceptually more accurate) [23:41] Basically, you want to end up with "merge my-changes ; push" rather than "merge upstream-changes ; push" [23:42] if I use a branch isn't the situation the same as the one we have been talking about? [23:43] No, it's not really branch vs checkout, it's a question of which side of the merge you're on. [23:44] Checkout just conceptually fits what you're doing (merging stuff into the svn 'branch') and suits staying in lockstep. [23:46] I'd appreciate very much if you could read this http://pastie.org/625271 :) [23:46] http://pastie.org/625271 - update-merges vs. rebase [23:47] that's an example where I put how would it be in both cases [23:48] fullermd: thanks for the explanation, I think after some processing on my part things will become clear [23:52] RenatoSilva: i don't think that this will work in all cases. you known that with rebase, you can run into conflicts while rewriting the history? [23:54] zsquareplusc: see I'm not agueeing, I'm learning. No I don't know [23:54] zsquareplusc: what proplems in that example could get wrong? [23:54] * argueeing [23:55] * arguing [23:57] zsquareplusc: in that example specifically, no history is really rewritten, it's just like starting the work again after each update in trunk [23:58] zsquareplusc: e.g. you could replace steps 3.[2,3].2 with "forget it all, do the same code changes again manually"