[00:02] <rockstar> If 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:13] <maxb> urgh. is anyone else finding dput ftp uploads hang?
[00:13] <maxb> (and they use bzrlib code, btw)
[00:25] <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:36] <rockstar> peitschie_, indeed I had, but I was hoping for something a bit more general.  It doesn't look like I'll find one.
[00:37] <peitschie_> rockstar: ahh... doesn't sound like fun.  sorry i can't be more help :)... still quite new myself
[03:43] <spiv> rockstar: you can probably do that
[03:44] <spiv> rockstar: the get_command hook point of bzrlib.commands.Command.hooks would suffice I think
[03:45] <spiv> rockstar: well, to some extent.  Other plugins could potentially interfere, but I think that's unavoidable to a degree
[03:45] <spiv> rockstar: 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.
[10:00] <dnivra> hello. 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:01] <dnivra> i'm pretty sure i uploaded the key right(all contents of ~/.ssh/id_rsa.pub)
[10:02] <peitschie_> dnivra: have you checked to ensure you have the right username defined for bzr launchpad-login
[10:03] <dnivra> peitschie_, yes it is. i am logged into launchpad through the web interface using the same account.
[10:03] <dnivra> is there a way to check if the login was successful?
[10:03] <dnivra> logging in using "bzr launchpad-login <username>"?
[10:04] <peitschie_> dnivra: the first time you branch sometime seems to be the only way it checks
[10:05] <dnivra> peitschie_, 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:06] <dnivra> peitschie_, 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:07] <dnivra> peitschie_, yes. four or five times already. doing again now too.
[10:08] <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 minutes
[10:08] <dnivra> peitschie_, 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:09] <dnivra> peitschie_, 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:10] <dnivra> peitschie_, 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 fingers
[10:10] <dnivra> peitschie_, ubuntu
[10:10]  * dnivra doesn't have windows
[10:11] <peitschie_> dnivra: consider yourself lucky then lol... ssh+windows=not fun
[10:12] <dnivra> oh! 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] <vila> dnivra: the best way to debug this is: 'ssh -v bazaar.launchpad.net'
[10:13] <dnivra> vila, now i try pushing to the branch from another terminal?
[10:13] <vila> dnivra: this should show you which keys are proposed/accepted/refused
[10:13] <dnivra> vila, yeah see that now.
[10:13] <vila> dnivra: forget push for the time being, this is to debug the ssh connection without bzr being involved at all
[10:14] <dnivra> vila, yeah ok done. reading the debug output.
[10:17] <dnivra> two 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/1cvaVciA
[10:18] <vila> dnivra: that's the default behaviour of ssh
[10:18] <vila> if your lp login is different than your local one, try 'ssh -v <lp_login>@bazaar.launchpad.net'
[10:19] <dnivra> vila, offerring id_rsa as public key is default behaviour?
[10:21] <dnivra> vila, http://ubuntu.pastebin.com/RX5M5Qnw is what happens when i try ssh -v <lp_login>@bazaar.launchpad.net
[10:21] <vila> dnivra: yup, that's the key the server is supposed to know about
[10:22] <vila> ha ! So your key is protected by a password but somehow ssh can't find a way to ask you about this password
[10:22] <dnivra> vila, when it says "offerring public key: id_rsa", it does mean that id_rsa is my public key right?
[10:22] <dnivra> vila, you mean passphrase?
[10:23] <vila> you should have a 'id_rsa.pub' (the public key) along your 'id_rsa' (the private)
[10:23] <vila> yeah passphrase
[10:23] <vila> dnivra: do you have an ssh agent setup and running ?
[10:24] <vila> 'ssh-add -l' will tell you about which keys are known and usable
[10:25] <vila> 'ssh-add <path-to-key>' will add a new key asking for its passphrase if needed
[10:25] <dnivra> vila, 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:26] <vila> oh.... wait a minute, you re-recreated your keys using id_rsa without re-starting the agent right ?
[10:26] <dnivra> vila, yeah. anything wrong there?
[10:26] <vila> I went into this weird scenario and it took me a while to realize that the agent was still using the *wrong* key
[10:27] <vila> i.e. the old one
[10:28] <vila> since 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 now
[10:28] <vila> try 'ssh-add -D' to purge the agent and try again
[10:29] <vila> check with 'ssh-add -l'
[10:29] <dnivra> when i run 'ssh-add -D' and then run 'ssh-add -l', there should be no output right?
[10:30] <vila> dnivra: 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 computers
[10:30] <vila> dnivra: yes, no output
[10:30] <dnivra> vila, well i do get output.
[10:31] <vila> hmm, may be it reload the default keys, try 'ssh -v ' again
[10:31] <vila> otherwise you'll have to be more rude: logout/login
[10:32] <dnivra> what should be the output of "ssh -v"?
[10:32] <vila> you can also try 'ssh-add -L' and check
[10:32] <vila> ssh -v <lp_login>@bazaar.launchpad.net' I meant...
[10:33] <dnivra> vila, oh ok. and  I get the public key as output-the one i uploaded in launchpad-of 'ssh-add -L'
[10:34] <dnivra> vila, i tried ssh -v and still get the same error.
[10:34] <dnivra> let me try logging out and logging in again.
[10:41] <dnivra> villa got it. it asked me for the passphrase this time
[10:41] <vila> there you go
[10:41] <dnivra> so it was the fact that the old keys were being used eh? thanks a lot vila!
[10:42] <vila> dnivra: next time, give your key a different name like: dnivra@launchpad or something, that will make it easier to debug
[10:42] <vila> also 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:43] <dnivra> vila, giving a different name should be done during key generation right?
[10:43] <dnivra> vila, oh yes will read the man pages.
[10:43] <vila> yeah naming at ket generation time is the best way to avoid errors
[10:44] <vila> s/ket/key/
[10:45] <dnivra> vila, will keep that in mind. thanks a lot!
[17:09] <sqwishy> My plugin isn't working, someone wanna help? A hook isn't working it seems.
[18:48] <exarkun> I guess I did something wrong?  http://pastebin.com/jeWbEMuc
[18:53] <lifeless> looks like a dpush bug
[18:55] <exarkun> glyph said some words to me last week , I think "bzr" and "dpush" and "svn" and "branches" were amongst them, but I don't really remember
[18:56] <exarkun> Am I supposed to be able to dpush a bzr branch to an svn branch?
[18:57] <lifeless> yes
[18:57] <lifeless> I think
[20:10] <sirex> Is it possible to have two completely differend branches for one project in launchpad?
[20:13] <sirex> now I getting this: http://ubuntu.pastebin.com/CzFNppBg
[20:32] <lifeless> sirex: it is if they ahve the same format
[20:32] <lifeless> sirex: the trunk is a very old format, it would benefit by being upgraded.
[20:34] <sirex> lifeless, after thirt push, there was no error and finnaly new separete branch was create...