/srv/irclogs.ubuntu.com/2011/07/16/#bzr.txt

terrycojonesdoes bzrlib.commands.Option let me have a command line option (e.g., --verbose) that results in a bool that's set according to whether --verbose is present on the command line or not?02:54
Kamping_Kaiserbzr dh-make --v3 appears to fail creating the debian/source/format file. is there a way i can 'resume' it after it bails, or do i hav to do the rest manually?10:02
Kamping_Kaiserhttp://paste.debian.net/123072/ is the output10:04
Kamping_Kaiser(yes, i should tidy up the tarball a bit... but not today)10:04
jelmerhey Kamping_Kaiser10:04
Kamping_Kaiserjelmer: hi :)10:05
Kamping_Kaiseron that same subject, i can pastebin bzr st or log if that helps too10:08
jelmerKamping_Kaiser, bzr st might be useful too10:09
jelmerit seems like it failed to create debian/source/format10:09
Kamping_Kaiserjelmer: http://paste.debian.net/123073/10:12
Kamping_Kaiserhttp://paste.debian.net/123074/ plugins -v if it helps too10:15
jelmerKamping_Kaiser, thanks10:18
Kamping_Kaisernp10:21
Kamping_Kaiserwonder if i should put in a bug :/11:24
InFerNo_I have setup bzr on my linux laptop with the explorer and created "feature branches"11:48
InFerNo_i have installed the explorer on my windows desktop, so the question is how I can connect to the repo11:48
InFerNo_D:11:49
mgzInFerNo_: how do you normally connect to your linux laptop from your windows desktop?12:01
mgzif the laptop runs an ssh server, you can branch over ssh12:01
InFerNo_IP12:01
InFerNo_well12:02
mgzas a fallback, you can always push the branch to somewhere on the net (eg lp:~yourusername/+junk/projectname), then pull from there12:02
InFerNo_how i usually connect is not really a good question, I think I can say I never really connect to the laptop, unless via samba and synergy :p12:02
mgzif the laptop can see the windows desktop's filesystem over samba, you should be able to just branch from the laptop to make a copy on the desktop12:04
InFerNo_so just copy the files over?12:06
InFerNo_I think I'm missing something12:06
mgzyou can do that, but using `bzr branch /src/... /dest/...` is better12:07
InFerNo_k, i'll look into that in an hour, i've got to mow my lawn :>12:07
mgzin this weather?12:08
InFerNo_it's "ok" here12:08
InFerNo_yeah it's windy that's all12:08
InFerNo_so i'm going to do it quickly before it does rain12:09
mgz:)12:09
InFerNo_meanwhile I found this: http://doc.bazaar.canonical.com/bzr-0.11/server.htm12:10
InFerNo_will read that through when I return12:11
InFerNo_I guess that's what I require?12:11
InFerNo_checkin/out remotely12:11
InFerNo_bbl12:11
brainwave92If i ask for a source at launchpad with bzr branch, it asks me passphrase to my private key . Is that normal?12:22
brainwave92Even for bzr log it asks me my private key12:22
brainwave92brainwave92> If i ask for a source at launchpad with bzr branch, it asks me passphrase to my private key . Is that normal?12:27
brainwave92<brainwave92> Even for bzr log it asks me my private key12:27
InFerNo_pfrt started raining before i could get the lawnmower out12:29
InFerNo_D:12:29
brainwave92InFerNo_, can you answer my question?12:30
InFerNo_I joined this channel 30 minutes before you to ask how I can remotely pull files12:31
InFerNo_so no.12:31
brainwave92i didnt get you...all i'm saying is, is launchpad supposed to ask my password when i use bzr branch?12:35
brainwave92cause the tutorials dont mention that step12:35
InFerNo_how do I upload my source to launchpad, I've created the project there12:54
InFerNo_from Windows that is12:55
InFerNo_not Linux12:55
brainwave92dude no ones listening here....i dunno why12:57
jelmerhi InFerNo_, brainwave9212:57
InFerNo_I've got time and they have lives?12:58
InFerNo_ll12:58
mgzbecause of lunch!12:58
InFerNo_lol12:58
InFerNo_don't sweat12:58
jelmerInFerNo_, see http://doc.bazaar.canonical.com/latest/en/tutorials/using_bazaar_with_launchpad.html12:58
mgzbrainwave92: if you have given bzr your lp login, it uses ssh to connect, hence asking for the key12:58
* jelmer waves to mgz12:58
mgzgenerally people run an ssh agent to avoid retyping the password all the time12:58
brainwave92mgz, so should i have it that way....?12:58
brainwave92i prefer typing the password....i feel secure12:59
InFerNo_I keep seeing this jelmer "login to launchpad like this:"12:59
InFerNo_then there's a command to enter12:59
InFerNo_windows 7 is what I'm using12:59
mgzbrainwave92: session locking is a better way of feeling secure12:59
brainwave92mgz, i am new to all this...can  you explain a bit?12:59
InFerNo_also, Bazaar Explorer12:59
mgz^hey jelmer :)12:59
mgzInFerNo_: you don't strictly need to run a bzr server if you have one of a large number of other ways of communicating over lan between the two machines13:00
mgzwhich is why I was asking you about that earlier13:00
jelmerInFerNo_: Have you tried running that command (I don't have much experience with bzr explorer)?13:00
mgzjelmer is a samba guru so may have opinions13:00
InFerNo_in the command prompt?13:01
InFerNo_will check13:01
InFerNo_mgz, I'm trying to setup a way to work with some people all around the world (literally)13:01
mgzbrainwave92: even if you retype your password all the time, someone walking up to your machine can still access your home dir, which is also likely to contain things you care about13:01
brainwave92mgz, home directory has my private keys stored in plaintext?13:02
mgzbrainwave92: so you may as well run an ssh agent, but get in the habit of always locking your session if you wander away13:02
mgzno, but it has various application caches and things like your browser passwords in plain text, and other private wotsits generally13:03
brainwave92mgz, so session locking is basically locking the comp? with screen lock?13:03
mgzInFerNo_: one of the easier ways of doing that is to host the branch on launchpad (or some other internet-accessible machine)13:04
mgz^yeah13:04
InFerNo_lol?13:04
InFerNo_hence my other questions ;)13:04
InFerNo_I'm getting there13:04
mgzInFerNo_: am I failing to keep up here? :)13:04
InFerNo_yes13:04
InFerNo_:D13:05
InFerNo_I have already registered with launchpad and created the project, I was just trying to get the files up there with Bazaar Explorer13:05
InFerNo_i'm trying the commands13:05
mgzplay around and yell again if you get stuck then13:07
InFerNo_C:\Windows>bzr launchpad-login infy.inferno. bzr wordt niet herkend als een interne of externe opdracht, programma of batchbestand.13:07
InFerNo_no go jelmer13:07
jelmerInFerNo_: ah, you're Dutch :)13:08
jelmerInFerNo_: I'm not really familiar enough with the windows installation to know where it installs13:08
dOxxxusually C:\Program Files\Bazaar13:09
mgzin bzr explorer, under Bazaar/All Commands... you can type in a command and run in there13:09
mgzthere doesn't seem to be an easier way from browsing around the config stuff confusingly...13:10
brainwave92dOxxx, the windows way...whole software more or less at one place. Just search na!13:10
InFerNo_got it13:10
dOxxxAlthough, I would have expected bzr to have been added to the PATH13:11
InFerNo_yes13:11
InFerNo_it asked and i allowed it13:11
dOxxxso, why (if my reading of dutch is accurate) is it saying it can't find bzr when you run it at the cmmandline?13:12
dOxxxwas the command prompt you used already open before you installed bzr?13:12
brainwave92dOxxx, i doubt if its bzr in windows is it?13:13
brainwave92it might be some other name13:13
dOxxxthe commandline tool in the windows install is bzr13:13
dOxxxI run Windows 713:13
mgzthats a good guess, dOxxx must be an expert in confusing windows situations13:14
mgzanyway, InFerNo_, have you got something pushed to launchpad yet?13:14
dOxxxcommand prompt windows don't see environment variable changes made by other apps after the prompt was opened13:14
dOxxxso if you install something that changes the environment, you have to close and re-open all your command prompt windows if you want them to see that change13:15
dOxxxit's pretty much the same as in Linux13:15
InFerNo_no mgz  :p13:15
dOxxxwhere are you stuck InFerNo_?13:16
InFerNo_I have a project locally13:16
InFerNo_I want it on launchpad so we can work on it together13:16
InFerNo_i've created the project there13:16
InFerNo_that's where i'm stuck13:16
InFerNo_to get the files on launchpad13:16
mgzokay, so inside the bzr explorer branch view13:16
InFerNo_and bzr isn't working from the command line apparantly13:16
InFerNo_yes13:17
mgzone of the buttons at the top is "push", it's a green arrown pointing upwards13:17
InFerNo_yes i pushed it13:17
InFerNo_it asks for the locaion13:17
InFerNo_location*13:17
mgzokay, so that you can find from the launchpad webpage for your project13:18
InFerNo_been looking around13:18
dOxxxwhat's your project name?13:18
mgzit's generally something like lp:projectname13:18
InFerNo_dday13:18
dOxxxso push to lp:dday13:19
InFerNo_error13:20
InFerNo_sec13:20
InFerNo_synergy isn't moving the clipboard13:20
InFerNo_bzr: ERROR: Invalid url supplied to transport: "bzr+ssh://bazaar.launchpad.net/+branch/dday": no supported schemes13:22
mgzhm, I've not actually started a project from scratch with launchpad, you may just need to do something on the website. <https://code.launchpad.net/dday> currently has a pointer to a help page.13:22
mgzah, ugh13:22
dOxxxhmm13:22
dOxxxwhat version of bzr do you have installed?13:22
InFerNo_2.3.313:23
mgzthat might be an ssh setup thing.13:23
InFerNo_in windows?13:23
mgzyou don't have a key registered with launchpad currently13:24
InFerNo_i see13:24
mgzthere's a help page for this...13:24
mgzhorrible error message though.13:24
mgzhttps://help.launchpad.net/Code/QuickStart13:25
mgzrefer to that as you go13:25
mgzwhere's the ssh guide...13:25
mgzhttps://help.launchpad.net/YourAccount/CreatingAnSSHKeyPair13:26
mgzyou can copy the key from your linux laptop (I'm betting you already have one there) to your windows machine if you like.13:27
InFerNo_invalid public key13:32
InFerNo_jezus christ lol13:32
InFerNo_I'll never get the main developer persuaded D:13:32
mgzthe help page links a question that may help you there.13:33
mgzssh setup is a one time cost that pretty much every developer needs to do, telnetting across the public net is just a bad idea13:34
InFerNo_bzr: ERROR: Connection error: Unable to authenticate to SSH host as  infy-inferno@bazaar.launchpad.net supported auth types: ['publickey']13:45
mgzokay, that's progress13:46
InFerNo_:)13:46
InFerNo_and i've gotten the command prompt to work if i do it straigt from the program files folder13:46
mgzso (this is the windows box right?), you probably either want to run pageant and load the key, or put the passphrase you used for the private key in a conf file (not generally sensible, but doesn't hurt for testing)13:49
InFerNo_ok13:50
mgzbzr explorer Settings/Credentials opens the right file for you, and add password=...13:50
mgz...is that right? I'm having doubts.13:51
InFerNo_Connected (version 2.0, client Twisted)13:52
InFerNo_bzr: ERROR: [Error 5] Toegang geweigerd: 'c:\\users\\win7\\appdata\\local\\temp\\tmplxzxnt.pag'13:52
mgzreally the launchpad help should cover this, I'm used to my own way of doing all this13:52
InFerNo_Toegang geweigerd = access denied13:52
InFerNo_i wasn't here if the launchpad help would've been clear13:52
mgzthe launchpad help mostly assumes you use ssh all the time anyway I think13:53
mgzit's not much good having a page on generating keys if it doesn't also tell you how to use them, or at least point you at the putty help13:54
mgzI guess step 6 is sort of it...13:54
InFerNo_idd13:54
mgzbut somehow you've got a file in temp that bazaar thinks it needs to access13:54
InFerNo_alright, it's pretty clear this is going nowhere, i've spent all afternoon13:55
InFerNo_any alternatives13:55
InFerNo_for easy collab?13:55
InFerNo_:p13:55
mgzbasically you and whoever else just need a common place to put things.13:56
InFerNo_and check if the file got changed13:56
mgzsomewhere you can ftp to and both have the password would be fine13:56
InFerNo_that's a hassle for things like this13:57
InFerNo_dday is a quake 2 mod13:57
mgzif you right click on the pageant icon in your taskbar and to view keys, do you see the key you gave launchpad?14:00
mgzI'm sure there must hae just been a slip up when you were following that ssh guide.14:02
mgzonce you get over that hump, the rest is easy.14:02
mgzalso, revert that config change I mentioned earlier if you did it.14:03
InFerNo_yes i added it to pageant mgz14:06
InFerNo_i'll revert it :)14:06
InFerNo_rebooting14:06
mgzokay.14:06
InFerNo_no go14:10
InFerNo_the files in the temp folder are created by pageant14:10
InFerNo_hence the .pag extension14:10
InFerNo_pagent off, ssh error, pageant on, can't read .pag file14:12
mgzcan you do from the command line `plink infy-inferno@bazaar.launchpad.net` and tell me what it prints?14:14
mgzplink can be found in the PuTTY dir whereever you installed it14:14
mgzso, eg, `cd "Program Files\PuTTY"` then run that command14:15
InFerNo_just a second, I was starting to give up on Windows so I'm trying it in linux and I've gotten further14:19
InFerNo_1 sec14:19
mgzit is easier on nix.14:19
InFerNo_bzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/%2Bbranch/dday/".14:19
mgzthaty's good.14:20
mgzwhat command did you run to get that?14:20
InFerNo_i did that in bazaar explorer :>14:20
mgzwith push?14:20
InFerNo_no14:20
InFerNo_with "Branch"14:20
InFerNo_good point14:21
mgzso, open your local branch, then push to lp:dday14:21
InFerNo_1 more thing14:22
InFerNo_to start a new repository14:22
InFerNo_what do I pick best14:22
mgzyou mean from explorer's "workspace model" options?14:23
InFerNo_Colocated branches, Feature branches, plain branch or shared repository14:23
InFerNo_I'm guess features..?14:23
mgzI think feature branches are least confusing14:23
mgzthe idea there, is when you want to work on a new idea, you create a new branch inside your shared repository, commit as you go, and only when you're done merge it into the trunk branch and push it up to launchpad14:24
InFerNo_alright no errors14:26
InFerNo_i think it's pushed14:26
InFerNo_:D14:26
InFerNo_yeah that's exactly what's needen mgz14:27
InFerNo_if i'm working on a jetpack, and he's working on a weapon we don't want to overwrite each other's changes14:27
mgzright.14:27
mgzand you can also be working on two things yourself locally, and not have either depend on finishing the other one first14:29
InFerNo_1 more quick question14:34
InFerNo_how do I give the current "version" a revision number?14:34
mgzyou can generally just use the number bazaar counts up for you, but to do a release or something you can tag a numbered revision with a name14:36
InFerNo_well, the current version number is at 505214:37
InFerNo_5.05214:37
mgzwell, how you name your versions yourself is mostly a matter of taste, but you can add a tag every time you bump that number14:39
mgzI wouldn't go overboard though, the revision numbers are often all you'll need, and they (mostly) just count up from 114:39
InFerNo_heh weird, on launchpad it says "this branch is empty"14:40
mgzdid you add files and commit in your local branch before pushing?14:41
mgzbzr explorer gives you a pretty good overview of the state of your branch14:41
InFerNo_yes they're there14:42
InFerNo_all the status' say unrevisioned14:42
InFerNo_that's why i asked14:43
InFerNo_got it14:44
InFerNo_something weird14:44
InFerNo_there's a dialog where are the files are selected14:45
InFerNo_deselected them all, pressed ok then reselected them all and pressed ok again, now it works14:45
InFerNo_site still says no files are up lol14:45
dOxxxwhen you initialized the branch in your working direcoty, did you "Add" the files and then "Commit" them?14:46
dOxxxonce you have done that, then Push to lp again14:47
InFerNo_yes14:47
InFerNo_"Working tree is up to date at revision 1."14:48
InFerNo_code.launchpad.net/dday says the tree is empty14:48
dOxxxI see the files14:48
dOxxxhttp://bazaar.launchpad.net/~infy-inferno/dday/trunk/files14:48
InFerNo_no i just did it again while i replied here :)14:48
dOxxxthe lp website may take a minute or two to update after you push stuff14:49
InFerNo_good to know14:49
InFerNo_alright14:49
InFerNo_thanks for all the help so far, I'm going to start fresh on the windows part, so I'll stick around14:49
InFerNo_works like a charm on XP14:56
InFerNo_heh14:56
InFerNo_trying again on 714:56
InFerNo_no go on 715:01
InFerNo_:/15:01
dOxxxwhat's the problem on 7?15:03
InFerNo_bzr: ERROR: [Error 5] Toegang geweigerd: 'c:\\users\\win7\\appdata\\local\\temp\\tmplxzxnt.pag'15:04
mgzsounds like pageant may be running as a different user to bzr or something to me.15:04
InFerNo_both started like normal15:04
mgztry that plink command I suggested earlier15:04
InFerNo_clicking the icon :')15:04
InFerNo_http://pastebin.com/VGsE58Sm mgz15:07
mgzwas that with pageant running and the key added?15:07
InFerNo_yes15:08
dOxxxso putty's tools themselves aren't seeing the pageant and its loaded keys15:08
InFerNo_apparantly15:09
dOxxxmay I suggst shutting down pageant and checking in task manager that there is no other pageant process?15:10
InFerNo_no other pageant process is running15:10
InFerNo_showing all users15:10
dOxxxthen restart pageant, add they key and try the plink test again15:10
InFerNo_C:\Users\win7\Downloads>plink infy-inferno@bazaar.launchpad.net15:12
InFerNo_Using username "infy-inferno".15:12
InFerNo_No shells on this server.15:12
dOxxxaha15:13
dOxxxok, try bzr now15:13
InFerNo_bzr: ERROR: [Error 5] Toegang geweigerd: 'c:\\users\\win7\\appdata\\local\\temp\\tmpjadhy0.pag'15:15
dOxxx...15:16
mgzmystery15:16
InFerNo_:sadpanda:15:16
mgzbut at least doing BZR_SSH=/path/to/plink should now work15:16
dOxxxInFerNo_: you're using bzr explorer, right?15:17
InFerNo_yes15:17
dOxxxok, set a system env variable called BZR_SSH to the path to the plink executable15:17
dOxxxand then restart bzr explorer15:17
InFerNo_created15:18
InFerNo_try to branch again?15:19
InFerNo_bzr: ERROR: Unrecognised value for BZR_SSH environment variable: BZR_SSH=C:\Users\win7\Downloads\plink.exe15:19
dOxxxhmmm15:20
dOxxxbleh. try setting it to just "plink" without the quotes15:21
dOxxxand make sure plink is in the system PATH15:21
mgzthat... shouldn't matter15:22
mgzis the path right? C:\Users\win7\Downloads\plink.exe doesn't seem likely15:22
mgzyou can test by typing %BZR_SSH% in a new command prompt, should give you the plink help15:23
InFerNo_not recognized15:24
InFerNo_the path is correct because I copied it15:24
mgzI'd double check.15:25
InFerNo_just did15:25
InFerNo_same15:25
mgzI'd expect it to be in "Programs" not "Downloads"15:25
InFerNo_can it be installed?15:25
dOxxxwell, putty is just a zip15:25
dOxxxnot an installer15:25
InFerNo_idd15:25
dOxxxso you can put it wherever15:25
InFerNo_and i've put it in downloads15:26
mgz...I remember having an installer.15:26
mgzyou might need to set a magic bit if you downloaded the exe straight and are trying to run it15:26
InFerNo_i found an installer and am running it15:26
InFerNo_variable BZR_SSH15:28
InFerNo_value BZR_SSH=C:\Program Files (x86)\PuTTY\plink.exe15:29
InFerNo_that's what it is now15:29
mgzthat should be fine.15:29
InFerNo_C:\Users\win7\Downloads>%BZR_SSH%15:30
InFerNo_%BZR_SSH% wordt niet herkend als een interne15:30
InFerNo_of externe opdracht, programma of batchbestand.15:30
InFerNo_aka not recognized15:30
dOxxxdon't put BZR_SSH= at the beginning of the value15:30
mgzah, whoops.15:30
InFerNo_changd15:30
mgzalso, "%BZR_SSH%" to test.15:30
InFerNo_still can't do %BZR_SSH%15:30
mgzbut bzr doesn't need it quoted.15:30
InFerNo_uknown command15:31
dOxxxremember to reopen your command prompt after you've changed the env variable15:31
InFerNo_it's tripping over the space15:32
InFerNo_got it15:33
InFerNo_works15:33
mgzyou need those quotes.15:33
mgzonly for the test.15:33
mgznow try bzr.15:33
InFerNo_there's light at the end of the tunnel15:35
InFerNo_it works15:36
InFerNo_\o/15:36
dOxxxyay!15:37
InFerNo_heavy stuff15:38
InFerNo_work instantly on XP15:38
InFerNo_worked*15:38
mgzyeah, I think windows 7 security model was causing you the problems there15:39
mgzit sort of quarenteens binaries downloaded from the net15:39
InFerNo_yeah probably15:40
InFerNo_my colleague said win7 was going to give us headaches15:40
InFerNo_I work at an IT department :/15:40
* jelmer waves19:33
=== yofel_ is now known as yofel
saedelaerehi20:55
lifelesshi20:56
InFerNo_hi20:56
saedelaereI currently did resetup my local bzr repo where I develop a project hosted on sourceforge. today I wanted to commit to the trunk branch and now I get some strange error messages. http://pastebin.com/iBi0tmBh20:57
saedelaerewhat is the problem there?20:57
saedelaereI was able to commit locally but not able to push the new revisions to the server.20:58
saedelaerenormally I was asked for a password but now I get this error message.20:58
lifelesswell the bzr:// protocol doesn't have built in authentication21:00
lifelessso probably you were using bzr+ssh before21:00
saedelaerelifeless, thank you for opening my eyes :) your hint was the key...21:07
lifelessde nada21:09
* saedelaere zzz21:25
mtaylorlifeless: hey!21:36
lifelesshiya21:36
LeoNerdI've finally got around to switching from sftp to bzr+ssh21:36
mtaylorlifeless: so ... one of the features I requested for a while is now in the tree and it's biting me in the ass :)21:36
LeoNerdPreviously my server was a celeron333, that was sufficiently slow to fork/exec/compile python that it was quicker to run the sftp server in the sshd itself.21:36
mtaylorlifeless: oh - wait - I may have discovered a sequence around it ...21:38
lifelessLeoNerd: yeah, if your server is low latency high bw sftp can be quite nice21:38
LeoNerdWhen I'm at home, the two are fairly similar. But I'm out on the wrong end of a GPRS connection enough times to justify bzr+ssh now21:39
mtaylorlifeless: ah - nope. it's still biting me.21:40
lifelessmtaylor: some more detail may help :P21:40
mtaylorlifeless: so - if I set bzr whoami and then do a branch from launchpad21:40
mtaylorlifeless: it "helpfully" sets launchpad-login for me (which normally I want)21:40
mtaylorexcept, in this case, it's happening on a jenkins slave, so I don't actually have a key ... HRM - *facepalm* - what if I set a whoami that doesn't match a launchpad user ...21:41
lifelessas far as I know those are unrelated21:41
mtaylorbzr branch lp:burrow /home/jenkins/workspace/burrow-tarball21:41
mtaylorSetting ssh/sftp usernames for launchpad.net.21:41
mtaylorlifeless: nope. it's even simpler - I was injecting too many lines in to a file21:43
mtaylorall my fault21:43
lifelesswin21:43
sblHi22:50
sblCould you help me with bazaar commit problems?22:50
sblWhen I try commit changes from my notebook I receive this error:22:53
sblbzr: ERROR: Cannot lock LockDir(ftp://username@host/remote/path/to/repo/.bzr/branch/lock): File exists: '/remote/path/to/repo/.bzr/branch/lock/vez6vu0c2n.tmp': 550 /remote/path/to/repo/.bzr/branch/lock/vez6vu0c2n.tmp: Permission denied22:53
sblAny ideas?22:54
sblIn this localization file: vez6vu0c2n.tmp doesn't exist.22:54
sblI use TortoiseBazaar from Windows.22:54

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