/srv/irclogs.ubuntu.com/2009/09/19/#bzr.txt

meoblast001hi00:12
meoblast001i have 4 files that use 4 space indents and i want them to be 2 space indents.. would that be worth it in terms of VC efficiency?00:12
lifelessmeoblast001: do you mean 'will the vc same much space if you use 2 space indents'?00:42
lifelessmeoblast001: or 'how inefficient is the vc at storing a change from 4 space to 2 space indents00:42
meoblast001i mean, is it worth it to make this consistent on these 4 files and lose the efficiency00:42
meoblast001the sum of the 2 files is about 400 lines00:43
meoblast001or, 4 files00:43
lifelessworth it is up to you :)00:43
lifelessits c=going to cost about 400 bytes00:43
meoblast001400 bytes? try 400 lines00:44
meoblast001right?00:44
lifeless400 bytes, in 2a00:44
meoblast0012a?00:44
lifelessthe 2.0 default format00:44
lifelessif you're not using it yet, thats fine, when you upgrade it will compress it then00:44
meoblast001oh, so it only actually records changes byte for byte?00:44
lifelessyes00:44
meoblast001i use Ubuntu 9.04, which version do i use then?00:44
lifelessbzr --version00:45
ScottK1.1300:45
meoblast001Bazaar (bzr) 1.13.100:45
meoblast001does that mean i have to update now?00:45
meoblast001if i want to get the new optimization00:45
SamB_XPyeah ;-P00:46
meoblast001so if i previously did something like this, it will still remain in it's unoptimized form?00:46
meoblast001although my previous change was a rewrite of most of the source so it wouldn't really change00:48
meoblast001this time it's mainly just removal of those spaces00:48
lifelesswhen you do upgrade your repository, it will gain the benefits00:50
SamB_XPmeoblast001: well, if/when you convert your repository to 2a, which maybe you'll want to do after you upgrade to 2.x, you'll get the goods00:50
lifelessthere is no rush00:50
meoblast001ah, how does that work technically?00:50
meoblast001i sometimes don't believe things that sound too good to be true00:50
lifeless'bzr upgrade' converts your data from one disk format to another00:50
lifelesswe typically see repositories drop to 30% of their older size (once our gc kicks in and removes the rollback stuff we store in obsolete packs)00:51
meoblast001"disk format"?00:52
SamB_XPbzr supports a dizzying array of disk formats for repositories00:52
ScottKlifeless: Is there a significant speed difference between the 1.19 format and 2.0?00:52
lifelessScottK: huge00:52
lifelessScottK: there isn't a 1.19 format though, perhaps you mean 1.9?00:52
ScottKI mean the one immediately previous.00:53
ScottKLet me check00:53
lifelessin repo terms thats 1.900:53
SamB_XPlifeless: you didn't up the default in 1.19 ?00:53
lifeless1.14 as a label was actually a working tree change00:53
ScottK1.14 actually00:53
meoblast001so how does it convert it from a format of detecting changes by lines to a format of changes by bytes?00:53
lifelessSamB_XP: we haven't done a 1.19 release :P00:53
ScottKRight, I mis-remembered.00:54
lifelessmeoblast001: reads ins, writes out :P00:54
lifelessmeoblast001: I'm not really sure what you're asking.00:54
ScottKlifeless: OK, so from 1.14, how huge?00:54
meoblast001well, if revisions 1 - 90 were made with 1.x, how would you convert those to 2.x00:55
lifelessScottK: depends on what you're doing. Small trees and short histories the difference is swamped by startup time00:55
meoblast001they aren't the same format of revision logs00:55
lifelessmeoblast001: 'bzr upgrade'00:55
lifelessScottK: large trees, 'bzr commit' is something like 1/5 the duration; log -v is even more significantly improved.00:55
meoblast001so it magically figures out "oh, this whole line didn't need changed, only these 3 bytes needed to be"00:56
ScottKlifeless: bzr stat on the project I'm thinking of is currently taking 8 seconds with bzr.00:56
lifelessmeoblast001: nothing magic about it, it converts the data00:56
lifelessScottK: bzr st is entirely working tree; so its not going to change. However 8 seconds is about 8 times longer than stat on openoffice for me.00:57
ScottKNot sure if that qualifies as large, medium, or small.00:57
ScottKHmmm.00:57
ScottKInteresting.00:57
lifelessScottK: so there's a good chance something is wrong like:00:57
ScottKThanks.00:57
lifeless - missing C extensions00:57
ScottKOK.00:57
lifeless - uncompiled/stale .pyc files causing just-in-time compilation00:57
ScottKCould the fact that it was imported from Git matter?00:57
meoblast001lifeless: but it still does exactly what i said in that quote, except in Python code?00:57
lifelessmeoblast001: not really, it doesn't look at the old /changes/ at all.00:58
ScottKlifeless: We're operating from Ubuntu packages, so is there more was can do to make it faster?00:58
lifelessmeoblast001: bzr doesn't model things by deltas, rather by the full content.00:58
meoblast001uh oh00:58
meoblast001bzr: WARNING: bzrlib version doesn't match the bzr program.00:58
ScottKOur resident git fanatic is still all over speed.00:58
meoblast001lifeless: what do you mean by deltas?00:58
lifelessScottK: the packages should have the C extensions; I have seen python-* helpers blow up.00:58
lifelessmeoblast001: don't worry about it, we're clearly not connecting :)00:59
ScottKOK.  Is there any docs on how to check into this?00:59
lifelessmeoblast001: if you're interested in the exact details of the storage delta algorithm, have a look at group_compress in the bzr source for 2.000:59
meoblast001but basically old revisions will be updated perfectly up to the new format?00:59
lifelessmeoblast001: yes00:59
meoblast001ok :)00:59
ScottKOops.  Noticed the time.  Need to run.00:59
lifelessScottK: strace 'bzr st' on a empty tree00:59
ScottKOK00:59
lifelessbzr init; bzr st01:00
ScottKThanks01:00
lifelessthat will tell you the system minimum time to st01:00
lifelessask a question on LP's answers thing, or on the list01:00
lifelessor back here, when you aren't running01:00
meoblast001anyways, i broke my bzr install01:00
meoblast001bzr: WARNING: bzrlib version doesn't match the bzr program. < that's the warning i get, followed by a crash01:00
lifelessmeoblast001: what did you do?01:01
meoblast001make (did that on accident)01:01
meoblast001then i did sudo python setup.py install01:01
lifelessso, you've probably got two copies of 'bzr' on your path01:02
SamB_XPmeoblast001: did you wait for it to *finish*?01:02
meoblast001yup01:02
lifelessand the first one on your path doesn't match the first bzrlib on your PYTHONPATH01:02
meoblast001PYTHONPATH is an environment variable?01:03
SamB_XPyeah01:03
lifelessits like PATH01:03
lifelesswhen PYTHONPATH is empty it has a default01:03
meoblast001i echo'd it, aparently i don't have one01:03
meoblast001ok01:03
lifelessyou can see the effectice PYTHONPATH by doing01:03
lifelesspython -c 'import sys; print sys.path'01:03
lifelessmeoblast001: you should read the upgrade guide though01:04
meoblast001lifeless: what should that say?01:06
SamB_XPmeoblast001: if he knew what it should say, he could have told you what to set PYTHONPATH to ;-P01:06
meoblast001['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/Numeric', '/usr/lib/python2.6/dist-packages/PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/var/lib/python-support/python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/var/lib/python-support/p01:06
meoblast001ython2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-packages']01:06
meoblast001oops01:07
meoblast001i expected that to be 1 line01:07
meoblast001and not so, well, long01:07
meoblast001everything looks shorter in the terminal01:07
meoblast001lifeless: i just reinstalled again01:32
zsquareplusci have a remote repository with several branches and "bzr branches" lists all of them. can i also pull all of them at once? "pull" does not seem to support that01:35
meoblast001am i supposed to install bzrlib seperately?01:36
bob2meoblast001: no01:36
bob2zsquareplusc: multi-pull plugin, not sure if it is maintained anymore01:36
meoblast001is the release candidate known to be broken?01:37
bob2oh, sorry, ignore me01:37
meoblast001?01:38
meoblast001i honestly don't think it's installing bzrlib01:53
lifelessmeoblast001: python -c 'import bzrlib; print bzrlib.__path__'01:54
meoblast001['bzrlib']01:54
meoblast001lifeless: is that supposed to be an absolute directory?01:58
meoblast001lifeless: should i just install the debs?01:59
meoblast001although i'll never really get an understanding of what installing this from source is like if i do that01:59
lifelessmeoblast001: that means its in your local directory02:00
lifelesscd somewhere else02:00
meoblast001lifeless: ['/usr/lib/python2.6/dist-packages/bzrlib']02:01
lifelessthats the packaged bzr02:02
lifelesswhich is your 1.13 or whatever version02:03
lifelessyou might prefer the PPA rather than installing from source02:03
meoblast001should i remove the bzr package?02:03
lifelessanyhow, must go, back later02:03
meoblast001ok, ttyl02:03
zsquarepluscbob2: hm ok. its multi-pull contained in bzrtools, when i run it, it just lists *local* file URLs and tells me that these are no branches, even though i specified a remote repo02:08
meoblast001got it working02:09
zsquareplusci wonder from where it takes that local paths, i want to do a fresh download and i'm in an empty directory02:13
meoblast001oh no02:22
meoblast001http://codepad.org/MIoiOxGQ02:22
meoblast001if i would have known upgrading to 2.0 would cause tons of problems, i wouldn't have done it02:22
meoblast001nvm, i'm an idiot02:23
Colonel-Rosamorning02:35
meoblast001good norning02:35
meoblast001morning*02:35
Colonel-Rosadoes bazaar have a feature where it can work with multiple push locations, eg push production, push staging02:38
meoblast001you can push to 2 different locations if that's what you mean02:38
Colonel-Rosaright, but bazaar would only remember 1 at a time?02:39
Colonel-RosaSo I would have to keep typing in the other location02:39
meoblast001i'm not sure02:39
Colonel-Rosaalright, thanks02:40
lifelessColonel-Rosa: you can create location bookmarks I believe, with the bookmark plugin03:22
Colonel-Rosalifeless, I will check it out03:48
Colonel-RosaCan not find any documentation for it though03:48
vilalifeless: lots of attempts to escape test isolation on OSX failures=84, errors=167 for tiger, failures=73, errors=167 for leopard, probably a single cause having to do with /tmp access rights though09:29
vilavila: pff, not even, it's the infamous /tmp is really /private/tmp on OSX...09:31
aboSamoorI am searching any resource to understand bzr split, any idea12:10
dsuchnot exactly bzr-specific question but what have you guys used to be able to tab-complete the commands?12:29
dsuchI'd like to use something like that in my own Python application.12:29
dsuchOr is it something specific to Bash?12:30
Kamping_Kaiserif i understand you correctly, its a bash thing.12:31
Kamping_Kaiserlook in /etc/bash_completion.d/ , you'll probably see a bzr script12:31
dsuchoh right, thanks Kamping_Kaiser12:35
aboSamooris there anything wrong with this check http://paste.ubuntu.com/274091/ ?12:35
dsuchaboSamoor: sorry, can't help you, you'll need to wait a bit more12:41
aboSamoordsuch: I am trying to learn how to use bzr split which I don't know how it can help me to answer my Q https://answers.launchpad.net/bzr/+question/8303112:43
dsuchaboSamoor: not really12:43
aboSamoordsuch: no problem :)12:44
dsuchyou'll just need to wait for someone more knowledgeable to join in12:44
aboSamoorok, any idea which is the latest format ? is it 2a ?13:19
dsuchI think it is.13:30
aboSamoordoes upgrading branch locally upgrade the format on the launchpad repository ?14:15
dsuchaboSamoor: I don't know but I would've created a test repo in a sandbox to test it out14:17
dsuchin fact, I'm interested in knowing it too :)14:17
dsuchaboSamoor: so I would appreciate it if you could tell me if it did14:18
aboSamoordsuch: it is giving me errors14:18
aboSamoorso I will rollback then I will try to make a new branch and push it14:18
dsuchpastebin it somewhere and perhaps someone will know why it's giving you errors14:19
aboSamoorthe error while trying to push the new format to launchpad14:23
aboSamoorhttp://paste.ubuntu.com/274143/14:23
davidstraussaboSamoor: Upgrade the remote repo first14:24
davidstraussaboSamoor: bzr upgrade --default-rich-root bzr+ssh://rmyeid@bazaar.launchpad.net/~rmyeid/%2Bjunk/code/14:25
aboSamoordavidstrauss: I am usign 1.18 because 2.0rc1 gave me errors and I am using 2a format14:25
davidstraussaboSamoor: You shouldn't be using 2a for production use yet.14:26
aboSamoordavidstrauss: I asked this question https://answers.launchpad.net/bzr/+question/83031. and the answer was to use split.14:27
aboSamoorsplit needs rich root format, so I thought the best to upgrade to the future format so I won't do it again14:27
davidstraussaboSamoor: A split branch has a rich root14:27
davidstraussaboSamoor: you shouldn't upgrade to unstable formats14:28
aboSamoordavidstrauss: I see. can you please take a look at the question, so I am sure that I am in the correct path14:28
davidstraussaboSamoor: I already said you should be using split.14:29
aboSamoordavidstrauss: I searched for explanation how split is working and how to use. My first VCS is bzr and I am not sure of the technical terms used14:30
aboSamoorbut I did not find anything other than bzr help split14:30
davidstraussaboSamoor: Split takes the current directory in the current branch and converts it into its own branch14:30
aboSamoorinside the same directory ? should I move outside the directory and push as new branch ?14:31
davidstraussaboSamoor: right after running split in a directory, you can stay in that directory and push it as a new branch14:32
fullermdYou should note though that split doesn't rewrite any history, so you're still carrying around the whole thing.14:32
davidstraussfullermd: from before the split, yes14:33
aboSamoordavidstrauss: ok, I will do the following. 1-bzr check , 2-bzr reconcile 3-bze upgrade [not sure now what to use !], 4-bzr split dir1 5- cd dir1 6- bzr push14:35
davidstraussaboSamoor: bzr upgrade --default-rich-root14:35
davidstraussaboSamoor: Otherwise looks good14:36
davidstraussaboSamoor: You can skip the reconcile if check doesn't find anything14:36
aboSamoordavidstrauss: I forgot to mention to use bzr upgrade --default-rich-root remote-repo before everything14:36
davidstraussaboSamoor: Indeed14:36
davidstraussaboSamoor: You could also pick --1.14-rich-root if you'd like the latest stable rich-root format.14:37
davidstraussaboSamoor: make sense?14:39
aboSamoornow, I understand the big picture. I applied the default-rich root for the remote repo .  Waiting, it takes long time.14:40
davidstraussaboSamoor: Yes, it takes quite a while14:41
aboSamoordavidstrauss: I reported bug 433039 while trying to use bzr 2.0rc114:43
ubottuLaunchpad bug 433039 in bzr "An inconsistent delta was supplied during upgrade" [Undecided,New] https://launchpad.net/bugs/43303914:43
davidstraussaboSamoor: Don't file those against the Ubuntu package. File them against the bzr project.14:44
aboSamoordavidstrauss: done, but don't know how to remove the ubuntu package from the "Affects" column14:47
davidstraussaboSamoor: They'll have to14:47
aboSamoordavidstrauss: :-D, making mess all  the time14:47
davidstraussaboSamoor: This was probably the bug you ran into: https://bugs.launchpad.net/bzr/+bug/42284914:48
ubottuLaunchpad bug 422849 in bzr/2.0 "Incorrect conversions in 2.0rc1 and bzr.dev" [Critical,Fix released]14:48
davidstraussaboSamoor: And I've marked yours as a duplicate14:49
aboSamoordavidstrauss: it was hard for me to figure that out, but the fix was released and I still have it !14:49
davidstraussaboSamoor: but you were running rc114:50
aboSamoordavidstrauss: yeah, it is released in RC214:50
aboSamoordavidstrauss:  which I could not grab because of the build errors14:50
aboSamoordavidstrauss: by the way, this upgrade process is not friendly, no sign what is going on ! still blinking cursor :(14:52
davidstraussaboSamoor: there should be a progress bar14:52
aboSamoordavidstrauss: http://paste.ubuntu.com/274159/14:53
davidstraussaboSamoor: It doesn't give progress for making the backup14:54
aboSamoordavidstrauss: it was giving when I make the upgrade locally, but with the remote one no progress bar14:54
davidstraussaboSamoor: that's because it's still copying the backup14:55
fullermdLP really needs an upgrade widget.  Doing it remotely is pure pain.14:57
fullermdIt's probably much faster to dump the current branch there and push a new one fresh in the new format.14:57
aboSamoorfullermd: I don't think it is a good idea to cancel the process15:00
aboSamoorI got this message before the progress bar15:07
aboSamoor!!! [Hook] hook(): title not found15:07
ubottuError: I am only a bot, please don't think I'm intelligent :)15:07
davidstraussaboSamoor: What's the full output?15:09
aboSamoordavidstrauss: http://paste.ubuntu.com/274169/15:10
davidstraussaboSamoor: I'd ignore that. It didn't cause a backtrace, so it was handled.15:10
aboSamoordavidstrauss: after updating the remote repo. bzr check operation gave me this output http://paste.ubuntu.com/274179/15:38
davidstraussaboSamoor: try running reconcile on it15:41
davidstraussaboSamoor: wait15:41
davidstraussStandalone tree (format: pack-0.92)15:41
davidstraussaboSamoor: That looks un-upgraded15:41
aboSamoordavidstrauss: seems ok15:41
aboSamoorI upgraded only the remote repo only15:42
davidstraussaboSamoor: did that succeed?15:42
aboSamoorI did not upgrade the local one15:42
aboSamoordavidstrauss: http://paste.ubuntu.com/274184/15:43
davidstraussaboSamoor: OK. Does check succeed now?15:43
aboSamoordavidstrauss: nothing changed after the reconcile15:44
aboSamoorthe check operation still gives the same output15:45
davidstraussaboSamoor: can you just get a fresh branch from the remote (upgraded) branch?15:47
aboSamooryeah, if I understand that I should branch the current repo15:48
davidstraussaboSamoor: yeah15:49
davidstraussaboSamoor: easier to do that than upgrade both15:49
aboSamoordavidstrauss: I did the branching, bzr info gives me Standalone tree (format: rich-root-pack)15:51
davidstraussaboSamoor: sounds right15:52
aboSamoordavidstrauss: I will delete the old branch from my desktop, and I will start to split the folders15:52
davidstraussk15:52
flvr8hello all... what's the "bzr way" to move a directory between two (unrelated) branches but maintain revision control of that folder? [the branches are projects; the folder is a module; the module is "graduating" to a more general project]\16:04
davidstraussflvr8: split, mv (not bzr mv), and then join16:17
davidstraussflvr8: But upgrade your branch first: bzr upgrade --default-rich-root16:17
flvr8so...    cd Project1 && bzr split mymodule   //    bzr mv mymodule bzr+ssh://somewhere/Project2/trunk     //     cd ../Project2 && bzr update    //    bzr join mymodule    ?16:19
davidstraussflvr8: do not bzr mv. just mv16:20
flvr8oh16:20
flvr8ok16:20
flvr8thanks16:20
davidstraussflvr8: and you need to do the mv and join locally16:21
flvr8is there an parallel operation for individual files?16:21
davidstraussflvr8: other than moving a file into a directory of its own and doing a split+join, i don't know of a way to take a file's history from one branch to another16:21
flvr8k16:21
davidstraussflvr8: make sure you read all the split+join docs first. what you're doing is quite advanced16:22
flvr8will do, thanks16:23
aboSamoordavidstrauss: everything works fine, thanks very much :)16:46
davidstraussaboSamoor: :-D16:47
flvr8davidstrauss: it seems to be getting stuck doing "inserting stream" after doing the above and then add/commit... it's uploaded 300MBs (of something) to the server so far (the module is fairly small); i do not see a similar growth in disk space on the server17:11
davidstraussflvr8: Commits are streamed to memory before being committed to disk, AFAIK.17:12
davidstraussflvr8: But I have to go. I'll be back online later this weekend. Not sure when. Consider posting your question to http://answers.launchpad.net/bzr17:12
flvr8ok, thanks17:12
vilaflvr8: just passing around, no time to double check, but keep in mind that join/split still keep the while history (or you wouldn't be able to merge from before split otherwise) so that may explain the volumes you see17:25
flvr8ah ok17:26
SamB_XP_hmm, I really like the repoalias plugin ...17:35
=== SamB_XP_ is now known as SamB_XP
blueyedAre there things planned to make conflict resolving better? BeyondCompare can resolve a lot more conflicts then bzr. Maybe just because of content inspection? (it handles files in different charsets, which bzr does not, ie a file gets converted to another charset in the deriving branch).17:56
james_wblueyed: that would be good18:05
james_wblueyed: but check the extmerge plugin18:05
james_wyou can use an external tool, e.g. BeyondCompare to resolve conflicts18:05
blueyedoh well.. I have a bc-resolve-conflict(s) shell script already. I'll check it out.18:06
blueyedjames_w: should I file a wishlist bug about encoding ambivalence in comparisons? Might you want to just file it (you now more of the inners)? (Link: https://bugs.launchpad.net/bzr/+filebug ;))18:08
blueyedextmerge is nice, should get added to the core.. :)18:09
blueyedbtw: my script asks about resolving the conflict, when coming back.. I'll forward that as an idea18:10
james_wplease file bugs for anything you think could be improved18:14
james_wyou're in a better place to file than me as you know what you want to happen18:14
Colonel-Rosalifeless, thank you for the bzr-bookmarks recommendation yesterday, was what I needed.19:37
Colonel-Rosata19:37
RenatoSilvaIs it possible to directly push a merge directive to launchpad?20:17
RenatoSilvaI mean, instead of pulling from it, then pushing the branch, you'd push the patch, and then pull the changes20:18
lifelessvila: if they need protecting, they aren't innocent ;)23:32
vilalifeless: ok, that was you and me :-D23:32
lifelessvila: and jam and poolie that reviewed ;P23:34
vilalifeless: ow, that's rude :)23:35
vilalifeless: by the way, even if t was for a wrong reason, you trapped ~130 tests that were trying to escape isolation, not so bad...23:39
lifelessvila: they were?23:40
vilathat's what make them failed yes23:40
lifelesscool23:40
lifelessuhm23:40
lifelessI excluded /tmp because ETOOHARD23:40
vilabut you caught TESTROOT, based on tmp23:41
vilaor was it test_dir ?23:41
vilababune has the logs if you're interested anyway23:41
=== r0bby is now known as r0bby|arr
lifelessvila: maybe tomorrow; can you link the build in the bug?23:45
lifelessvila: oh maybe I misremember stuff23:45
vilalifeless: yup, I wanted to add some info there if only for historical value, I'll do that right now23:45
lifelessvila: anyhow, its good that the things that have failed are legitimate escape attempts.23:45
lifelessvila: I thought by the way you described it that it was an isolation-checking bug23:46
vilalifeless: yes, they *look* like legitimate attempts but it's just an aliasing problem (/private/tmp is not inside /tmp, but in fact they are the same)23:46
lifelessurgle23:47
lifelessso we have to permit /private/tmp when we see /tmp ?23:47
lifelessbecause realpath is /private/tmp ?23:47
wgrantbzr-beta-ppa just tried to give me 2.0rc1 (karmic i386). That seems like a really bad idea.23:54
vilalifeless: no, by using realpath early, we just have to permit /private/tmp and be done with the problem23:55
lifelesswgrant: its a terrible idea23:57
vilalifeless, wgrant : bug #43239023:58
ubottuLaunchpad bug 432390 in bzr "beta-ppa fails to build 2.0rc2" [Critical,Confirmed] https://launchpad.net/bugs/43239023:58
wgrantvila, lifeless: Somebody might want to delete 2.0rc1 from it?23:58
wgrantI think nothing is better than 2.0rc1.23:58

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