/srv/irclogs.ubuntu.com/2010/02/01/#bzr.txt

RyNy_How do I connect from my local machine via ssh with a key to my remote server?00:48
igchi all00:48
lifelesshi igc00:59
igchi lifeless01:00
igclifeless: back in Oz?01:00
lifelessnope01:16
lifelessplatform sprint in portland01:16
=== keithhub_ is now known as keithhub
spundunhi all01:31
spundunI'm on mac snow leopard and I tried to install bazaar01:32
spundunthrough the .pkg file01:32
spundunbut I can't find anything installed01:32
spundunwhat files am I looking for?01:32
spundunI can't find anything called qbzr01:33
spundunthe file I downloaded is Bazaar-2.0.4-1-desktop.pkg01:34
RyNy_I got it to work on 10.5.8. I'd do a google search. i came across support for 10.6 somewhere recently02:54
spundunRyNy_: I got the 10.6 binary from here: http://wiki.bazaar.canonical.com/MacOSXDownloads I thought it'd work03:11
spundun10.6 seems to be officially supported by bazaar, from what I gathered from the link above.03:13
spundunI think the problem is with their packaging.03:13
spundunmaybe the install script is failing somehow03:13
RyNy_spundun: I've really been strugging with bzr on my mac here. I got shell integration and after much struggle got the GUI, Explorer to work. But I can't figure out how to ssh to my server with a private key. I just found out that there is a plugin for Eclipse IDE03:13
RyNy_Have to say their documentation is really lacking03:13
spundunI'm trying to install the macports version in parallel03:14
spundunwhich one did you get working?03:14
RyNy_For the GUI I got Explorer working03:14
RyNy_I posted this help doc: https://answers.launchpad.net/bzr/+question/9942103:15
spundunthanks, I'll lok at it.03:15
spundungtg now.03:15
* igc out for a bit - bbl04:51
yojimbo-sanIn a pre_commit hook, how can I determine the absolute filename of an item from tree_delta?09:01
* igc dinner09:07
Kamping_Kaiserbugger, bzr-builddeb contains cia commands09:46
Kamping_Kaiserno, my checkout isprobably broken09:47
Kamping_Kaiserno, my checkouts brokeen09:48
Kamping_Kaiserpebkac as usual :)09:48
jelmerlifeless: is bazaar's pqm using the NEWS conflict resolver yet?11:27
quicksilverdoh. my subscription attempt expired12:10
quicksilverapparently you're not allowed to wait two weeks before cliking the link12:10
=== radoe_ is now known as radoe
asabilhi all12:53
asabilis there any hook for when the working tree is updated ?12:53
asabilto be able to fix this bus: https://bugs.launchpad.net/bzr-externals/+bug/48549412:54
ubottuUbuntu bug 485494 in bzr-externals "bzr-externals does not do the right thing for lightweight checkouts" [Undecided,Won't fix]12:54
=== mrevell is now known as mrevell-lunch
=== mrevell-lunch is now known as mrevell
maxbasabil: `bzr hooks`14:39
maxbWhich, uh, crashes for me. Nice.14:39
asabilsame here14:39
LeoNerdMe too14:39
LeoNerdbzr: ERROR: exceptions.AttributeError: 'InfoHooks' object has no attribute '_callable_names'14:39
asabilsame error14:39
maxbah well, `bzr --no-plugins hooks`14:40
* maxb plays hunt the evil plugin14:40
asabilmaxb, yep, and there is not hook for when the tree is updated14:40
maxb!blame bzr-svn14:41
jelmermaxb: It's a bug in bzr14:41
jelmermaxb: it just happens to only be activated when there's more than one hook loaded14:42
maxboh. yuck :-)14:42
napsterIf there are more than one developer, how the source code is managed? I'm new to bzr too...14:56
=== salgado is now known as salgado-lunch
maxbnapster: Try this document for an introduction to some of the possible ways to work: http://doc.bazaar.canonical.com/bzr.dev/en/user-guide/bazaar_workflows.html14:59
napstermaxb, just got it from #launchpad... tnx anyway... ;)15:00
keithhubi've got a bzr checkout of trunk from a svn repo -- if i make a commit on the bzr branch, should i be able to see the subversion revision assigned?15:04
radoeIf I have a branch of a svn repo by the help of bzr-svn, is there any way to have tags in this bzr branch and push commits back to the svn repo? I have no need to push the tags back, the can be bzr-only.15:14
jelmerradoe: bzr branch will automatically pick up the tags if you use the standard trunk/branches/tags layout in svn15:17
jelmerradoe: and bzr-svn supports pushing back into svn15:18
radoejelmer: maybe I misinterpreted this error message: bzr: ERROR: Tags not supported by SvnBranch('file:///home/ralf/SVNREPO/bzr-test'); you may be able to use bzr upgrade.15:21
jelmerradoe: in that situation, bzr-svn doesn't know where to push tags to15:21
=== keithhub_ is now known as keithhub
jelmerradoe: you need to tell it the layout of the svn repo before you can push15:36
RyNy_Anyone know how to connect using ssh and a private key to a server?15:38
mzzRyNy_: on what os? on linux bzr should end up just invoking ssh, so if that is configured to do so, so will bzr15:38
mzzRyNy_: configuring an alias in ~/.ssh/config for the host and options you need may be necessary, I think15:39
lifelessjelmer: no15:49
lifelessjelmer: 2.1.0 isn't released yet:P15:49
RyNy_mzz: sorry, I meant to say in the GUI Explorer. I currently have an alias ~/.ssh/config. I'm on OS X15:53
RyNy_I did install paramiko too15:53
mzzRyNy_: sorry, I know virtually nothing about mac15:54
radoejelmer: may I request your help than? For tests I start with an empty svn repo with standard tags/trunk/branches layout, see http://pastebin.ca/1774416 what I did exactly...15:57
radoejelmer: I created a bzr repo with svn-import, tagged trunk and simply tried to push it back.15:59
jelmerradoe, that looks correct16:00
jelmerradoe, the push command you mentioned earlier didn't push to /trunk though16:00
radoejelmer: Yes, the earlier one was a different test, after your hints I created a svn test repo in tags/trunk/branches layout and tried again.16:01
radoejelmer: ahh, I see. The tag in fact *gets* pushed back to to svn, even "bzr push" does emit a message "No new revisions to push.". After this message at first I thout nothing has happened during the push...16:05
=== salgado-lunch is now known as salgado
radoejelmer: sorry for the confusion with two different tests. And after the "No new revisions to push" message in my second test I simply did not expect that anything had happened...16:12
jelmeryeah, bzr's UI probably should mention the number of changed tags or something like that16:12
radoejelmer: exactly.16:13
RyNy_mzz: no worries. Anyone have any experience with Bazaar Explorere?16:18
DaffyDuck_`How do I get an old revision of a file?17:34
DaffyDuck_`Ah, "cat".17:37
yjmboIn a pre_commit plugin, how do I get the full pathname of a file from tree_delta?17:40
jelmeryjmbo: I think you can feed it to the abspath() method on the working tree that you have17:42
james_wwasn't there a "bzr-land" plugin that did a merge and put the parents the other way round to normal?17:49
james_wI would like to make use of it17:49
lifelessmthaddon: https://lpstats.canonical.com/graphs/LaunchpadOpenBugs/ is showing zero for the lp code bugs17:53
lifelessmthaddon: I suspect it doesn't refer to 'launchpad-code' instead using the old launchpad-bazaar or something17:53
maxbjames_w: I thought it was conjectured, not written?17:58
james_wmaxb: that may be right, thanks17:59
jelmervila: hey18:04
jelmervila: The merge proposal you just put up has a conflict in NEWS18:04
lifelessjames_w: wed morning or afternoon ?18:04
jelmervila: oh, and it's set to Rejected now - ignore me :-)18:05
vilajelmer: how ironic :D18:05
jelmervila: :-)18:05
james_wlifeless: morning suits me fine18:06
lifelessjames_w: scheduled in for me18:12
james_wthanks18:13
mattlhey... is there a way i can have every checkin send an email to a list?18:53
mattlwithout configuring something on the client18:53
rubbsmattl: try this under change notification: http://wiki.bazaar.canonical.com/BzrPlugins18:54
mattlrubbs: is that something each developer would need to install though?18:56
rubbsmattl: you could create a smart server that has something like that installed, if you need something with a little more beef you could try PQM (in the section right below change notification)18:58
rubbsmattl: also look at this for your "server" http://doc.bazaar.canonical.com/test/en/admin-guide/hooks-plugins.html18:59
mattli have a site that checks out the trunk every 5 mins... i wonder if i could just add something to that19:00
rubbsmattl: it shouldn't be too hard to use hooks for that then. I'll dig up the link19:02
devmodHello19:04
mattlrubbs: thanks.19:04
mattldevmod: hey19:04
rubbsmattl: http://doc.bazaar.canonical.com/bzr.2.1/en/user-reference/hooks-help.html?highlight=hooks19:05
rubbsdevmod: hello19:05
devmodI was reading the bzr user guide, and I am not sure I understand "Backing up task branches", where do u exactly back this up?19:06
rubbsdevmod: can you send a link to the page that you are talking about?19:14
devmodrubbs, http://doc.bazaar.canonical.com/bzr.2.0/en/user-guide/organizing_branches.html19:15
devmodlast paragraph19:15
devmodbasically, i want to be able to keep  a copy of my task branches somewhere (to access it from my laptop maybe? to sync between dev machines, and as a backup)19:15
rubbsI'm not entirely sure of the best way, but you could create a different location for your task branches in a central location and bind to them.19:16
lifelessmattl: you can install bzr-email on the server19:17
rubbsI'm not sure if anyone else here has a better idea.19:17
lifelessmattl: and as long as you use bzr+ssh it will Just Work19:17
devmodmaybe im just too svn minded19:18
devmodeveryone doesnt mind having only local copies of in-progress fixes ?19:19
rubbsdevmod: if I have a long term branch. I'll push it to a central location( like LP) and keep it there under it's own branch19:20
rubbsbut to be honest, my workflow is such that my fix branches are very short lived (a few commits at most)19:20
devmodyeah that is what i was thinking as well19:21
devmodnot sure how bazaar would apply to new projects in which tasks are going to be considerably longer19:22
rubbsI'd just push those up to the back-able location in a seperate directory.19:22
rubbskeep them in a similar location, but ultimately separate19:22
devmodand then when u want to go back to the original repo , u just merge back ?19:23
rubbsyep19:23
rubbsso for example:19:23
devmod(new to bzr in general, so exact cmds escape me atm)19:23
rubbsyou have a shared repo that contains trunk.19:23
rubbsnext to trunk is task1 and task219:23
rubbswhen you are done with task2, you go into main and do a "bzr merge task2"19:24
rubbsand that will merge all your changes from task2 into trunk/main19:24
rubbs(sorry used two different names there but meant trunk the whole time)19:24
devmodyes19:24
rubbs(instead of main)19:24
rubbsis that what you mean?19:24
devmodand to create then? starting from trunk?19:24
devmod(im confused about the "unbind" part)19:25
rubbsyeah, so to start you would (from just outside of the trunk dir) "bzr branch trunk task3"19:25
rubbswell, with this workflow, you can more or less forget the bind19:25
rubbsyou just have to push and pull to your local...19:25
devmodohh ok19:26
rubbsis this making sense at all?19:26
devmodi believe so19:26
devmodit almost feels liek it wasnt intended to work that way19:26
rubbsbzr is really fexible by design. There isn't a whole lot that it wasn't intended for.19:27
devmodand when i merge the branch back into the trunk, will the trunk now contain all log info from the branch as well?19:28
rubbsAs long as you stick true to using bzr as only a history tracker, and not a content delivery system, then you pretty much are using it as designed ;)19:28
rubbsyes,19:28
rubbsthis is the beauty of bzr (and hg and git too)19:28
rubbsyou keep ALL your history19:28
devmodi see19:28
rubbsif you want to see what that looks like you can run a log command on the bzr branch on lp.19:29
rubbsso if you have qlog installed (default on windows and apt-get install qbzr on Ubuntu) you can run "bzr qlog lp:bzr"19:29
rubbsthat will open a gui window and show you what a typical log looks like for a merged branch workflow similar to what we are talking about19:30
devmodi see19:31
rubbsif you give me a few minutes I can whip up a short tutorial on how to work it for you...19:31
rubbson the workflow we discussed, and then we can tweak it to fit your needs19:32
devmodi was just wondering what workflow fit our approach the best19:32
devmodwe used to use svn19:32
devmodso i have this concept of making branches for my own dev which are backed up somewhere19:32
rubbsso you need some sort of central place (backup and collaberation) and you want to be able to use local commits, but have the option to back them up too, right?19:33
devmodright19:33
rubbsok, cool. give me about 5 minutes, I'll whip up something, and you can review it. Then we can see if we can tweak it to make it best for you and your needs. does that work?19:34
devmodabsolutely thanks19:34
rubbsnp... brb19:34
bjphey, is there a workaround for this bug: https://bugs.launchpad.net/loggerhead/+bug/447229/19:35
ubottuUbuntu bug 447229 in loggerhead "Checking out branches from a shared repo results in 'No repository present' error" [Medium,Triaged]19:35
Pengbjp: Well, you could use "bzr branch nosmart+http://whatever"19:50
rubbsdevmod: http://pastebin.com/m3000dec219:51
rubbsnot very pretty but you should be able to figure it out.19:51
Pengbjp: I thought that had been fixed, and I can't reproduce it with Loggerhead's trunk.19:52
devmodrubbs, thanks!19:52
rubbsnp19:52
Pengbjp: Have you experienced the bug yourself? Can you try upgrading to Loggerhead's trunk (lp:loggerhead)?19:54
bjpPeng: nosmart+http gives me another No repository present error19:54
bjpyes i'm working on getting around the bug right now19:54
bjpI haven't tried using the trunk, can i run serve-branches from the branch directory w/out installing it?19:55
Pengbjp: bjp Yes.19:55
bjpnew error: "An attempt to access a url outside the server jail was made"19:56
* Peng dies.19:56
bjpwait let me try something19:56
mwhudsonbjp: what version of bzr are you running?19:57
mwhudsonthat sounds like a no-fixed bug in bzr19:57
bjp2.0.419:57
mwhudsonhmm19:57
Pengbjp: What's the path of your repository, and what's the path you're having Loggerhead serve?19:59
bjpi just tried serving the root of the shared repository /opt/repository20:00
rubbsdevmod: I'll brb, so if you have questions for me, go ahead and ask, but it may be a minute or two before I respond. Just FYI.20:00
lifelessmthaddon: Chex: are either of you on duty atm ?20:09
devmodrubbs, sure np thanks again20:09
lifelesswe need the review team for  https://code.edge.launchpad.net/~bzr-pqm/bzr/2.1 set to bzr-core please20:09
=== salgado is now known as salgado-afk
=== radoe_ is now known as radoe
rubbsdevmod: back fyi20:15
lifelesselmo: https://code.edge.launchpad.net/~bzr-pqm/bzr/2.120:17
bjpi also tried using loggerhead as a plugin with 'bzr serve --http' but got this bug: https://bugs.launchpad.net/loggerhead/+bug/49261420:17
ubottuUbuntu bug 492614 in loggerhead "bzr serve --http cannot find module loggerhead.util" [Undecided,New]20:17
lifelesselmo: set the 'review team' to ~bzr-core please20:18
elmolifeless: done20:18
lifelesssweet, thanks20:19
yjmboCan someone give me a bit of pre_commit plugin help? I am passing tree_delta path names to an external command, but I need absolute pathnames; where do I find the correct prefix?20:20
mkanatyjmbo: I think it's in branch._transport.base.20:21
mkanatyjmbo: If you want the branch path.20:21
yjmboyep, that sounds plausible ... let me try it ...20:22
yjmbomkanat: ok, as a complete newbie to bzr plugins, how do I get that value? "print branch._transport.base" gives "'module' object has no attribute '_transport'"; I cargo-culted "branch.Branch._transport.base" by looking at the hook registration, but I get "type object 'Branch' has no attribute '_transport'" ... I know I'm missing a large chunk of assumed knowledge, but what is it? :-)20:28
bjpPeng: are you able to get it to function correctly with a shared repository?20:29
mkanatyjmbo: params.branch20:29
mkanatyjmbo: That's the branch object.20:29
Pengbjp: Yes.20:30
mkanatyjmbo: It might be params.branch.repository._transport.base. I don't recall off the top of my head.20:30
mkanatyjmbo: Also, I think that the assumed knowledge is the bzrlib API docs.20:30
bjpPeng: i posted a comment on that bug, how is your setup different?20:31
yjmbo:-) I've tried for a while, that's a lot of docs with very few examples! However, I'll try some more until I get it. I looked at a load of plugins, but even the ones that seem to be doing the same task as me are far more complex, and doing things in a far different manner ...20:31
Pengbjp: The fix for that jail bug landed in bzr 2.1.20:37
Pengbjp: (It's bug #348308, FYI.)20:38
ubottuLaunchpad bug 348308 in bzr "Smart server jail breaks bzr+http with shared repos" [High,Fix released] https://launchpad.net/bugs/34830820:38
mwhudsonPeng: oh, that's sucky20:39
Pengmwhudson: What?20:39
mwhudsoni guess at least 2.1 is nearly out20:39
mwhudsonPeng: that the jail bug isn't fixed in the 2.0 branch20:39
PengMaAh.20:39
PengAh.*20:39
PengMann, I don't want to be dealing with these bugs anymore. I'd even forgotten most of that bug number!20:40
Peng(It's not because of that, but I'm going AFK.)20:41
devmodrubbs, that was pretty clear :) One last thing, to update my task branch I merge the trunk into it ?20:52
rubbsdevmod: yes and no. If you need to get something from trunk, then yes, you merge the trunk into it, but because you merge branches you don't need to update your working tree the same way you do when you work with SVN.20:54
rubbswhen you merge, it merges your changes into the trunk... even if the trunk is further ahead than you are20:54
rubbsif there are conflicts it will tell you and then you resolve them... very similarly if you were using SVN20:54
devmodohh i see20:54
rubbsso, merging the trunk in to update is usually unnecessary20:55
rubbshopefully that makes sense20:58
bjpshewt, that means i needs 2.121:39
bjpand there prolly aren't any .deb packages of it yet21:39
rubbshttp://wiki.bazaar.canonical.com/DistroDownloads#Ubuntu there is a 2.1 ppa21:41
maxbThere is a PPA which is supposed to contain 2.1 but does not, you mean :-/21:41
rubbsoh, I didn't know.21:42
rubbsmaybe the nightly one?21:42
rubbsseems like that would be risky though21:42
maxbI'd imagine that ought to be 2.2 by now21:43
bjpheh yea, i'm running this on my server box21:43
bjpi don't update it a lot, but bzr is one of it's main functions, so i'm not sure if the daily ppa would be a good idea or not21:43
rubbsseems weird that the beta ppa doesn't have 2.1... since it's in beta. Is someone working on that?21:44
maxbI made noises that I might, if I get some time21:44
maxbNo one said they were working on it21:45
rubbsdamn21:45
* maxb afks21:46
bjpthe topic says 2.1rc is gold ><21:47
asabilhi all22:06
asabilwhat is actually missing to add support for nested trees ?22:06
lifelessasabil: engineering time22:35
lifelessasabil: probably several weeks at a minimum of a practiced dev22:35
asabillifeless, I see22:35
lifelessthe actual specifics of what hasn't been imlementedI don't recall offhand22:36
mathrickhiya, I was just branching trying the famous Emacs repo, and it is indeed very resource-intensive, even on 2.0.3, which is already supposed to be much better22:39
mathrickso how come it hits over 500M resident mem with mostly linear history? Does bzr need to keep the whole tree in memory when branching?22:40
lifelessmathrick: do you have the C extensions?22:48
mathrickmost probably, any particular package I should look for?22:52
lifelesspython -c 'import bzrlib._dirstate_helpers_pyx'22:53
mathrickno errors, so yes I guess22:54
mathricklifeless: so, is it supposed to take less with C extensions?23:07
lifelessmuch less23:07
lifelessunfortunately jam isn't online at the moment, he has been doing the most memory use analysis23:08
lifelesslinear history doesn't really matter either way; its likely just the size of the data set in use: we write indices at the end of the process.23:09
mathricklifeless: aha, so no hope for, umm, just pulling things and dumping them to disk?23:11
lifelessoh we do for the bulk of data23:11
lifelessbut the indices are written at the end23:11
mathrickI see23:11
lifelesswe're reducing memory use release by release though23:12
lifelessyou might try 2.0.423:12
mathrickI know, previously it was known as the pull that would kill your machine without fail :)23:12
mathrickso 2.0.x are already better in that it works and fits in some 550M and generally finishes in a reasonable time23:12
lifelesspoolie: are you up ?23:19
=== Leonidas_ is now known as Leonidas

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