/srv/irclogs.ubuntu.com/2012/06/12/#bzr.txt

=== spiv_ is now known as spiv
mgzmorning08:03
jelmermoooin08:05
gourmorning all08:13
gourany fish shell user here beign aware there is bzr completion for fish?08:35
gouri used fish in the past, but there was none...then we switched to zsh (as well as to hg, fossil), but now we would like to have it for bzr08:36
mgzcould you adapt the bash-completion builtin plugin? and just alter the output script it generates.08:37
gouri'll try...08:39
matsubaravila, hi :-)09:56
vila:)09:56
matsubaravila, so, should I add something to bazaar.conf to make it agree with authentication.conf?09:57
vilaSo, the lp plugin checks that the launchpad_username is the same than the one selected in authentication.conf09:57
vilaand the launchpad_username can (so far) only be defined in bazaar.conf09:57
vilamatsubara: are you issuing the bzr commands or do you rely on the jenkins plugin for that /09:58
vila?09:58
matsubarathe idea is that jenkins will run the command for me, but AFAICT it's just running bzr branch lp:<foo-branch>09:59
matsubaraand I'm issuing the commands with jenkins user to test things09:59
vilamatsubara: yes. I was thinking about adding -Olaunchpad_username to override bazaar.conf when needed, but if you can't provide that, that's a no go10:00
matsubaravila, I can provide that to jenkins, yes10:02
matsubaravila, but I'm getting an bzr: ERROR: no such option: -O10:02
jelmermatsubara: older versions of bzr don't support -O unfortunately10:02
vilaghaa, upgrade bzr ?10:02
matsubarais it bzr branch -Omazabot lp:maza-server?10:02
vilabzr branch -Olaunchpad_username=mazabot lp:maza-server10:03
matsubaraI have Bazaar (bzr) 2.4.1 installed there10:03
vilayup, too old10:03
mgzany reason not to straight up run bzr as a seperate user?10:03
vilajenkins is the user I think and it needs the related access rights to write on disk10:03
matsubaramgz, it's going to be run by the jenkins user10:04
matsubarayou're right vila :-)10:04
mgzwell, set BZR_HOME to a different dir with a whole different conf then?10:04
vila2.4.1 is weird though, 2.4.2 being out, what are you using to get only 2.4.1 (just curious, won't help here)10:04
vilayeah, heavy workaround but would work and seems to be the only way to address the issue in the short term10:05
matsubaravila, don't know. it was there when I got access to the machine10:05
matsubaraand I don't manage the machine, so I'd rather not upgrade the bzr client until I can talk to retoaded who manages the box10:07
matsubaraI'll try the BZR_HOME trick then10:07
vilamatsubara: alternatively, since the issue is in the lp plugin, you may be able to avoid the issue by using 'bzr+ssh://' urls instead of 'lp:' ones10:16
matsubaravila, thanks for the tip. mgz's suggestion kinda worked. Now I'm having a public key denied problem and I think bzr is send the wrong key for authentcation10:17
vilayou used BZR_HOMR not HOME right ?10:23
matsubaravila, yep10:26
matsubarahttps://pastebin.canonical.com/67878/10:26
matsubaravila, the output ^10:26
matsubarais there a way to also define which ssh key to use?10:27
vilamatsubara: ssh -vv bazaar.launchpad.net10:27
mgzalso `BZR_HOME=maza-bazaar-conf/ bzr launchpad-login`10:28
vila.ssh/config is still obeyed, not sure how to make ssh try several keys10:29
matsubaravila, output of ssh -vv: https://pastebin.canonical.com/67879/, it's trying to use the default id_rsa, while I want it to use the maza_lp key10:29
vilayeah10:29
matsubaramgz, I ran that command already10:29
matsubaraand it returns mazabot as the user, which is the correct one10:29
matsubaravila, .ssh/config: https://pastebin.canonical.com/67880/10:30
vilassh-add maybe10:30
matsubaraI just changed s/.launchpad/bazaar.launchpad.net/ in .ssh/config and it seems to be doing something. waiting on the output10:31
matsubaraaha! branched!10:32
vilayeah, the leading '.' is an authentication.conf trick10:32
vila*.launchpad.net should work in .shh/config though10:32
matsubarabut then bzr client will default to that key for everything else as well, won't it?10:33
vilamatsubara: and from ssh_config(1), you can have multiple IdentifiyFile directives so all keys are tried10:33
matsubarahmm10:33
vilayeah, you need an .ssh/config thta works for all your users10:34
vilawell, 'need' is a bit strong, but you get the idea10:34
vilaand you probably should remove the 'User' directive from .ssh/config and let bzr provide it10:36
vila(that is, provide the user when attempting to connect and rely on .ssh/config to try the various keys until the right one succeed)10:36
matsubaradarn, apparently jenkins bzr plugin won't allow me to define a custom BZR_HOME10:44
mgzjenkins doesn't let you just set an var for the environment of running an external command?10:45
matsubaraI'm trying to find out10:45
ccxCZcan I make bzr shell not connect to the parent when using it in bound branch?10:47
ccxCZah well I guess I can workaround it with cd /10:49
matsubaramgz, vila: I'm going for lunch and will figure out how to teach jenkins to use custom env variables. thanks a bunch for your help!10:58
=== matsubara is now known as matsubara-lunch
ricardo_Hola, intento iniciar bazaar para version control system y no me permite configurar etckeeper.conf ¿Que puedo hacer?11:34
jmldoes bzr have a helper for printing tales?11:54
hazmatdoes bzr support any form of revno expansion in a file?12:02
=== matsubara-lunch is now known as matsubara
mgzhazmat: see the bzr-keywords plugin12:06
hazmatmgz, thanks12:06
mgzgenerally you want to do something else in your build process though12:06
mgzjml: I don't know what a printed tale would look like I'm afraid12:07
jmlsorry, I meant 'tables'12:07
fullermdWhat, you've never read Chaucer?12:07
mgzhm, no, 'fraid not in that case. python-novaclient uses something called prettytable but I don't think it's all that pretty.12:09
jmlmgz: thanks.12:09
mgzI don't think I've ever read Chaucer pretty printed...12:10
mgzjust from photocopies12:10
mgzwas involved in a performance in the original language in a pub once though12:12
jmlhmm.12:18
jmlistr bzr had an easy way to get a dump for kcachegrind12:18
mgz`bzr --lsprof-file something.callgrind command`12:19
jmlthanks.12:19
jmlyay12:23
jmlfor those interested, I have been using your help to generate a high score table for lp:launchpad, where the score is lines of code added: http://paste.ubuntu.com/1037100/ is my latest cut.12:29
mgzwhat are the prizes you're giving away? :)12:32
jmlmgz: dignity & honor.12:35
mgzwallyworld certainly deserves something12:36
mgzwooden spoon?12:36
jmlmgz: perhaps a leather-bound print out of all the lines he's added?12:36
jmlcode is at lp:bzr-damage btw. Would appreciate any tips on how to do things better.12:37
leo2007how to sync branches from upstream?13:07
leo2007My current repo (emacs upstream) has the following branches http://bpaste.net/show/3132113:09
leo2007which has not been updated for a while. upstream has created new branches. I want to bring my local branches up-to-date.13:10
jmljelmer: are you responsible for bzr-stats?13:49
nilg`hi, I have a question regarding private branch and collaborative work15:48
nilg`suppose you have the trunk A, I branch A, do some commits to get B15:48
nilg`during this time A got some commits too, and becomes A'15:49
nilg`B is on a private branch, and the guys how owns that branch wants me to push his changes to the trunk (now A')15:50
nilg`so I branch B, locally, rebase it from A' (bzr rebase TRUNK)15:50
nilg`i push the stuff to the trunk, now A''15:51
nilg`the guy who owns B, in between has committed some changes, so now it become B'15:51
nilg`and he also wants to update in branch, so he rebase B's according to A''15:52
nilg`but now the commits of B' that I've pushed on the trunk are duplicated on B''15:52
nilg`how to avoid that problem?15:52
nilg`thx15:52
viladon't rebase15:55
vilamerge instead15:56
vilaby rebasing you're roughly saying: I don't care about what happened in branch B. When you later try to "merge" again, you do care. So if you want to track B, merge it.15:57
LeoNerdRebasing is a form of rewriting history. As with any rewrite, you need to be careful with it15:57
=== matsubara is now known as matsubara-afk
jelmerjml: whoops, missed that earlier18:20
jelmerjml: fsvo responsible18:20
jelmerjml: the code was written by jam and myself18:20
eriduis there a way to have a bazaar branch that maps to a git "branch" within a git "repo"? I'd like to use bazaar in a typical multi-directory shared-repo layout, but push to github.20:05
eridu(it wasn't my choice to use github)20:05
ccxCZeridu: bzr-git plugin has git-import command for this20:08
eriduccxCZ: can I use the branches to push back to github?20:08
ccxCZ(you need fairly recent bzr-git for git branches to work)20:08
ccxCZyup, or any git repo20:08
eriduwoot! thank you!20:09
eridu(I was really worried I'd have to use git)20:09
ZoohouseWhen I try to run bzr lp-propose-merge lp:gwibber --message=Submitting my edits of the docsctrings to the plugin files. If there's no problems with the edits and it's approved, I'll continue editing the docstrings within the GTK files. Nature of edits: converted current docstrings to Python's PEP 257 styles.  I get the following error: bzr: ERROR: extra argument to command lp-propose-merge: my20:23
Zoohousescratch the question. I needed quotes around the comment.20:27
=== slank` is now known as slank
=== slank is now known as Guest2077
evillyEvilIs it possible to propose a branch for a merge without having to go to Launchpad?21:48
jelmerevillyEvil: "bzr lp-propose"21:59
evillyEviljelmer: So do I still need to push the branch to launcpad first?22:04
evillyEviljelmer: Actually, I also got this error bzr: ERROR: No module named lazr.restfulclient.resource22:06
evillyEvilYou may need to install this Python library separately.22:06
jelmerevillyEvil: yes, you'll have to install lazr-restfulclient23:04
jelmerevillyEvil: you do indeed need to push the branch first (I think)23:04

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