/srv/irclogs.ubuntu.com/2010/07/27/#bzr.txt

samd_jelmer: thanks, im trying to set up a personal server, i made up a upstart job to start bzr serve on boot, the upstart job executes the command "bzr serve --port=1234 --directory=/srv/bzr/repo", im able to log, branch just fine, i just cant push anything, i get the error "ERROR: Cannot lock LockDir(filtered-44592336:///quiniela/.bzr/branch/lock): Transport operation not possible: readonly transport"00:00
samd_jelmer: i can push just fine using sftp://host/project method just fine00:01
samd_i guess im missing something about authentication/permissions or something00:05
jelmersamd_: You need --allow-writes00:09
jelmersamd_: but please note that that will allow write access to anybody who can connect to that port00:10
samd_jelmer: ohh, i see, thank you very much, yeah i see that risk, so id be better be using sftp as it provides authentication, or there's a way to add authentication to bzr serve?00:11
samd_jelmer: ooo im seeing this on  the man page, it seems like authentication has to be implemented externally, thank you very much, i apreciate your help00:13
doughulo00:25
dougwhere's the Right Place to put a push(commit) hook?00:25
dougespecially if i'd prefer everyone i put on the server to be using it w/o additional setup00:25
douga'la svn post-commit-hook00:26
dougmmm, a bit harder than i'd think.00:45
mkanatdoug: See "bzr hooks"00:49
mkanatdoug: You probably want post_change_branch_tip.00:50
mkanatdoug: If you're somehow enforcing use of the smart server, then installing it globally on the server will enforce its use.00:50
GungaDinhow should the output of 'bzr blame' be read?02:59
spivGungaDin: with delight! ;)03:00
GungaDin:)03:00
GungaDinI don't really understand how to read it, to be honest.03:00
GungaDinsome lines have revno.something.something name next to them..03:00
GungaDinsome don't...03:00
spivActually, I mainly use 'bzr qannotate' (or 'bzr gannotate', I'm not very loyal...), because it's a bit more convenient to view it as a GUI format.03:01
spivA run of lines from the same revision only have the top line marked, to keep the output a little easier to read.03:01
GungaDinmy bzr doesn't understand these commands.03:01
spivInstall the qbzr (or bzr-gtk) plugins to get them.03:01
GungaDinbut there is revid.x.y03:02
GungaDinwhat's x & y?03:02
GungaDinand why is it that bzr st -c revid doesn't indicate this file was changed?03:02
spivDotted revision numbers are explained here: http://doc.bazaar.canonical.com/latest/en/user-guide/zen.html#understanding-revision-numbers03:04
spivNot sure why 'bzr st -c revid' wouldn't show a change in that case, though :/03:04
fullermdIf you weren't putting in the whole revno, just the first segment.03:06
michaelh1Afternoon.  I'm looking at building the same bzr branch on three machines, each with different architectures03:27
michaelh1I want to build continousally, and throw the branches away quite often03:28
michaelh1Can I put some type of cache in the middle to cut the download time?03:28
michaelh1Ah, figured it out: run a mirror branch and branch off that03:40
* spiv celebrates the netsplit by going to lunch05:17
=== r0bby is now known as robbyoconnor
=== davidstrauss_ is now known as davidstrauss
=== bigjools is now known as bigjools-afk
=== bigjools-afk is now known as bigjools
schlangen_hey, I've messed up sth with bzr(gui?) and now I've got 3 dead heads. what shoud I do (or read)?11:34
GaryvdMschlangen_: You can merge dead heads with merge -r revid:....11:35
wgrantBut, in general, dead heads are not a problem.11:35
LeoNerdE.g. every 'bzr uncommit' operation will create one11:36
wgrantThey might just indicate that you've used 'bzr uncommit' at some point, for example.11:36
wgrantRight.11:36
GaryvdMI just checked, and I have 72 dead heads in my qbzr repo. I use uncommit alot...11:36
schlangen_but its my active code! I did some local commits, then an update and all my local changes where gone11:37
LeoNerdIndeed. They're not causing any damage.. They're just dead-ends in the branching path that represents your history11:37
schlangen_like here: http://srtsolutions.net/blogs/chrismarinos/archive/2008/10/24/don-t-loose-your-head-with-bazaar.aspx11:37
LeoNerdIf you really care about them, you can 'bzr push' the branch elsewhere, then move the directories around. 'bzr push' will only see the live revisions, so skip over the dead ones11:37
LeoNerdAll this will do is save you a bit of disk space11:37
GaryvdMschlangen_: So that can happen if you do bzr update, and then bzr revert before you commit.11:38
wgrantIf you 'bzr update' with local commits, your local commits will appear as a pending merge.11:38
GaryvdMschlangen_: If they are stuff that you need, then merge them.11:38
schlangen_don't know if I did revert, maybe (new to bzr and don't really like the gui, but have to work on win for few days)11:39
schlangen_so how can I fix it now and get all my changes back to "normal" commit history?11:39
GaryvdMschlangen_: bzr merge -r revid:<revid of dead head>11:40
GaryvdMsorry11:40
GaryvdMschlangen_: bzr merge . -r revid:<revid of dead head>11:40
schlangen_ok, I'll try11:43
schlangen_GaryvdM: yay, I think it worked :D thanks11:47
GaryvdMHi mgz12:35
mgzhey gary.12:35
GaryvdMCould you please test a build for me. I'm at home, and my windows machine is at work.12:36
GaryvdMmgz: http://dl.dropbox.com/u/4494367/bzr-2.2b4-bzrw-setup.exe12:37
mgzgetting.12:37
mgzwhat did you change?12:37
GaryvdMThanks. Add a windows target, bzrw.exe, so you can run bzr explorer, with out having a console window open.12:38
GaryvdMlp:~garyvdm/bzr/bzrw and lp:~garyvdm/bzr-windows-installers/bzrw12:39
mgzwell, seems to work, but still need to shell execute `bzrw.exe explorer`12:47
mgzwould be nicer if just had something called explorer.exe that double clicking on worked with12:48
GaryvdMmgz: The start menu/desktop short cuts should have been changed?12:50
mgzah yes, that's fine.12:50
GaryvdMmgz: I've also had request from people who want to run bzrw qlog, or bzrw qpull...12:50
GaryvdMSo I think that a generic command is better.12:51
GaryvdMI also want to get rid of tbzrcommandw.exe and tbzrcommand.exe. They tbzr should just call bzrw.exe directly.12:53
GaryvdMmgz: Thanks for testing that for me. I'm going to post to the mailing list.12:53
=== oubiwann` is now known as oubiwann
=== bac` is now known as bac
=== Ursinha` is now known as Ursinha
=== rubbs_ is now known as rubbs
=== mbarnett` is now known as mbarnett
jammorning all15:11
rubbsmorning jam15:13
GaryvdMHi jam15:22
jamhey GaryvdM15:23
GaryvdMjam: If I have KnownGraph object, what would be the best way to do an is_ancestor query?15:29
jamGaryvdM: heads()15:30
jamhead = kg.heads(x, y)15:30
jamif head == x: then y is an ancestor of x15:31
jamif heads == (x, y) then neither is an ancestor, etc15:31
GaryvdMjam: So Is it ok to be reimplementing Graph.is_ancestor?15:31
jamGaryvdM: if you look, it is just doing a heads call itself15:31
jamI think somebody was wanting a clearer statement in code15:32
jambut it is really is a single line function15:32
jamalso note, that it will be more efficient than doing "is_ancestor(x, y), is_ancestor(y, x)"15:32
jambut I don't know what *you* want isancestor for15:32
GaryvdMjam: If the user has qlog open with more than one branch, an the right click, and chose say tag, I only want to show the branches for which the rev is an ancestor.15:34
GaryvdMFor merge, only the branches which it is not an ancestor.15:35
GaryvdMFor cherry pick, not15:35
GaryvdMfor reverse cherry pick, is15:36
GaryvdMetc.15:36
jamGaryvdM: so in those cases, you can probably check across multiple branches simultaneously15:37
jammaybe not15:37
GaryvdMjam: Ah - right.15:38
jamYou could tell if it was an ancestor of one of the branches, and if the branches were related, but I think it would get muddy to tell if each branch was an ancestor, etc15:38
jamhowever, kg.heads() is *much* faster than Graph.heads()15:38
jamthe latter is known to be O(N^2)15:38
_Andrewhi, is there a way to revert all the file permissions changes in a repo? I have a bzr repository from windows and viewing it on ubuntu just shows everything as modified15:42
jam_Andrew: unfortunately, the easiest thing to do is to "bzr co --lightweight onto a non fat/ntfs partition"15:43
GaryvdMjam: A cool - kg.heads caches it's self.15:43
jamGaryvdM: yeah, though it may not actually need to. I think it was useful for annotation where you get the same requests many many times15:43
jamwhich was the original kg motivation15:43
_Andrewdamn, thanks anyway15:43
jam_Andrew: Under Linux we trust the filesystem to report executable bit properly15:43
jamwhich we shouldn't, but that is how it is for now15:44
jam(it sounds like mounting -x might also help)15:44
=== Cardinal` is now known as CardinalFang
jamGaryvdM: so are you still done with the ec2 machine for now?15:53
=== Ursinha is now known as Ursinha-lunch
GaryvdMjam: Yes16:21
GaryvdMjam: Please shut it down.16:21
jamthanks16:22
jamcreating a snapshot and shutting down now16:22
=== Ursinha-lunch is now known as Ursinha
=== beuno_ is now known as beuno-lunch
=== jml` is now known as jml
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
=== Ursinha-afk is now known as Ursinha
=== beuno-lunch is now known as beuno
jamspiv: what are you doing up so early?20:20
MethsCan you make a checkout forget a push location? (without overwriting with another)20:59
jamMeths: bzr push --remember21:06
MethsNope, that just pushed to the already stored location21:07
=== Adys_ is now known as Adys
=== Ng_ is now known as Ng
jelmerjam: hi22:26
=== Ursinha is now known as Ursinha-afk
michaelh1Hi there.  I'm a bit worried about the memory/CPU bzr is using - I'm doing a checkout and it's sitting at 600 MB of RAM and 50 to 100 % CPU23:41
michaelh1It's a really large branch, but still23:41
pooliethis is linaro-gcc?23:42
poolieyou should try with 2.2b4 if you're not already23:42
michaelh1OK.  Will do.23:42
poolieit has some memory use improvements over 2.123:42
poolienot sure if that's in maverick yet23:42
poolieor if you're on maverick :)23:42
michaelh1Ah, this is a server so it's on Lucid23:42
poolieok23:43
pooliewe may not yet have it in the ppa23:43
michaelh1I'll be chrooting into maverick later on23:43
poolieyou could build from source if you want23:43
poolieif you want file a bug tagged linaro23:43
michaelh1I'll see how 2.2b4 goes23:43

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