/srv/irclogs.ubuntu.com/2012/11/08/#bzr.txt

mgzmorning!09:05
mira|AOmoien09:05
lolekhello all09:48
mgrandihello09:48
loleki'm looking for some documentation about, how to supply username aand login for bzr-svn ?09:49
mgrandito access a svn server?09:49
lolekyes09:49
mgrandiim not an expert on bzr-svn, im not sure if you can do that09:50
mgrandibut i may be wrong09:50
lolekwell, the problem is that from the error stack trace it seems that bzr is using my system login, and system password09:50
lolekso there must be some way to use another one09:51
mgrandihmm.09:51
mgrandihttp://stackoverflow.com/questions/3166189/how-to-save-subversion-password-with-bzr-svn09:52
mgrandimaybe authentication.conf?09:53
lolekok09:53
loleknext question, where authentication.conf should be placed cause i don't have that file in: ~/.bazaar09:53
mgrandipretty sure in ~/.bazaar09:54
mgrandihttp://doc.bazaar.canonical.com/developers/authentication-ring.html#file-format09:55
lolekok and how can i force bzr to use that file, cause it's ... not using it :/09:58
mgrandiwell it should, are you sure the host is the same in the conf and the host you are connecting to?09:59
lolekyes09:59
mgrandiare yo using the latest version of bzr-svn?10:00
lolekVersion: 1.2.1-110:01
lolekok, that's weird10:02
lolekwith qbzr it's asking me for a password, but still using the wrong login :/10:02
mgrandihmm, i feel like its something silly but im not the expert10:02
mgrandijelmer, are you here :o10:02
mira|AOit's easier to just use ssh keys10:04
lolekyes i agree, but i don't have that option10:04
loleki can only use svn providing login and password10:05
loleknothing more10:05
mira|AOthe username's normally in the URL10:05
mira|AOfor svn10:05
mgrandibzr branch <scheme>://<user>:<password>@host:port/path10:05
lolekok, that's working10:06
lolekbut i'd like to stre it's in authentication.conf10:06
lolekit should be working10:06
mgrandiyeah, not sure why its not working with that file10:06
=== ccxCZ- is now known as ccxCZ
LarstiQlolek: if you login with plain 'svn', svn should cache that and bzr-svn will pick up on it, iirc11:38
=== mmrazik is now known as mmrazik|lunch
lolekLarstiQ: hmm ok, i've read about that, but the problem is that i don't use plain svn login, i do login only from inside eclipse with svn plugin11:39
LarstiQlolek: you could try logging in once, as a workaround?11:43
LarstiQusing something like `svn info` to not do actual work11:43
LarstiQor much of it anyway11:43
lolekhmm11:43
lolekLarstiQ: ok, i've tried11:48
lolekand it seems that it gets login from cache11:49
lolekbut it have some problem with password11:49
lolekLarstiQ: look here: http://pastebin.com/e2pJb3qR11:51
lolekpassword contains only ascii characters11:51
LarstiQlolek: heuh11:54
lolek:D11:54
loleki knew you'd love this :D11:54
LarstiQlolek: next thing I'd do is maybe check bzr/bzr-svn versions and/or see if there any similar bugs on launchpad12:00
* LarstiQ prepares for his Galois Theory course12:00
=== mmrazik|lunch is now known as mmrazik
mgrandiits not necessarily because you have invalid characters, its just a python 8 bit string vs a unicode string12:03
mira|AOoh yes, python, the only modern language with a default 7-bit safe string type12:05
mira|AOand py3k doesn't improve on it12:05
mgrandipython3 strings are unicode12:05
mgrandiby default12:05
mira|AOthat doesn't mean you can print them :D12:05
mgrandithats not python's fault12:05
mira|AOthat's a matter of opinion12:06
mgrandii cant print weird strings on windows cause the console is CP1257 or whatever12:06
mgrandiand you can't convert it12:06
mgrandihow would you print the character if the character encoding its outputting doens't have said character?12:06
mira|AOby defaulting to a reasonable encoding12:06
mira|AO(even on windows, since 1991 the console can do Unicode)12:07
mgrandiwindows doesn't have a 'reasonable' encoding haha12:07
mgrandican it? ive had this problem on other languages12:07
mgrandiwhat encoding type is that12:07
mira|AOyeah, just use the API with a W on the end12:07
mira|AOUTF-2LE12:07
mira|AOerm no12:07
mira|AOUCS-2LE12:07
mgrandii mean the windows..encoding12:07
mira|AOso, just the BMP, normally12:07
mgrandior what codepage is it12:08
mira|AOyou've got two APIS with, in the case of the console, three encodings12:08
mgrandithats what the console uses12:08
mira|AOone is the API with the A at the end, which uses the "ANSI" encoding (often cp1252)12:08
mira|AOthen there's the OEM encoding (often cp437 or cp850)12:08
mira|AOthen there's the API with the W at the end, which uses UCS-2LE12:08
mira|AOcodepages map between A and W12:08
lolekok guys guys guys12:09
lolekthere are no character outside the standard ascii12:09
lolekin my password12:09
lolekso this is weird why it's complaining about.. unicode12:09
mgrandibecause the object itself is not a unicode object12:10
mgrandiaka a bug or something else is going wrong12:10
mira|AO   I set up the cmd window to use Lucida Console font (and you should do it too, otherwise any attempt12:10
mira|AO   to see Unicode characters in it is bound to fail!). I realized that it is possible to print wide12:10
mira|AO   strings directly to the console using functions from conio.h (_cputts, _tcprintf, etc.). Very nice!12:10
mira|AOlike that, it can work12:10
mgrandiive tried that but it still doesn't work12:11
mgrandiand python should see the default code page and adjust to it12:11
mgrandiwhat code page do you change it to?12:11
mgrandinever mind, apparently it doesn't matter? (windows encoding sounds like a cluster****)12:12
mira|AOWriteConsoleW also would work12:13
mgrandithat does seem to work12:15
mgrandibut i dont think that its still python's problem, since you fix it when you change fonts on cmd.exe, nothing on python changes12:15
mira|AOAUF DROGEN ODER WAS?12:16
mira|AOoops12:16
mira|AOsorry, just found some… disgusting code12:17
mira|AOand forgot I had /query on12:17
mgrandilike, in "terminal" font, the same python session, gives me12:17
mgrandi'garbled characters12:17
w7zlolek: the get_svn_simple callsite in bzr-svn is misusing the bzr ui, by passing a str not a unicode type12:22
w7zbut the point is you don't want it prompting for a password right? I suspect you have your creds wrong so it's falling back to asking you again.12:23
w7zlolek: `bzr version` will tell you where to put authentication.conf and check .bzr.log after connecting to see if it works12:27
w7zI'd avoid putting the username and password in the url12:27
lolekhmm12:32
lolekw7z: well i see in the log that it's using the proper login... but i don't see anywhere in bzr.log that it's reading authentication.conf12:37
w7z...does it say it connects and does stuff? if so, problem solved, right?12:37
lolekit's : Obtaining username and password for SVN connection (see only login) and then the error: http://pastebin.com/e2pJb3qR12:38
w7zokay, so it's not getting the values from the conf file then.12:38
lolekuhm12:39
lolekbut the question is... why ?12:39
lolekof course if i put login/password into url it's working ok12:39
w7zpaste your conf with the password xxxed out?12:40
lolekk12:40
lolekhttp://pastebin.com/MxwVkTDi12:41
w7zlooks okay, maybe bzr-svn just doesn't check12:45
w7zfile a bug against bzr-svn with your traceback and I'll put up a branch that fixes it12:46
* mira|AO eyes “branch that fixes”12:46
w7zjelmer or vila might know more about svn/auth specifics12:47
lolekok, where do you want me to fill a bug ?12:48
w7zbugs.launchpad.net/bzr-svn12:49
lolekw7z: https://bugs.launchpad.net/bzr-svn/+bug/45212112:51
ubot5Ubuntu bug 452121 in Bazaar Subversion Plugin "Putting svn password in authentication.conf doesn't work" [Undecided,Fix released]12:51
lolekhmm12:51
lolekhttps://bugs.launchpad.net/ubuntu/+source/bzr-svn/+bug/532292 <- similar12:52
ubot5Ubuntu bug 532292 in Bazaar Subversion Plugin "Doesn't get user/password details from authentication.conf" [Medium,Fix released]12:52
loleklol12:52
lolekmaybe i should wait for new bzr-svn version ?12:52
w7zno, different bug12:52
w7zbut, you should be able to put the details in the config file and have it work12:52
w7zthe prompt should not happen at all if it can get the values from your config12:53
w7zdo you only get prompted for the password, or did you type something else in first?12:56
vilaw7z: sorry, my memory is fuzzy on that topic. The most common answer I remember is: connect with svn first as it will cache the credentials and bzr-svn can then rely on that13:05
vilai.e. auth.conf is not used13:05
lolekw7z: erm... i don't have any prompt13:07
lolekw7z: i just do: bzr update and i get this error13:07
lolekno prompt for password13:07
* jelmer waves13:10
vilaI'm not sure 'svn' is a valid scheme though (jelmer ?)13:10
vila(for auth.conf that is)13:10
jelmerI don't think I've ever seen (or tested) authentication over svn://13:11
jelmerI don't see why it shouldn't work, but I don't think I've ever tested it.13:12
jelmerlolek: ^13:12
loleklol :)13:13
lolekthat would explain the problem :)13:13
jelmerlolek: It shouldn't really be different from http/https though, and those *do* work13:14
jelmerI aguely recall there were some issues with the authentication interface being inconsistent about whether it expected unicode or byte strings, perhaps that's related.13:14
jelmer*vaguely13:14
jelmerwhat versions of bzr/bzr-svn are these?13:14
lolekbzr: Version: 2.5.0-2ubuntu213:20
lolekbzr-svn: Version: 1.2.1-113:20
w7zlolek: okay, can you try a few debug things for me?13:54
lolekw7z: i'll do my best13:54
w7z#1: with your authentication.conf in place, run `bzr -Dauth branch svn://YOURDETAILS` and look in .bzr.log for a "Using authentication section" line13:55
lolekok,13:58
lolekthe is not such: Using authentication section in the bzr.log13:59
w7zokay, so that's straight up not being matched14:00
w7zso, either there's a bug in how bzr-svn uses AuthenticationConfig, or you have the conf file in the wrong place, or the details don't match up14:01
w7ztry adding a section that's just [something] with a username and password set underneath, then branch any (non svn) url with that -Dauth flag and see if that message then appears14:02
w7zwithout scheme/host/port/path it should match anything14:03
lolekok, give me a second14:03
w7zalso, you still need to file the bzr-svn bug with your traceback? I don't see it.14:04
lolekok, that's working14:04
lolekwhen i placed: [something] with only user/pass it was working14:05
lolekok, i'll fill it up :)14:05
w7zand you got the line in .bzr.log?14:06
w7zdid you try branching your svn thing, or another random branch?14:06
lolekyes there is line: using authentication section :  'something'14:06
w7zI wonder if just the scheme matching is broken or something14:06
loleki tried to branch svn thing14:07
w7zokay, so, try adding back in the host, then the port, then finally the scheme14:07
lolekok14:07
w7zsee which one makes it break again14:07
lolekgive me a minute14:07
lolekit's ... port directive14:09
w7zfun...14:09
lolekyeah14:10
w7zso, with the scheme and the host it works, but plus port then doesn't?14:10
lolekwhen i added port=... it goes with the error  (pass is not unicode..)14:10
lolekcorrect14:10
w7zgreat, I can imagine the bug now14:10
w7z"3690" != 3690 I bet14:11
lolekhmm14:12
lolekok, give me second14:12
w7zso, for you right now, just omitting the port is fine14:12
w7zbut can I request two bug reports from you14:12
w7zone for the password traceback against bzr-svn14:12
w7zand one against bzr for the autentication.conf section not matching when you supply a port14:13
lolekbut the password traceback is only visible when the port directive is given14:13
lolekthere is no problem if there is no port directive :)14:13
lolekaaa ok14:13
loleki understand, ok14:13
lolekhttps://bugs.launchpad.net/bzr-svn/+bug/107638614:15
lolekhere14:16
ubot5Ubuntu bug 1076386 in Bazaar Subversion Plugin "bzr-svn password is not a unicode string when given port directive" [Undecided,New]14:16
lolekhttps://bugs.launchpad.net/bzr-svn/+bug/107638814:21
ubot5Ubuntu bug 1076388 in Bazaar Subversion Plugin "bzr-svn authentication.conf is not readed when port directive is given" [Undecided,New]14:21
w7zthanks lolek!14:31
lolekyou welcome :)14:31
lolekok, i'm going... bye :)14:33
lolekthx for helping me out :)14:33
jetsaredimis it possible to create a branch based on the tree of a certain release of a given package?15:40
jetsaredimlike - i want to try to fix something in a quantal package but there is already a raring version of the same15:41
jetsaredimso i'm assuming if i just branch the project it will give me the raring version15:41
mgzyou can branch lp:ubuntu/SERIES/PROJECT instead of lp:ubuntu/PROJECT15:48
jetsaredimi seem to be getting an error with bzr15:49
jetsaredimhttp://paste.ubuntu.com/1342817/15:50
mgzjetsaredim: you don't have ssh configured correctly or haven't given launchpad the right ssh key15:52
mgzuse `ssh -vv YOURLPUSERNAME@bazaar.launchpad.net` to debug, it's not a bzr related problem15:52
jetsaredimmgz: this would be the key I uploaded to launchpad vs my gpg key locally?15:53
mgzjetsaredim: this is your ssh key, from ~/.ssh, which is a different thing from your gpg key. see https://help.launchpad.net pages for walkthrough15:55
jetsaredimahh - much better15:57
jetsaredimso - once i download the release-based tree for a given package i can then branch it locally for my own changes?15:59
w7zjetsaredim: see <http://developer.ubuntu.com/packaging/html/patches-to-packages.html> for details16:00
w7zbe a little careful with terms 'tree' and 'branch', they mean specific things for bzr, <http://doc.bazaar.canonical.com/bzr.dev/en/user-guide/core_concepts.html>16:01
w7zalso you need to go through the SRU process for quantal, so might want to check in #ubuntu whether the change you're planning is suitable for that, see <http://developer.ubuntu.com/packaging/html/security-and-stable-release-updates.html>16:04
jetsaredimw7z: its a pretty simple change to the build config16:04
jetsaredimand its already in raring16:05
w7zthat doesn't sound security or serious data loss related16:05
jetsaredimthe package is broken for certain functionality due to a config option not being set16:06
w7zjetsaredim: try asking in #ubuntu-devel16:08
delinquentmeis there some reason that I need to pass a --no-strict .. to push to a parent when I've got locally uncommitted changes?16:22
=== deryck is now known as deryck[lunch]
=== deryck[lunch] is now known as deryck
=== yofel_ is now known as yofel
mathrickhmm, I have a colocated project created on windows, which I just zipped and unpacked on linux21:15
mathrickand I can't get it to work, since it can't find the repo/branches with differing absolute paths21:16
mathrickhttp://pastebin.com/JwMDwvpK21:17
mathrickhow do I fix it?21:17

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