[00:01] 1.0.0 [00:01] hi all and happy new year (to those celebrating it) [00:02] somebody mentioned a couple of weeks ago that he is working on creating a patched svn version [00:02] and a smarter install for Mac [00:02] any news on this? (I know there is a distro for 10.5, but the discussion was to make it available for Mac 10.4 too) [00:03] Keybuk: So in 1.0, the reason why it didn't support remote urls was that it always used working trees. [00:03] However, local URLs should work just fine. [00:05] In bzr.dev, diff has been reworked significantly, and now uses the last-committed-tree for remote URLs and for branches without trees. === luks_ is now known as luks [00:39] Anyone know how to get svn style status? There seems to be a short keyword arg to status.show_tree_status that does what I want, but I'm having trouble getting started with the api. I'm not really sure if I want to be writing a script to filter the bzr output, call status from within, or make a plugin that is called by normal bzr st. Can someone point me in the right direction? [00:39] zekel: bzr st -S ? [00:40] what sort of thing you would want to use really depends on what you're trying to write [00:40] Oh, I guess I got confused. What I really want is the paths outputted to be relative to the cwd, and I took that to be the svn thing. [00:40] and in what lnaguage [00:40] I was thinking python. [00:40] ah, ok. I don't think there's a way to report paths relative to the cwd yet [00:40] but I may be wrong [00:41] I think I asked if there was a builtin way and was told no, not yet. I find that I don't check in stuff as much if the paths are long, which is really bad. [00:41] I could do something with sed, but I thought I'd try to do it from within python instead. [00:43] I think what I need is to know the correct way to get a working tree object, so that I can call a status method, which I can then mess with. [00:43] uhm [00:43] just write a replacement formatter? [00:45] That sounds like a great idea. I should look at the normal one and make my changes? [00:45] it may not be fully pluggable right now; a good place to start looking is bzrlib.status [00:47] That's why I'm thinking it might just be a better idea to have a filter script to pipe it through. [00:51] perhaps [00:51] we do like making things pluggable though :) [00:52] I can't say I'm an expert, so hacking bzrlib vs. filter script might be the difference between impossible and doable. [00:53] At least based on trying to read it. [01:00] zekel: ah [01:00] zekel: well, let me have a quick check [01:01] look for 'if short:' in status.py [01:01] see _mod_delta._ChangeReporter [01:01] thats the interface you can use to write a new reporter [01:02] What exactly are rich roots? [01:02] you can subclass that too [01:02] and hardcode in a new class in status.py for now [01:02] Peng: versioned '/' [01:02] What does that gain? [01:02] bzr split; bzr join [01:05] How do rich roots help that? What information about directories is there? [01:06] last-change and file-id [01:06] (and children obviously) [01:06] Ok. [01:06] I still don't get it. [01:06] it stops new files in the root of the project you joined being merged to the root of the combined tree, rather than the correct child node [01:07] say you have project A: [/] and B: [/, /README] [01:07] if you join B to A at subproject you get: [01:07] A': [/, /subproject, /subproject/README] [01:07] if you commit to B a new file 'configure' [01:07] then merge B' to A' you want: [01:08] A'':[/, /subproject, /subproject/configure, /subproject/README] [01:08] this requires you to know that B''s '/' is A's '/subproject'. [01:09] if B's / has no file-id then you can't tell that. [01:12] Ok. [01:16] That could be inferred, but I guess it would require rewriting history a bit? [01:16] Or, I dunno. [01:16] It sounds really easy to infer that when the merge is done, but I guess it doesn't map well to being stored? [01:17] the only thing available to infer this is the presence of README [01:17] or a deep history search [01:18] the first fails if there is also another file, say AUTHORS, that became /AUTHORS rather than /subproject/AUTHORS [01:18] though it is arguable at that point that a conflict should be raised (but you should still be clear about the options) [01:18] and deep history searches are generally bad things to do [01:19] because they break when you deliberately truncate history (e.g. partial branches because you don't want the deep history for now) [01:21] Is there some reason other than backward compat not to go rich-root by default? [01:21] It seems like most of the dangerous/surprising bits are segregated in the -subtree variant now. [01:22] dunno; I'll think about that later. Coding now. Tchau. :) [01:23] Better choice :) [01:49] abentley: if you are pro the experimental format approach I put forward, consider a review :). [03:02] This is probably asked allot, but, I created a bzr branch and then tried to merge in something from a subversion repository and just can't seem to figure out how to get it to work. I have successfully branched a svn repo into a non-pre-existing bzr branch, but I was hoping to create a bzr repo and selectively merge in svn branches. I'm using the svn-bzr plugin. Any thoughts? Is what I'm trying to do even possible? I can give any det [03:02] ails that may be of help. [03:06] well, an error message would be a good start :) [03:06] ok [03:06] one sec [03:06] * fullermd presumes it'll be a repo format issue. [03:07] yes, that seems to be the case, here is the lead up [03:07] bzr init [03:07] bzr merge svn+file:///home/pfharlock/arc/subversion/snippets [03:07] bzr: ERROR: Repository KnitPackRepository('file:///home/pfharlock/test/.bzr/repository/') is not compatible with repository SvnRepository('file:///home/pfharlock/arc/subversion') [03:09] upgrade --pack-0.92-rich-root I think is what you need [03:09] Yeah. You'll need.... mmm... at least one of the rich-root formats, and maybe the -subtree one. Not sure how far bzr-svn pushes you currently. [03:09] --rich-root-pack [03:10] (no 0.92?) [03:10] ok, thanks for the advice, I'll try that, I'm on bzr 1.0 [03:10] bzr-svn is supposed to work with the rich-root formats. [03:10] just out of curiosity, why does the rich root format help? [03:11] it adds metadata svn exports need to do the right thing with some of the copy-to-make-branch operations [03:15] yeah, that seemed to have worked, thankyou very much, will the rich root formats eventually become the default in bzr? [03:16] yes [03:28] * igc lunch [03:28] one more silly question, if you create a rich root format branch or repo, can you merge from it into a standard default knitpack or is it simply not backwards compatible that way? [03:35] pfharlock: It is not compatible for the same reason SvnRepository isn't compatible. There is data in "rich-root" formats that pack-0.92 cannot represent. [03:36] I see, thanks again for the help, it's really appreciated. [05:39] abentley: you replied to me, rather than the list [05:39] Oh, thanks. [05:40] abentley: I guess my habitual "group reply" in mutt that does "To: you / Cc: the list" breaks in combination with your reply habits? [05:40] I blame New Year's celebrations :-P [05:40] Heh. [05:41] I usually use "reply all", but I've recently changed my email address, so I've been a bit out of sorts. [05:42] spiv: Does that subtract_plans docstring look helpful? [05:42] abentley: very! [05:42] Oh, great. [05:43] I'm just applying your tweaks now. === bigdog_ is now known as bigdog__ === doko_ is now known as doko [08:16] night all [08:56] lifeless: still here? [09:07] fsvo here [09:07] dinner is ready in 2 min [09:07] i was fighting getting tg installed on squid-cache [09:08] but now i'm on the phone to thumper [09:13] tg is installed system wide [09:15] it is? [09:16] maybe i'm running things with the wrong python... [09:16] 2.5 [09:16] ah yeah [09:50] lifeless: you're definitely special: http://www.squid-cache.org/bzrview/squid3/trunk/changes [10:07] is there a plugin to support individual hunks commits, darcs style? [10:08] mwhudson: did you put anything in a per-user python dir or something ? [10:08] mwhudson: and how are you starting it ? [10:17] lifeless: "python2.5 ./start-loggerhead.py -f" [10:26] how come the release notes (and actually releases thmeselves as well) are so irregularly linked from http://bazaar-vcs.org/news ? [10:26] doesn't that happen automatically? [10:37] urgh, for some reason "bzr branch http://michael.ellerman.id.au/bzr/plugins/diffstat/" takes about 2 minutes and heaps of bandwidth [10:37] for all of 11 revisions [10:38] even a simple bzr ls takes 20s [10:39] The remote repository contains a lot more. [10:41] (Probably a copy of bzr's branch.) [10:54] mwhudson: I was using 'python start-loggerhead.py' [10:54] Peng: bet that teh remote repository is knits ;) [10:54] lifeless: It is. [10:54] mathrick: thats an old format repository [10:55] ah === cprov-out is now known as cprov [10:55] night all [10:55] I wouldn't call it old, just not new. [10:56] G'night. [10:57] lifeless: ah ha [10:57] why the fuck does that make a difference [10:59] Peng: it's slow enough to be old :) [11:05] lifeless: as predicted, though i'm not sure why, deleting the [logging] section of the config seems to help [11:07] garh, how can I debug WHY a plugin can't be loaded? [11:08] ie. get whatever error makes it so [11:13] Can someone point me at the docs for what a Text conflict is, vs. a Contents conflict? [11:15] Kinnison: http://doc.bazaar-vcs.org/bzr.1.0/en/user-guide/index.html#conflicts-types [11:16] thanks [11:17] Contents conflict in vl.h [11:17] * Kinnison thinks bzr misclassified that file [11:22] mmm or perhaps not [11:22] urgh [11:25] I think upstream deleted that file [11:25] pants [11:25] thanks [11:25] I hate qemu [11:26] mathrick: look in ~/.bzr.log [11:33] mwhudson: aha, thanks [11:41] how can i work out with trunk and branch methodology [11:41] indu: eh? [11:41] what do you mean? [11:41] is there a specific way that a version control system should follow for publishing the source, to the community [11:42] mathrick, i just started maintaining a version control system for my project, prev i had used svn [11:43] now i am trying to shift to bzr which has much more better features [11:43] indu: aha, there's no One True Way [11:43] but I am confused how to organise it [11:43] there are many ways, depending on what your project needs [11:43] mathrick, my project has different releases, named as sethu, tarang, and anant [11:44] indu: how big is it? How many core developers do you have? Is it open source? Proprietary? Proprietary with external contributors? [11:44] its an opensource [11:44] mathrick, and in future i will have some more release, [11:45] thus, if I consider each as seperate repo, and then upload my souce as branches ( each repo has more than one branch) [11:47] indu: what are those releases? Are they versions, or separate codebases? Do you need to maintain each independently, or does one release make others obsolete? [11:47] mathrick, they are not versions, they are different releases [11:47] but what is a release? [11:48] are they separate programmes? [11:48] mathrick, i am working on a linux distribution, [11:48] based on debian [11:48] okay? [11:48] and to maintain its source i am trying this [11:49] you can have a look at http://packages.bosslinux.in/boss/pool/ [11:49] where there are three releases, and under each there is a main folder, and the source under that folder only need to be made version controlled [11:50] aha, so they are effectively versions, except that they bundle a lot of things together each [11:51] indu: is the source you want versioned related between releases (I assume yes)? [11:51] no its not versined between releases, [11:52] the source is independent for all the releases [11:52] okay [11:52] indu: so as far as you're concerned, sethu and tarang have no relationship at all? [11:53] mathrick, yes [11:53] mathrick, they are just under the project of our linux distro, but internally they are not related [11:53] indu: then it makes sense to set up a separate repo for each of them [11:54] indu: what is the structure of your team? Do you have any external contributors? How many internal ones do you have? [11:55] internal are 15, and external may extend to 100 [11:56] or more than that [11:57] okay, so you might want to set up a PQM for the internal ones, and pull from independent repos for external ones, if they are less active than internals. Otherwise you could grant access for the active external ones as well [11:57] PQM lets you set up things such as buildbots and automated testsuites easily [12:00] what is PQM ? first time i am hearing this terminalogy [12:00] mathrick, mathrick, one more thing, i also need a good gui for the users to easily view the structure so that they can download the source, if i use loggerhead, then each repo appears extended by default and thus my page in browser looks very big with sethu (80 branches under it) lll'ly tarang and anant [12:01] indu: https://launchpad.net/pqm http://bazaar-vcs.org/Workflows [12:03] indu: a lot is explained in http://doc.bazaar-vcs.org/bzr.dev/en/user-guide/index.html and http://bazaar-vcs.org/BzrPlugins [12:03] including GUIs [12:04] unrelated, could someone review this patch: http://pastebin.com/m22468f01 [12:04] is this the right thing to remove diff_cmd_helper? [12:05] mathrick, ok i will have a look at those docs, [12:05] it irks me somewhat I had to recreate spec_tree() from it [12:05] mathrick, one more small doubt [12:05] mathrick, i am unable to configure bazaar with apache [12:05] do u have idea on it? [12:06] indu: I don't know what you mean by configuring bazaar with apache, so no [12:06] and I have no idea about anything that involves the two together, so I'm unlikely to help [12:09] mathrick, ok. thanks for the help provided [12:09] no problem [12:13] any comments on the patch? [12:33] mathrick: What's that a patch too? Also, use bundles (bzr send -o foo.patch) when submitting patches so your commits won't be lost. [12:34] Peng: it's for diffstat plugin [12:34] mathrick: Oh. [12:34] and I know about bundles, I just wanted someone to look at the code [12:34] Ok. [12:35] I don't know anything, so I have no comment on the code. [12:35] ok [12:35] ah, right, I've fixed a buglet since I pasted it [12:41] mathrick, i want to use http protocol, for publishing the content [12:42] mathrick, that can be done by configuring apache web server for bazaar, is it right? or any other way is available [12:42] indu: then you just publish the directories, bzr repos are simple directories on disk [12:42] there's no configuring of apache for bazaar [12:43] indu: unless you mean a sophisticated repo viewer, a'la loggerhead [12:52] mathrick, yes, my problem is solved now, many thanx [13:07] could some one tell me, what this message mean http://rafb.net/p/yfdEH296.html [13:08] indu: You can't push over http. [13:09] I soren branch on http worked [13:09] Yes? [13:09] That's a read only operation. [13:09] push means that you want to send you changes somewhere. You can't do that over http. [13:10] soren, ok fine [13:13] soren, then i changed my command to bzr push /usr/local/boss-bazaar/Anant [13:13] and the o/p was created one branch, but where does it create? since its not available under /usr/local [13:14] under /usr/local/boss-bazaar/Anant [13:14] o/p ? === Keltia__ is now known as Keltia [13:15] o/p = output [13:17] "the output was created one branch"? I don't understand, I'm afraid. [13:18] in svn, to create a new project repo, we using svn import command to add files to the repository [13:18] but its not possible in bzzr [13:21] Ok, now I'm seriously confused. [13:21] What is your question? [13:22] If you want to start to use bzr, you issue "bzr init", add your files, bzr add them, and bzr commit them. [13:22] (Even better, you convert from your svn repo so you don't lose your history...) [13:45] Indu: When you bzr push, bzr get, etc., yes, you get one "branch" (the term "branch" has slightly different meanings in svn and bzr though, and I'm temporarily blurring the distinction). The "output" will go where you told it to; for example, "bzr push /usr/local/out" would create a directory called /usr/local/out and under it /usr/local/out/.bzr, in which the data for the branch would go. I'm not sure how much I'm helping here, but I [13:46] pack-0.92 is the latest-and-fastest format? [13:47] Latest non-experimental format yes. I'll let someone else tackle the "fastest" part. There's a newer format, but I understand it's still experimental. [13:50] mathrick: Yes. It's a lot slower for operations that read the entire history (like log) though (which is being worked on). Also, older formats cache all of the information "bzr annotate" uses, but packs don't, so that's slower too. (There's going to be an annotation cache in the future.) [13:51] okay, I was playing with a simple benchmark, and it seems that bzr rm on new files is pathologically slow [13:51] I'm doing it on ~30K newly added files [13:52] mathrick: (On the flipside, operations that only read part of the history are much faster. So is dumb server network access. It also makes read-write dumb servers easier because files are not modified, only added and deleted.) [13:52] mathrick: Nice. [13:52] and it has runtime at least 3m [13:53] Crapcrapcrap. [13:53] * Peng notes that running 'touch' 30,000 times isn't very fast either. [13:53] Crapcrapcrap. Ran it in the wrong directory. [13:54] * Peng kills it after 17,000 files. [13:54] Peng: dunno, git can add all of them in 2s :) [13:55] % seq -f %g.txt 30000 | =time -p xargs touch [13:55] real 2.08 [13:55] Peng: ^ [13:55] Peng: the trick is not starting a new touch process per file ;) [13:56] what's =? [13:56] is that csh or some other abomination? [13:56] zsh [13:56] =time -> /usr/bin/time; I use in order not to use the shell builtin time, which I don't like [13:57] oh [13:58] someone should tell /usr/bin/time about spaces [13:58] dato: I know. [13:58] mathrick: I like it with -p better [13:58] bzr rm still running... [13:58] * Peng blows up his file manager moving all of the files with python. [13:59] dato: ah, that's basically what bash's builtin time does :) [13:59] ah, oh :) [13:59] I've been meaning to check out zsh instead of bash. [14:01] Sigh. [14:01] guess what, it's still running [14:01] I think I really did freeze my file manager. [14:01] command-not-found --> bash wins [14:02] God, I hope it has runtime <= 30 mins [14:02] Oh nice. [14:02] I might add it pegs the CPU while it's running, too [14:02] ps says it's using 0.1% of the CPU. top says it's using 99.9%. [14:02] so there's definitely something wrong going on [14:03] mathrick: Don't kill it! It's running Folding@home! [14:03] Peng: more like Removing@tmp [14:04] That still helps solve cancer, right? [14:04] I don't think it does [14:04] Hopefully Konqueror will be faster than bzr. [14:04] heh [14:04] Craap. [14:05] Peng: y'know, if it does something exponential, it probably won't finish within my lifetime [14:05] even just O(n^2) is pretty bad on n = 30K [14:07] Yay, Konqueror is done! [14:11] okay, 20 mins, I'll kill it now [14:17] okay, I've tracked the problem [14:18] it's collecting the info about files [14:18] since all are new and can't be safely removed, "bzr rm" will error out [14:18] and some kind of info it's gathering there is taking forever [14:18] if I add --keep, it's fast [14:18] no --keep == exponential === cprov is now known as cprov-lunch [14:58] is it possible to create my own location aliases similar to the lp: prefix for branches? so that instead of always getting a new branch by typing 'bzr branch bzr+ssh://foo.host.com/code/branchname' I could just type 'bzr branch me:branchname ? [15:02] Statik: The Bookmarks plugin might be what you want: bzr branch bm:branchname should become possible with that. [15:03] dlee: cool, thanks! [15:22] Is this the right place to talk about bzr-gtk? [15:25] I use the per-file commit comments, so there can be a lot of data. I wish that there were a "cancel, but retain comments" option in "bzr gcommit". Also, if I just "bzr uncommit", it would be nice if the previous comments were default in the UI for the next commit. === cfbolz_ is now known as cfbolz [15:28] CardinalFang: yeah, this is the place [15:29] I'm not quite sure I follow -- you want to cancel the commit, but still retain the per-file commit messages for the next commit? [15:29] I guess it's possible, although we'd need to store the messages somewhere. [15:30] schierbeck, Yes, that's what I meant. And when we uncommit, store those messages in the same place also. [15:31] When you uncommit, the revision is not removed from the repository. You could store the revision ID somewhere and use it to get the message. [15:31] Ah, good to know. [15:32] Peng: yeah, we could do that... but to be honest, this stuff should go into bzr itself, or maybe a plugin [15:32] It's a somewhat different work model [15:33] Writing per-file messages on the fly, and then committing after a while [15:34] But yeah, a temporary solution would be to store the revision id, and clean it up after a completed commit [15:34] I'll have a look at it now [15:35] schierbeck, I think we should capture the global commit message also. All the state of gcommit saved and reloaded. [15:36] CardinalFang: yeah, but I think the easiest way to get started is to restore the commit messages after an uncommit [15:36] later on I'll figure out how best to do it with cancelled commits -- perhaps write them to the repository anyway, and save the revid [15:43] Holy crap [15:44] I've never looked inside commit.py before [15:44] We actually implement just about everything ourselves [15:44] That stuff really needs to be moved to bzrlib [15:46] CardinalFang: this'll need more work than I anticipated... could I get you to file a bug report? That way it'll be easier to keep track of the issues [15:46] schierbeck, Sure. [15:46] Thanks [15:47] No, thank you. [15:47] :) [15:56] New bug: #180107 in bzr "`bzr ls` should gain --modified and --added?" [Undecided,New] https://launchpad.net/bugs/180107 [16:02] my bash completion for bzr broke :( [16:05] New bug: #180109 in bzr "gcommit should load default comments (from "bzr uncommit" and UI button "cancel but retain")" [Undecided,New] https://launchpad.net/bugs/180109 [16:05] schierbeck, ^ [16:06] CardinalFang: got it! :) [16:12] dlee: I've got a patch for the bookmark plugin to list the stored bookmarks. Should I send it to you, or luks? [16:14] statik: hm, different to what `bzr bookmarks` does? :) [16:14] dato: now, how did I miss that :( [16:15] hmm, this might be polished still [16:15] I think the bookmark name should be listed first [16:15] it is, at least here? [16:16] I get the path, then the short name [16:16] it looks like the code is intending it to print the other way [16:17] so, I still have a patch, it's just shorter :) [16:17] * statik should learn to read more carefully [16:18] That bookmarks plugin is cool. [16:18] statik: maybe you should double check with an unmodified plugin, I still see the plugin name first? [16:18] That was something I liked from hg. [16:18] (but I only have 1 bookmark, so it may be that) [16:19] dato: this isn't about the plugin name. its about what is output when I run bzr bookmarks [16:19] this fixes it [16:19] - for name, url in sorted(bookmarks): [16:19] + for url, name in sorted(bookmarks): [16:19] statik: [16:19] % bzr bookmarks [16:19] forja svn+https://forja.rediris.es/svn/csl2-minirok/trunk [16:20] (err, s/plugin name/name/ in my line above, sorry) [16:21] dato: I see. it prints the opposite way in revno 3 from http://bazaar.launchpad.net/~luks/%2Bjunk/bzr-bookmarks/ [16:21] dato: what revno do you have? [16:21] I had 2, and pulled to 3 [16:22] dato: then the only explanation is that I stored the data wrong when I first added a bookmark. [16:23] and this whole thing has been me being confused [16:23] makes sense [16:23] from ~/.bazaar/bazaar.conf: [16:23] [BOOKMARKS] [16:23] forja = svn+https://forja.rediris.es/svn/csl2-minirok/trunk [16:23] yep, I have my bookmarks inside out [16:26] New bug: #180116 in bzr "bzr rm pathologically slow with new files and no --keep" [Undecided,New] https://launchpad.net/bugs/180116 [16:38] jelmer: ping [16:38] dato: pong [16:38] jelmer: trouble in bzr-svn paradise ;) [16:39] I have minirok.dev, which I push to svn+https://....../trunk [16:39] funny, I just discovered bookmarks plugin today [16:39] and I did svn mkdir https://..../branches; svn cp https://..../trunk https://...../branches/foo [16:39] and b get minirok.dev minirok.foo [16:40] but pushing from minirok.foo to svn+https://..../branches/foo won't work, is that expected? [16:40] dato: What error do you get? [16:40] bzr: ERROR: These branches have diverged. Try using "merge" and then "push". [16:40] what does "bzr missing" say? [16:41] AssertionError: Empty parent added, but child wasn't added !? [16:41] oo-oo [16:42] uhm, ok [16:42] that's definitely a bug [16:42] what version bzr-svn is this? [16:42] % cd .bazaar/plugins/svn && b revno [16:42] 826 [16:43] shall I pull? [16:43] Hmm, I don't think anything has changed since that could've fixed it. [16:44] Any chance you can file a bug? Links to minirok.dev, minirok.foo and the svn repository would be very useful [16:45] ok. in the meantime, I guess it's ok if I continue to commit in minirok.foo? [16:45] yep [16:57] I doubt we have this yet, but ... Do we have anything for handling line ending conversions? I just cvs-imported a 760+ revision CVS project that had been managed under Windows, but bzr co's now check out with LF, not CR+LF. I did the co under Window+Cygwin, then another one under just Windows using the stand-alone Windows binary bzr. [16:58] * dlee wishes everything including Windows could just use LF and be done with it :P [17:01] I still don't understand why workingtree 3 uses so much bandwidth [17:01] It's dangerous to alter the data. Is that file with ordinals 13 and then 10 a text file or a PNG image? Oops, wrong choice. [17:04] CardinalFang: Yeah I know...otherwise I'd just ask for a co option to deal with it. Svn used properties because of that problem, and CVS used something like a checkin-time "property." I think line endings are on the ToDo list but not addressed yet; I'm mostly just verifying, while I try to figure out how to keep selling the Bazaar concept to my entirely Windows-based company that has been using CVS for about five years... [17:04] dlee, Ah. We're in the same boat then. [17:05] dlee: CVS had a horribly broken solution for that, though [17:06] like for most things [17:06] hehehe [17:07] given that more people seem to be awake now, anyone care to take a look at this patch: http://pastebin.com/m682e5b7e ? [17:07] is this the correct way to remove diff_cmd_helper() use? [17:08] I don't like the fact that I had to steal the whole spec_tree() from inside diff_cmd_helper() [17:08] It worked well enough for us, *if* people remembered the required -kb on cvs adds of non-text files. But that's a big *if* there. I liked the svn property idea better, but I used "native," which operated about like CVS anyway. (I did that to avoid having to put ^M at the end of every line when actually editing in an LF environment.) [17:15] jelmer: bug #180128 [17:15] Launchpad bug 180128 in bzr-svn "Cannot push to a branch `svn cp'ied`" [Undecided,New] https://launchpad.net/bugs/180128 [17:15] thanks! [17:16] I'm accustomed to creating a new branch that I expect to pull into several branches that never themselves merge. How does one create a branch that is the greatest common ancestor of two branches? [17:17] * mathrick doesn't really understand what CardinalFang said [17:17] (Well, "never" is wrong. One is a ostensibly a superset, but it may not have changes that have been added into the subset.) [17:17] (Yet.) [17:20] CardinalFang: Verify this with more seasoned bzr users here, but I'd say bzr init-repo /path/proj, then cd /path/proj and bzr co projBranchThatWillAncestorNewOnes. To make a descendant, from /path/proj, bzr co ancestorBranchJustMade newBranchName. [17:20] mathrick, Suppose I have a v1.0 branch and a v2.0 branch. I can't pull v1.0 to v2.0 because there are some things that others have added but are not yet added. I know I can add to v1.0 and cherry-pick "merge -c" just one new revision, but is there a way to create a branch that has only changesets that are in v1.0 and in v2.0, so I can add a changeset to it and pull into both with no trouble? [17:21] ^not yet added^not yet merged to v2.0 [17:22] CardinalFang: aha, first guess would be that bzr branch v1.0 common; bzr branch common v2.0 should work for you [17:22] So, if a branch is a set of changesets, I want to create a branch that is the intersection of two other branches. [17:23] if you want a commit applicable for both, push it into common, otherwise, into v1.0 or v2.0 as needed [17:23] Ah...I didn't know you had two already-existing branches; I thought you were doing this top-down (ancestor exists, then you spin off 1.0 and 2.0 from there). [17:23] ah [17:23] CardinalFang: what branches do you have *right now*? [17:24] and how are they related? [17:25] mathrick, One was created from another. v1 and v2. Most work is in v1, and people don't always merge to v2 soon enough. So, I can't pull from v1 to v2 without having to merge a bunch of stuff that I don't know anything about. [17:25] So, i can't add to v1 and pull. Got it? [17:25] aha, yes [17:26] If I can create a branch that can always be pulled into v1 and v2, then I can fix my bug there and pull into both at once. [17:26] Then, I don't have to care that other people were sloppy about getting their v1 changesets merged into v2. [17:27] is v1.0 a strict superset of v2.0? [17:27] No. It's a subet, in a perfect world, but in reality, there's a delay between when someone adds to v1 and when they pull to v2. [17:28] aha [17:28] I don't know if there's a tool to do what you want to do automatically [17:28] I'm beginning to think that the answer is cherry-picking. [17:29] Add rev12345 to v1 and then in v2, "bzr merge -c rev12345 ../v1" [17:29] if one branch is reasonably close to the shared subset, you could branch the common off it, and then hack at it with rebase and selective uncommits until it looks like you want it to... I think [17:30] CardinalFang: you have to be aware that cherry picks in bzr are *not* tracked right now [17:30] Eeek! [17:30] You seem to want a justV1 place to commit, and a justV2 place, and a V1&V2 place. I don't think you'd need an ancestor branch; v1 and v2 are already related. This is a long shot into stuff I don't know so well, but would Rebase be of any use here? [17:30] indeed [17:31] dlee: I think rebase would be a tool towards building such a V1&V2 thing, but you need something to back out changes that should not be there [17:31] I'm not sure how exactly you'd go about that, uncommit can't pull from the middle, and revert works on the text level, not revisions level [17:32] mathrick, How about "merge -r big..small" to remove changesets? Is that safe? [17:33] CardinalFang: what are big and small exactly? [17:33] I remember there was a CVS add-on (forget the name) for automating the commits to multiple branches for this type of problem. [17:33] ahh [17:34] CardinalFang: dunno, but now I think of it, bzr rebase --onto might do that whilst still preserving the history and identity of revisions [17:34] unsure, the whole --onto thing is a bit magical [17:34] Hrm. Time for some testing. [17:35] but it will be manual, unfortunately [17:35] CardinalFang: if you have enough crap to deal with, you might consider writing a plugin I guess [17:35] It occurs to me that this could probably also be handled by having multiple "parents" of one branch--i.e., commit in such a branch must clear more than one source branch before committing locally; but that also sounds like a mess to set up :) [17:36] dlee: there was something called "multiparent" there in bzr.dev at one point, but it was completely undocumented and I have no idea what it really did [17:36] hehe [17:37] Dang. The tool I'm accustomed to has a command that gives the greatest common ancestor between the current and a specified location on stdout. Then one can "clone -r`find-the-greatest-common-ancestor ../v1`" . Very useful, that. [17:38] ahh, for that there's definitely support in bzrlib [17:38] dunno about the UI [17:41] Mathrick: ...but I bet the bzrlib support only works on tracked stuff; cherrypicking would break that, no? I think you'd have to do text compares otherwise, to figure out what v1 changesets equal what v2 changesets. [17:42] dlee: no, changesets have identity [17:42] I'm not using cherry picking. I thought it was a solution to that problem, but now I don't. [17:43] Nice! I'm still figuring out the cherrypicking history issues; I guess they're not quite as bad as I thought. [17:43] CardinalFang: I dunno how easy it is to produce a tree that's the intersection of A and B from bzrlib. But given it's the base of all merges, it should be doable [17:43] dlee: ah, no, cherrypicking does break stuff [17:43] but CardinalFang wasn't cherrypicking between V1 and V2 [17:43] * CardinalFang nods. [17:45] uh-huh, bzr rebase is quite dangerous [17:45] it just went to happily destroy my test tree [17:48] jelmer: poke? [17:48] New issue: I asked yesterday how to append one bzr repo to another. Motivation: trying to combine a CVS history for proj1 with an SVN history for later workk on the same proj1. Also, I want to rebuild a (so far unused) Bazaar repo that I initially built with Tailor but want to build with cvsps-import (to get tags), but there are subsequent bzr-only commits in it, so I'd have to cvs-import and then copy a stack of bzr commits on top of [17:49] dlee: there was a graft plugin, but it's very much outdated [17:49] I dunno if there's any successor to it [17:49] I dunno if you can even get the source anymore [17:50] dlee: http://spacepants.org/src/bzrgraft/ [17:51] thanks [17:56] I wonder if I can make bzr shell make execute scripts [17:58] wtf [17:58] http://bazaar.launchpad.net/~bzr/bzr-dbus/trunk gives 404 [18:05] mathrick, pong [18:06] mathrick, even "bzr rebase-abort" doesn't restore it? [18:06] jelmer: lemme see [18:07] jelmer: it does some very scary things in any case [18:07] mathrick: why? [18:07] jelmer: and no, rebase-abort doesn't help [18:07] sec, I'll give you a test case [18:08] mathrick, what version of rebase are you using? [18:13] lemme see [18:15] jelmer: unsure, it's a lightweight checkout, I dunno how to check the latest revision in my working tree in this case [18:15] revno still works in lightweights [18:17] dlee: but it reports the latest *upstream* revision [18:17] at least it used to [18:17] maybe that got fixed since 0.90 when I last tried [18:17] Oh hehehe, I've never lightweighted a branch someone else was committing to, so I'd never know [18:18] I use it for plugins, since I have no real interest in having my own branch, really, I just need an up-to-date copy [18:18] I do wish I had a way to get the revno of my local branch after a revert though... [18:19] dlee: you can't, since revert works on text [18:19] I ran into the same thing myself [18:20] Darn! [18:23] I wonder if any VCS' support a sort of grep that returns all revisions / revision ranges containing matches to a regexp. Sounds really hard to do fast though, but I've often wanted that and never seen it offered. [18:24] I imagine it like grep, where instead of "filename:" at the beginning of each line, you'd have "revrange:" [18:24] actually revset, where a set could be one or more ranges, and a range could be a singleton [18:24] bah, whole launchpad is broken [18:24] you can't download things [18:24] dlee: yes, there's a grep plugin for bzr I think [18:25] Uh oh, what'd I miss? * runs off to plugin page [18:25] except that you won't get it, since launchpad is broken :( [18:25] mathrick: Any chance you can report a bug about the rebase issue you just ran into with a testcase ? [18:26] * jelmer has been using rebase happily on a daily basis and knows of several other people who have [18:26] jelmer: yes, I'm just trying to determine what rev I have [18:27] I also ran into bzr reconfigure butchering my lightweight checkout today, I need to investigate that [18:32] jelmer: aha, so apparently I had r69, which is the latest [18:32] now for a testcase [18:41] jelmer: http://pastebin.com/f77fd13fb [18:41] want me to write a bug report, or do you want to do it yourself? [18:44] please file it [18:44] okay [18:48] done [18:48] jelmer: is what I'm trying to do (ie. pretend that r3 happened immediately after r1, and there was no r2) sensible and supposed to work? [18:50] the way I read it you're just trying to remove r3 [18:50] jelmer: oh, then I'm misunderstanding something [18:50] rebasing revision 2 on top of 1 [18:51] jelmer: right, that's because -r -2 always confuses me by its changing semantics [18:52] I don't think there are any changing semantics there.. [18:52] the last revision (3) is -1 [18:52] the previous-to-last (2) is -2 [18:52] jelmer: well, yeah, but different commands interpret it slightly differently [18:53] mathrick: Can you give an example? afaik we're consistent everywhere there [18:54] jelmer: yes, in a repo with 3 revs, bzr diff -c -3 shows changes for revision [18:54] *revision 1 [18:55] however, diffstat -r -2 and -r -3 shows stats starting from the same revision [18:55] which is revision 1 [18:55] That makes perfect sense [18:55] howso? [18:56] well, not sure about diffstats behaviour [18:56] but that's not a core bzr command [18:57] but in a repository with 3 revisions -3 means revision 1 [18:57] yes [18:57] but -2 should mean r2 [18:57] it does, for bzr diff [18:58] I wonder where the inconsistency comes from in diffstat [18:59] I think the fact that diffstat supports "-r2" is a bug in itself [18:59] jelmer: anyway, why would rebasing r2 onto r1 kill r3? [18:59] jelmer: oh? [18:59] it should do the same thing as diff [18:59] mathrick: It should accept -c2 or -r1..2 [18:59] mathrick: sorry [19:00] I forgot -r2 has meaning as well [19:00] diffstat -r2 should report the changes between -r2 and the current working tree [19:00] yes [19:00] it does, except that it interprets -2 in an odd way [19:01] that's a bug in a single plugin, you can hardly blame the rest of bzr for that.. [19:01] it pretty much ignores the last rev [19:03] jelmer: well, I know, it's consistent, just somewhat shifting conceptually depending on where you stand, not unlike the way how 1 is "different" in "asd"[:1] and "asd[1:] [19:03] jelmer: in any case, why would rebasing r2 affect r3? [19:04] jelmer: and I tried bzr rebase -r 3 --onto=1 . [19:04] and it's a no-op [19:05] I'd expected it to put r3 immediately after r1 in the history [19:05] mathrick: because you're only rebasing a single revision [19:05] I guess you may mean "-r2.." or something [19:05] oh? [19:06] jelmer: so, "rebase -r X --onto=Y" means "throw away everything that follows Y in history, and make it say X instead"? [19:07] and if I say -r2 for X, it replaces the whole history with that single revision? [19:08] jelmer: and why does it say "No revisions to rebase." when I do that> [19:08] ? [19:08] that's the bug [19:08] it shouldn't abort early and print that error [19:08] jelmer: ah, besides, that error message is missing a \n [19:08] other than that, it looks fine [19:10] jelmer: but then bzr rebase -r 3 --onto=1 . is buggy [19:12] no, that makes sense [19:12] then I'm not getting it [19:14] -r3 means it will rebase the revisions up to r3 [19:14] *up to and including [19:14] -r1..3 means it will rebase revisions in that specific range [19:15] urk [19:15] ? [19:15] also, using rebase on "." usually doesn't make any sense [19:15] jelmer: see, that's why I said changing semantics :). Sometimes it means "up to and including X", sometimes it means "starting from X", and sometimes it means "exactly X" [19:16] jelmer: I want to effectively remove r2 from the branch's history [19:17] mathrick, I don't think that's confusing. It's the same way how merge works [19:18] Perhaps you want something like "bzr rebase -r2..3 --onto 1 ." ? [19:18] it may be necessary to run "bzr up" after that because of the bug you just reported [19:20] jelmer: it doesn't appear to do anything [19:20] and -r3..3? [19:20] jelmer: it commits r2 and r3, but they end up in the same place they started in, so it's not a real change [19:21] jelmer: that works, and results in a text conflict [19:21] that's right [19:21] since the delta for r3 won't apply cleanly on r1 [19:21] yeah, I guessed that, since r3 modifies r2, which ceases to exist, it will give errors [19:22] jelmer: will the revision identity be preserved afterwards? [19:22] mathrick, the revision identity for r3 you mean? [19:22] yes [19:22] No the revid for that will change [19:22] since it's parent revids have changed [19:22] not changing that would be a severe bug [19:23] jelmer: hmm, so it's not really suitable for tree surgery which would remove individual revs preserving the rest? [19:24] mathrick: that's not really the use case for rebase.. you may want to have a look at 'bzr replay' (part of the rebase plugin) [19:25] that basically just does diff+patch+commit with original metadata [19:27] jelmer: aha, and the revisions will be seen as identical for purposes of calculating merges? [19:27] no [19:27] there's no way to do that [19:28] rebase and replay will store metadata indicating what revisions they were originally based on [19:29] however, they are not identical copies of those revisions and shouldn't be treated as such by merge. merge may be able to use that metadata in some way, but doesn't at the moment. [19:30] jelmer: hmm, so there's no way of doing what CardinalFang wanted (ie. create a tree that only has changes common to A and B)? [19:30] jelmer: "merge using that metadata in some way" would be tracking cherrypicks, right? [19:30] basically, yes [19:34] jelmer: so, if A and B share all revisions up to some revision R1, and afterwards there are revs that are sometimes in both, but sometimes only in one of them, the best you can do is split out the common tree up to R1, and there's no way to have a tree that would have the later commits that are present in both? [19:35] though that seems wrong to me, my understanding would be that constructing such a tree is necessary for properly carrying out merges [19:40] mathrick: how do you define "commits present in both"? [19:40] commits with the same diff that have been applied to both trees? [19:41] jelmer: sec, I'm drawing up a graph for that, and then we can ask CardinalFang if that's what he actually meant [19:41] You could make those commits in a separate tree C and merge that into A and B [19:41] where C could start out with R1 [19:42] moin [19:42] 'morning lifeless [19:43] jelmer, The use case: You have two sister trees, neither of which is a subset of the other. You find a bug common to both and you want to fix it as easily as possible, without otherwise altering the sister trees. [19:44] CardinalFang: that is the basic use case for cherry picks [19:45] jelmer: but cherrypicks break merges [19:45] Agreed, cherry picking would solve it. But that introduces other problems, yes? [19:45] Well, or for daggy'ing it. [19:45] mathrick: How do they break merges? [19:45] jelmer: cherrypicks are not tracked, so they will introduce textual conflicts, no? [19:45] merge treats cherrypick commits as ordinary commits at the moment [19:47] mathrick: Merge will recognize the fact some revisions are cherrypicks, but from what I understand, CardinalFang is not merging between those trees anyway [19:47] but I think he wants to at some point [19:47] The SCM I use now, which is made by a notoriously litigious organization who shall not be named, provides a "repogca" command, which returns the "greatest common ancestor" of two trees, which one uses to branch off a tree that can be pulled into either. [19:48] jelmer: will it recognise the fact they are present in the tree already? [19:48] mathrick: No, that's what tracking cherrypick information is about. [19:48] right, so merge does not really recognise cherrypicks [19:48] CardinalFang: that would be possible with bazaar as well [19:48] Yes, the two trees are constantly merged. But with more than a hundred people committing /all the time/, we can't sit on our hands if one person falls behind. [19:49] CardinalFang: okay, so what kind of change can make V1 unmergeable into V2? [19:50] Lack of knowledge. If there's a conflict in some dark corner of the code that only Joe and his acolytes know about, then I don't feel comfortable making decisions about what stays and what gets pruned away. [19:51] CardinalFang: aha, and your current VCS can cope with that? Ie. track cherrypicks? [19:51] No. Not at all. [19:52] But it can give me a tree that has only common changesets in it. [19:53] CardinalFang: uhh, but that's not very useful unless you can arrange for pulls that aren't contiguous wrt. to the source history (ie. cherrypicking) [19:53] CardinalFang: let's sum up [19:54] What he means is that there's a convenient command to set up a daggy fix. [19:54] * CardinalFang googles "daggy" [19:55] CardinalFang: google mercurial together with it [19:55] There isn't one in bzr currently; you'd have to manually poke around 'missing' or something to find the GCA. [19:55] monotone, actually. Nice page on their wiki. [19:55] ahh [19:55] CardinalFang: V1 is at R1, V2 is at R1'. At this point, V1 is cleanly mergeable into V2, right? [19:57] CardinalFang: now there are two commits into V1, R2 and R3, and a commit R2' into V2. R2 conflicts with V2, but R3 doesn't. You want to pull R3 only, and leave R2 to be solved later, right? [19:57] lifeless: any chance you can sponsor an upload of bzr-pqm to Debian? [19:57] by "conflicts with V2" I mean "can't be merged into V2 without conflicts" [19:58] mathrick, I'd rather not merge anything at all. I have an urgent bug to fix that is present in all trees. [19:58] If I don't fix it in 20 minutes, the Sun explodes. [19:59] Wait, let me get my camera. [19:59] fullermd, You have at least another 8 minutes, from this distance. [20:00] CardinalFang: okay, and how do you do that with your current tool (and what is that tool, if I may ask)? [20:01] So what you want to do, is create a new branch from the LCA, and do the fix there, so it'll merge just fine into both sides. [20:01] mathrick, With my current tool, I think it creates a tree that is only R1. I can create a new changeset R4 and pull that into V1 and V2 [20:02] CardinalFang: aha [20:02] fullermd, Yes. (Though I think it's "greatest" instead of "least", in the domain I'm thinking about.) [20:02] I think it's usually expanded "latest" aroudn here. [20:02] Ah. [20:03] There's no command to give you it directly. The quickest way is probably 'missing', then pick the rev before the earliest in both lists. [20:04] fullermd, Hmm. Perhaps I could write a plugin to do that. [20:04] Probably. I don't think it would be terribly difficult. [20:05] [3-way] merge already does it after all; you could just steal the code from there. [20:05] May even be a function that does it you could just call and display. [20:11] CardinalFang: if you had a parent, and at R0 V1, V2 and C were branched off it, then A had R1, C1 (merged from C), R2, and V2 had R1', C1, R2', would repogca create a tree that ends with R0, or would it have R0, C1? [20:11] mathrick, Good question. I'll try it. [20:14] fullermd, FWIW, graph.py says "least." :) [20:14] Sorry, "lowest". [20:21] We should declare once and for all that it stands for "lambada". [20:21] It may not mean anything useful, but it should lead to some really fun questions. [20:21] *lambda [20:21] :> [20:21] No, I meant lambada :p [20:21] llama [20:21] lambda is too close to actually meaningful. [20:25] CardinalFang: anyway, if you write a plugin, it should be doable to get a tree that ends with R0, C1, since that's the tree merge has to construct when you say cd B; bzr merge A [20:30] jelmer: good chance; this arvo probably [20:33] Hi, is the benchmark script available somewhere? [20:33] lifeless: can I trick you into looking at my short patch that removes diff_cmd_helper() use? [20:34] I need someone with a clue if that's the way it's supposed to be done [20:35] not now; coding. I'll come up for air when Lynne gets up probably. [20:35] so in a couple of hours [20:36] lifeless: okay then, I guess I'll just submit it upstream and wait for review there, I'll be sleeping in a couple of hours [20:38] mathrick@hatsumi:/tmp/rebase$ bzr reconfigure --branch [20:38] bzr: ERROR: Repository KnitRepository('file:///tmp/rebase/.bzr/repository/') is not compatible with repository KnitRepository('http://people.samba.org/bzr/jelmer/bzr-rebase/.bzr/repository/') [20:38] huh? [20:39] rebase is using dirstate-with-subtree [20:39] looks that's confusing reconfigure [20:39] it's a lightweight checkout which I converted from knitpack to knit (since it was erroring out about KnitPackRepository being incompatible) [20:39] jelmer: oh [20:41] the fact that reconfigure does not do a checkout is horribly confusing [20:41] it looks as if it just ate your tree [21:05] mathrick: I filed a bug last week on this; you might compare and see if its the same [21:06] New bug: #180196 in bzr "bzr reconfigure gets confused by dirstate-with-subtree" [Undecided,New] https://launchpad.net/bugs/180196 [21:10] lifeless: I can't find it, care to give a bug#? [21:54] why is it that when I go "bzr up" on a local (well, ssh'd to server) branch, I get the following error message? [21:54] Using saved location: http://bazaar.launchpad.net/~...../ [21:55] Does bzr store all it's information is a million .bzr folders like svn? [21:55] bzr: ERROR: Cannot lock LockDir(http://bazaar.launchpad.net/~...../.bzr/repository/lock): Transport operation not possible: http does not support mkdir() [21:55] GoClick: ? [21:55] GoClick: No. [21:55] GoClick: you mean an .svn dir in ever subdir? [21:55] * ryanakca isn't uploading... so it shouldn't matter if http can or can't make a directory... [21:55] no [21:56] mathrick: yeah [21:56] GoClick: There is a single .bzr directory for your branch. [21:57] good [21:58] * mathrick wonders if there's anything about SVN that's strictly better than bzr [21:58] mathrick: It's faster for a lot of things. :p [21:58] Partial checkouts. [21:58] mathrick: eol-conversion support, better performance for large binaries, cherrypick tracking, ... [21:58] Odd_Bloke: by not doing things, that's like being really fast at writing to /dev/null [21:59] jelmer: it tracks cherrypicks how? Last time I checked, SVN had no merge support [21:59] We put a lot of binaries in our version control as is, will that be a problem? [21:59] That means cherrypicks can't screw up merges ;) [22:00] mathrick: but if you want to write to /dev/null, it sure would be nice if it went fast, instead of slow. [22:00] mathrick: 1.5 has [22:00] mathrick: svn has always had merge support, just hasn't had merge /tracking/ support until 1.5 [22:00] foom: sure, but it's not a reason to say "my foo is better than yours, since it's really fast at writing to /dev/null, whereas yours takes a lot of time to write to screen" [22:01] jelmer: aha, so you can finally merge branches in a sane way and it doesn't kick you in the nuts harder for doing it often? [22:01] yup [22:02] that's 1.5 only though, which was supposed to be released 2 years ago or something.. [22:02] actually i think only 2 months ago or something [22:03] but when i last skimmed the mailing list it didn't look too promising [22:03] i'd sure like to be able to switch to bzr sometime soon. :) [22:03] foom: not being punished for merging would be pretty promising in my book:) [22:03] foom: They've always been pushing the deadline further forward [22:03] mathrick: i mean, the chance of a release coming soon wasn't looking good [22:04] foom: When I originally started on bzr-svn 1.5 was also "almost done" [22:04] That's more than 2 years ago now [22:04] foom: do like I do, use bzr-svn to manage your code, this way instead of putting up with stupid buggy SVN crap you will help bzr-svn maintainers discover new ways to improve their quality ;) [22:04] * mathrick runs [22:04] OTOH, you keep finding new bugs in the python bindings, so... :p [22:04] mathrick: that's the plan, but bzr is too slow right now [22:05] jelmer: so it's still not released? [22:05] foom: only in the initial checkout, or do you mean something else too? [22:05] the checkout thing is mucho painful because you can't horizon the history [22:05] mathrick: svn 1.5 ? Nope, and doesn't look like it's going to be released soon either, at least not within the next couple of months. [22:05] mathrick: log is excessively slow at the moment [22:06] jelmer: oh, I see, I thought you were talking about actual shipped SVN now === cprov is now known as cprov-away [22:06] foom: local or remote. Please file a bug if it's remote, tagged hpss [22:06] lifeless: local [22:06] foom: dunno, it's being pretty fast for me, and I have repos with 3K revs with 2K-revs merges along the way [22:06] log -v is downright vicious. [22:06] lifeless: what does hpss mean? [22:06] lifeless: i saw a bug already filed about log getting slow in pack format repos [22:06] mathrick: smart server [22:07] oh right, I didn't try it with pack yet [22:07] lifeless: and hp? [22:07] high perf? [22:07] foom: there is a slow down [22:07] mathrick: yes [22:07] foom: but it should still be plenty fast; are you just doing 'bzr log' or -v or other optoins? [22:08] lifeless: time bzr log -r30000 [waiting] [22:08] real 0m35.296s [22:08] user 0m28.513s [22:08] sys 0m0.234s [22:10] i'm sure if i was using a 3krev repo it'd be fine. [22:10] 14k revs is 5 seconds here [22:10] foom: using packs? [22:11] * mathrick wonders what git would score on that [22:11] lifeless: repository: Packs containing knits with rich root support [22:11] it's awesomely fast to be sure [22:11] -v will slaughter you even with 3k revs. [22:11] yeah, -v is slow as hell [22:11] OTOH, with bzr I'm able to figure how to un-add a file, with git, I'm not... [22:12] 43276 revisions [22:12] 599396 KiB [22:12] With a ~1800 rev tree, 'log' runs in 1.7 seconds. -v has passed the 3 minute mark so far, and broken 120 meg of RAM usage (impressive, since .bzr/ is only ~16 meg) [22:12] Oh, there it finished. 225.5 user seconds, half a second of system time. 3:48 wall. [22:13] foom: how many packs do you have ? [22:13] fullermd: -v will get better before too much longer, but its a disk change [22:13] just count the files in .bzr/repository/packs? [22:13] 24. [22:14] foom: yeah, or cat .bzr/repository/pack-names [22:14] lifeless: And one I look heartily forward to, especially if it lets me 'log' more than one file at a time too. [22:14] it says 22 [22:14] foom: you've had some interrupted uploads then [22:15] do a ls -lS of the packs directory [22:15] is there a good size distribution ? [22:15] also you may find log gets faster if you do 'bzr pack' [22:15] New bug: #180207 in bzr-eclipse "Creating project from bazaar branch" [Undecided,New] https://launchpad.net/bugs/180207 [22:15] New bug: #180208 in bzr "commit failed because of lack of disk space but with unclear message" [Undecided,New] https://launchpad.net/bugs/180208 [22:15] lifeless: yeah, bzr-svn crashed my machine while importing because it ran it out of ram. [22:15] and the kernel OOM killer decided to kill everything *else* [22:15] OOM FTW [22:16] foom: That bug has been fixed since [22:16] foom: http://subversion.tigris.org/issues/show_bug.cgi?id=3052 [22:16] jelmer: yeah, i saw [22:23] hmm, you can't uncommit a single revision in the middle, right? [22:26] mathrick: right [22:26] mathrick: it is my understanding that you uncommit the latest commit [22:27] http://bazaar-vcs.org/BzrVsHg#head-b92d4fdb6541abcf14ea53686e4bccc9f7b6ffa5 seems to suggest that bzr can indeed do that [22:27] or so I read it at least [22:28] lifeless: anyhow, yes, there's a good distribution of sizes, the biggest is 245595344 and smallest is 1875 and there's lots in between. [22:28] lifeless: after bzr pack, it is down to 4.421s [22:28] I think that page is misleading; bzr uncommit is only very vaguely related to hg rollback. [22:29] uncommit removes a rev (or more precisely, changes the head). rollback, AIUI, creates a new rev with opposite changes. It's more like bzr merge -rx..x-1 [22:29] lifeless: still slow, but only 4x slower than svn instead of 30x. [22:30] foom: that would be a bad distribution if they differ in sizes greatly [22:30] I believe [22:35] morning poolie [22:36] mathrick: they are meant to differ geometrically [22:36] ah [22:38] hi lifeless [22:38] foom: ok; feel free to find out whats slow then ;) I don't feel like downloading a 1/2 GB repo to find out :] [23:01] morning [23:02] hi igc [23:02] hi lifeless [23:03] lifeless: is the 7x slowdown to be expected for 22 pack files vs 1, then? [23:06] foom: pack orders the revision xml texts topologically [23:07] foom: so you do ascending IO within the pack, which linux likes a lot. [23:08] lifeless: sure but it's CPU time being spent. [23:12] foom: possibly index layer stuff then, which is on the todo [23:21] hi, I am having a problem creating a local repository, the setup is like: http://wiki.squid-cache.org/Squid3VCS#head-a70c042fb73ac3863a0fd32ff452b59279ff7030 [23:21] at the momment of: bzr branch $TRUNKURL ~/squid-repo/trunk [23:22] I get: bzr: ERROR: Unknown branch format: 'Bazaar pack repository format 1 (needs bzr 0.92)\n' [23:22] Bazaar 0.90 / Ubuntu 7.10 [23:23] ecasbas: you need a newer version of Bazaar [23:23] at least 0.92 or higher [23:23] ok, thanks then I'll download the 1.0 [23:23] thanks jelmer [23:29] thanks very much, the 1.0 worked perfectly! [23:34] perfect example of our clear format strings not being enough lol. [23:40] I suspect many "they change formats too often" complaints are really "the changes are too bumpy" [23:43] that error seemed pretty clear to me, unlike the ones that say KnitRepository isn't compatible with KnitRepository or w/e. :) [23:46] Well, the changes aren't all that bumpy (at least, they're reasonably close to the irreducible limit of bumpiness) [23:51] poolie: I agree with your statement if you change 'too bumpy' to 'we talk about it' :) [23:52] I know I've seen several bumps in mtn, and it just wouldn't do anything 'till I told it to upgrade. [23:52] Going across bzr bumps works OK (well, repo changes are usually **SLOOOOW** to work across, but they work, and you can keep working locally without the upgrade) [23:53] imho bzr upgrade is too slow, that's in fact the reason I haven't upgraded a lot of my branches yet [23:55] A big bump is that inter-repo-format work is so slow that practically, upgrading that means you need to flag day _every_ branch of the project. [23:58] jelmer: to packs ? [23:58] jelmer: its the time to clone, no more. [23:58] it's actually reconcile that was the most problematic