/srv/irclogs.ubuntu.com/2010/11/06/#bzr.txt

rockstarIf I want to hook into every single call to the bzr script, is there a simple way to do that?  For instance, let's say I want to log every command that is run.00:02
maxburgh. is anyone else finding dput ftp uploads hang?00:13
maxb(and they use bzrlib code, btw)00:13
peitschie_rockstar: I don't have any real clue... have you looked at http://doc.bazaar.canonical.com/development/en/user-reference/hooks-help.html ?00:25
rockstarpeitschie_, indeed I had, but I was hoping for something a bit more general.  It doesn't look like I'll find one.00:36
peitschie_rockstar: ahh... doesn't sound like fun.  sorry i can't be more help :)... still quite new myself00:37
spivrockstar: you can probably do that03:43
spivrockstar: the get_command hook point of bzrlib.commands.Command.hooks would suffice I think03:44
spivrockstar: well, to some extent.  Other plugins could potentially interfere, but I think that's unavoidable to a degree03:45
spivrockstar: also a bit awkward as you would need to decorate the given command to be one that logs the arguments or whatever you want to do.03:45
=== beaumonta is now known as abeaumont_
dnivrahello. I am using bzr on ubuntu 10.10. I have uploaded my public key to launchpad and created a branch. i try uploading to the branch but get the error "Permission denied(public key)". what is wrong?10:00
dnivrai'm pretty sure i uploaded the key right(all contents of ~/.ssh/id_rsa.pub)10:01
peitschie_dnivra: have you checked to ensure you have the right username defined for bzr launchpad-login10:02
dnivrapeitschie_, yes it is. i am logged into launchpad through the web interface using the same account.10:03
dnivrais there a way to check if the login was successful?10:03
dnivralogging in using "bzr launchpad-login <username>"?10:03
peitschie_dnivra: the first time you branch sometime seems to be the only way it checks10:04
dnivrapeitschie_, sorry didn't get you. i have created and uploaded branches before. two branches exist in launchpad.10:05
peitschie_dnivra: ahh... so it just suddenly stopped working for you?10:05
dnivrapeitschie_, i guess so. i am puzzled-all i generally do is register a branch through the web and then push to it.10:06
peitschie_dnivra: how long has this error been happening for?  have you retried a few times?10:06
dnivrapeitschie_, yes. four or five times already. doing again now too.10:07
peitschie_dnivra: other easy question just to check :)... is this the same computer you created the pub/priv key pair on?10:08
peitschie_dnivra: occasionally launchpad will go a little funny for a while... but usually it clears up after a few minutes10:08
dnivrapeitschie_, i created a new key just now after the old ones didn't work and uploaded the new key. that didn't work so created another one.10:08
dnivrapeitschie_, i do have to create an ssh rsa key pair right?10:09
peitschie_dnivra: yes... for each computer you access launchpad from you need an rsa key pair (or you need to ensure your private key is on all these computers)10:09
dnivrapeitschie_, imported my public key yet again. let me see if iti works.10:10
peitschie_dnivra: are you on windows or linux atm (i'm guessing linux... but again, worth checking :) )10:10
* peitschie_ crosses fingers10:10
dnivrapeitschie_, ubuntu10:10
* dnivra doesn't have windows10:10
peitschie_dnivra: consider yourself lucky then lol... ssh+windows=not fun10:11
dnivraoh! I'm not so used to windows-all i have done is play a few games, sync iPod and watch a few movies/videos. i have not been so lucky with ubuntu either-this whole authentication thing is not working for me.10:12
viladnivra: the best way to debug this is: 'ssh -v bazaar.launchpad.net'10:12
dnivravila, now i try pushing to the branch from another terminal?10:13
viladnivra: this should show you which keys are proposed/accepted/refused10:13
dnivravila, yeah see that now.10:13
viladnivra: forget push for the time being, this is to debug the ssh connection without bzr being involved at all10:13
dnivravila, yeah ok done. reading the debug output.10:14
dnivratwo questions-why does it offer my private key "id_rsa" and two why does it say wrong user name when i logged in using a different username? http://ubuntu.pastebin.com/1cvaVciA10:17
viladnivra: that's the default behaviour of ssh10:18
vilaif your lp login is different than your local one, try 'ssh -v <lp_login>@bazaar.launchpad.net'10:18
dnivravila, offerring id_rsa as public key is default behaviour?10:19
dnivravila, http://ubuntu.pastebin.com/RX5M5Qnw is what happens when i try ssh -v <lp_login>@bazaar.launchpad.net10:21
viladnivra: yup, that's the key the server is supposed to know about10:21
vilaha ! So your key is protected by a password but somehow ssh can't find a way to ask you about this password10:22
dnivravila, when it says "offerring public key: id_rsa", it does mean that id_rsa is my public key right?10:22
dnivravila, you mean passphrase?10:22
vilayou should have a 'id_rsa.pub' (the public key) along your 'id_rsa' (the private)10:23
vilayeah passphrase10:23
viladnivra: do you have an ssh agent setup and running ?10:23
vila'ssh-add -l' will tell you about which keys are known and usable10:24
vila'ssh-add <path-to-key>' will add a new key asking for its passphrase if needed10:25
dnivravila, ssh agent is running. is there some specific setting up to be done? and I get an output using ssh-add -l. but that isn't what i need to upload right?10:25
vilaoh.... wait a minute, you re-recreated your keys using id_rsa without re-starting the agent right ?10:26
dnivravila, yeah. anything wrong there?10:26
vilaI went into this weird scenario and it took me a while to realize that the agent was still using the *wrong* key10:26
vilai.e. the old one10:27
vilasince I used the same user@host inside the key I didn't realize what was happening, this sounds a lot like what you're experiencing right now10:28
vilatry 'ssh-add -D' to purge the agent and try again10:28
vilacheck with 'ssh-add -l'10:29
dnivrawhen i run 'ssh-add -D' and then run 'ssh-add -l', there should be no output right?10:29
viladnivra: for the record, ssh keys should be looked at like real physical keys, you define a key for each door your want to open and you duplicate this key if you need to use it from various computers10:30
viladnivra: yes, no output10:30
dnivravila, well i do get output.10:30
vilahmm, may be it reload the default keys, try 'ssh -v ' again10:31
vilaotherwise you'll have to be more rude: logout/login10:31
dnivrawhat should be the output of "ssh -v"?10:32
vilayou can also try 'ssh-add -L' and check10:32
vilassh -v <lp_login>@bazaar.launchpad.net' I meant...10:32
dnivravila, oh ok. and  I get the public key as output-the one i uploaded in launchpad-of 'ssh-add -L'10:33
dnivravila, i tried ssh -v and still get the same error.10:34
dnivralet me try logging out and logging in again.10:34
dnivravilla got it. it asked me for the passphrase this time10:41
vilathere you go10:41
dnivraso it was the fact that the old keys were being used eh? thanks a lot vila!10:41
viladnivra: next time, give your key a different name like: dnivra@launchpad or something, that will make it easier to debug10:42
vilaalso read the various man pages about ssh, once you understand the key metaphor they make more sense (ssh_config, ssh-add, ssh-key, ssh)10:42
dnivravila, giving a different name should be done during key generation right?10:43
dnivravila, oh yes will read the man pages.10:43
vilayeah naming at ket generation time is the best way to avoid errors10:43
vilas/ket/key/10:44
dnivravila, will keep that in mind. thanks a lot!10:45
=== frakturfreak_ is now known as frakturfreak
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
sqwishyMy plugin isn't working, someone wanna help? A hook isn't working it seems.17:09
=== oubiwann is now known as oubiwann-away
=== oubiwann-away is now known as oubiwann
exarkunI guess I did something wrong?  http://pastebin.com/jeWbEMuc18:48
lifelesslooks like a dpush bug18:53
exarkunglyph said some words to me last week , I think "bzr" and "dpush" and "svn" and "branches" were amongst them, but I don't really remember18:55
exarkunAm I supposed to be able to dpush a bzr branch to an svn branch?18:56
lifelessyes18:57
lifelessI think18:57
sirexIs it possible to have two completely differend branches for one project in launchpad?20:10
sirexnow I getting this: http://ubuntu.pastebin.com/CzFNppBg20:13
lifelesssirex: it is if they ahve the same format20:32
lifelesssirex: the trunk is a very old format, it would benefit by being upgraded.20:32
sirexlifeless, after thirt push, there was no error and finnaly new separete branch was create...20:34

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