[09:05] morning! [09:05] moien [09:48] hello all [09:48] hello [09:49] i'm looking for some documentation about, how to supply username aand login for bzr-svn ? [09:49] to access a svn server? [09:49] yes [09:50] im not an expert on bzr-svn, im not sure if you can do that [09:50] but i may be wrong [09:50] well, the problem is that from the error stack trace it seems that bzr is using my system login, and system password [09:51] so there must be some way to use another one [09:51] hmm. [09:52] http://stackoverflow.com/questions/3166189/how-to-save-subversion-password-with-bzr-svn [09:53] maybe authentication.conf? [09:53] ok [09:53] next question, where authentication.conf should be placed cause i don't have that file in: ~/.bazaar [09:54] pretty sure in ~/.bazaar [09:55] http://doc.bazaar.canonical.com/developers/authentication-ring.html#file-format [09:58] ok and how can i force bzr to use that file, cause it's ... not using it :/ [09:59] well it should, are you sure the host is the same in the conf and the host you are connecting to? [09:59] yes [10:00] are yo using the latest version of bzr-svn? [10:01] Version: 1.2.1-1 [10:02] ok, that's weird [10:02] with qbzr it's asking me for a password, but still using the wrong login :/ [10:02] hmm, i feel like its something silly but im not the expert [10:02] jelmer, are you here :o [10:04] it's easier to just use ssh keys [10:04] yes i agree, but i don't have that option [10:05] i can only use svn providing login and password [10:05] nothing more [10:05] the username's normally in the URL [10:05] for svn [10:05] bzr branch ://:@host:port/path [10:06] ok, that's working [10:06] but i'd like to stre it's in authentication.conf [10:06] it should be working [10:06] yeah, not sure why its not working with that file === ccxCZ- is now known as ccxCZ [11:38] lolek: if you login with plain 'svn', svn should cache that and bzr-svn will pick up on it, iirc === mmrazik is now known as mmrazik|lunch [11:39] LarstiQ: 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 plugin [11:43] lolek: you could try logging in once, as a workaround? [11:43] using something like `svn info` to not do actual work [11:43] or much of it anyway [11:43] hmm [11:48] LarstiQ: ok, i've tried [11:49] and it seems that it gets login from cache [11:49] but it have some problem with password [11:51] LarstiQ: look here: http://pastebin.com/e2pJb3qR [11:51] password contains only ascii characters [11:54] lolek: heuh [11:54] :D [11:54] i knew you'd love this :D [12:00] lolek: next thing I'd do is maybe check bzr/bzr-svn versions and/or see if there any similar bugs on launchpad [12:00] * LarstiQ prepares for his Galois Theory course === mmrazik|lunch is now known as mmrazik [12:03] its not necessarily because you have invalid characters, its just a python 8 bit string vs a unicode string [12:05] oh yes, python, the only modern language with a default 7-bit safe string type [12:05] and py3k doesn't improve on it [12:05] python3 strings are unicode [12:05] by default [12:05] that doesn't mean you can print them :D [12:05] thats not python's fault [12:06] that's a matter of opinion [12:06] i cant print weird strings on windows cause the console is CP1257 or whatever [12:06] and you can't convert it [12:06] how would you print the character if the character encoding its outputting doens't have said character? [12:06] by defaulting to a reasonable encoding [12:07] (even on windows, since 1991 the console can do Unicode) [12:07] windows doesn't have a 'reasonable' encoding haha [12:07] can it? ive had this problem on other languages [12:07] what encoding type is that [12:07] yeah, just use the API with a W on the end [12:07] UTF-2LE [12:07] erm no [12:07] UCS-2LE [12:07] i mean the windows..encoding [12:07] so, just the BMP, normally [12:08] or what codepage is it [12:08] you've got two APIS with, in the case of the console, three encodings [12:08] thats what the console uses [12:08] one is the API with the A at the end, which uses the "ANSI" encoding (often cp1252) [12:08] then there's the OEM encoding (often cp437 or cp850) [12:08] then there's the API with the W at the end, which uses UCS-2LE [12:08] codepages map between A and W [12:09] ok guys guys guys [12:09] there are no character outside the standard ascii [12:09] in my password [12:09] so this is weird why it's complaining about.. unicode [12:10] because the object itself is not a unicode object [12:10] aka a bug or something else is going wrong [12:10] I set up the cmd window to use Lucida Console font (and you should do it too, otherwise any attempt [12:10] to see Unicode characters in it is bound to fail!). I realized that it is possible to print wide [12:10] strings directly to the console using functions from conio.h (_cputts, _tcprintf, etc.). Very nice! [12:10] like that, it can work [12:11] ive tried that but it still doesn't work [12:11] and python should see the default code page and adjust to it [12:11] what code page do you change it to? [12:12] never mind, apparently it doesn't matter? (windows encoding sounds like a cluster****) [12:13] WriteConsoleW also would work [12:15] that does seem to work [12:15] but i dont think that its still python's problem, since you fix it when you change fonts on cmd.exe, nothing on python changes [12:16] AUF DROGEN ODER WAS? [12:16] oops [12:17] sorry, just found some… disgusting code [12:17] and forgot I had /query on [12:17] like, in "terminal" font, the same python session, gives me [12:17] 'garbled characters [12:22] lolek: the get_svn_simple callsite in bzr-svn is misusing the bzr ui, by passing a str not a unicode type [12:23] but 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:27] lolek: `bzr version` will tell you where to put authentication.conf and check .bzr.log after connecting to see if it works [12:27] I'd avoid putting the username and password in the url [12:32] hmm [12:37] w7z: 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.conf [12:37] ...does it say it connects and does stuff? if so, problem solved, right? [12:38] it's : Obtaining username and password for SVN connection (see only login) and then the error: http://pastebin.com/e2pJb3qR [12:38] okay, so it's not getting the values from the conf file then. [12:39] uhm [12:39] but the question is... why ? [12:39] of course if i put login/password into url it's working ok [12:40] paste your conf with the password xxxed out? [12:40] k [12:41] http://pastebin.com/MxwVkTDi [12:45] looks okay, maybe bzr-svn just doesn't check [12:46] file a bug against bzr-svn with your traceback and I'll put up a branch that fixes it [12:46] * mira|AO eyes “branch that fixes” [12:47] jelmer or vila might know more about svn/auth specifics [12:48] ok, where do you want me to fill a bug ? [12:49] bugs.launchpad.net/bzr-svn [12:51] w7z: https://bugs.launchpad.net/bzr-svn/+bug/452121 [12:51] Ubuntu bug 452121 in Bazaar Subversion Plugin "Putting svn password in authentication.conf doesn't work" [Undecided,Fix released] [12:51] hmm [12:52] https://bugs.launchpad.net/ubuntu/+source/bzr-svn/+bug/532292 <- similar [12:52] Ubuntu bug 532292 in Bazaar Subversion Plugin "Doesn't get user/password details from authentication.conf" [Medium,Fix released] [12:52] lol [12:52] maybe i should wait for new bzr-svn version ? [12:52] no, different bug [12:52] but, you should be able to put the details in the config file and have it work [12:53] the prompt should not happen at all if it can get the values from your config [12:56] do you only get prompted for the password, or did you type something else in first? [13:05] w7z: 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 that [13:05] i.e. auth.conf is not used [13:07] w7z: erm... i don't have any prompt [13:07] w7z: i just do: bzr update and i get this error [13:07] no prompt for password [13:10] * jelmer waves [13:10] I'm not sure 'svn' is a valid scheme though (jelmer ?) [13:10] (for auth.conf that is) [13:11] I don't think I've ever seen (or tested) authentication over svn:// [13:12] I don't see why it shouldn't work, but I don't think I've ever tested it. [13:12] lolek: ^ [13:13] lol :) [13:13] that would explain the problem :) [13:14] lolek: It shouldn't really be different from http/https though, and those *do* work [13:14] I 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] *vaguely [13:14] what versions of bzr/bzr-svn are these? [13:20] bzr: Version: 2.5.0-2ubuntu2 [13:20] bzr-svn: Version: 1.2.1-1 [13:54] lolek: okay, can you try a few debug things for me? [13:54] w7z: i'll do my best [13:55] #1: with your authentication.conf in place, run `bzr -Dauth branch svn://YOURDETAILS` and look in .bzr.log for a "Using authentication section" line [13:58] ok, [13:59] the is not such: Using authentication section in the bzr.log [14:00] okay, so that's straight up not being matched [14:01] so, 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 up [14:02] try 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 appears [14:03] without scheme/host/port/path it should match anything [14:03] ok, give me a second [14:04] also, you still need to file the bzr-svn bug with your traceback? I don't see it. [14:04] ok, that's working [14:05] when i placed: [something] with only user/pass it was working [14:05] ok, i'll fill it up :) [14:06] and you got the line in .bzr.log? [14:06] did you try branching your svn thing, or another random branch? [14:06] yes there is line: using authentication section : 'something' [14:06] I wonder if just the scheme matching is broken or something [14:07] i tried to branch svn thing [14:07] okay, so, try adding back in the host, then the port, then finally the scheme [14:07] ok [14:07] see which one makes it break again [14:07] give me a minute [14:09] it's ... port directive [14:09] fun... [14:10] yeah [14:10] so, with the scheme and the host it works, but plus port then doesn't? [14:10] when i added port=... it goes with the error (pass is not unicode..) [14:10] correct [14:10] great, I can imagine the bug now [14:11] "3690" != 3690 I bet [14:12] hmm [14:12] ok, give me second [14:12] so, for you right now, just omitting the port is fine [14:12] but can I request two bug reports from you [14:12] one for the password traceback against bzr-svn [14:13] and one against bzr for the autentication.conf section not matching when you supply a port [14:13] but the password traceback is only visible when the port directive is given [14:13] there is no problem if there is no port directive :) [14:13] aaa ok [14:13] i understand, ok [14:15] https://bugs.launchpad.net/bzr-svn/+bug/1076386 [14:16] here [14:16] Ubuntu bug 1076386 in Bazaar Subversion Plugin "bzr-svn password is not a unicode string when given port directive" [Undecided,New] [14:21] https://bugs.launchpad.net/bzr-svn/+bug/1076388 [14:21] Ubuntu bug 1076388 in Bazaar Subversion Plugin "bzr-svn authentication.conf is not readed when port directive is given" [Undecided,New] [14:31] thanks lolek! [14:31] you welcome :) [14:33] ok, i'm going... bye :) [14:33] thx for helping me out :) [15:40] is it possible to create a branch based on the tree of a certain release of a given package? [15:41] like - i want to try to fix something in a quantal package but there is already a raring version of the same [15:41] so i'm assuming if i just branch the project it will give me the raring version [15:48] you can branch lp:ubuntu/SERIES/PROJECT instead of lp:ubuntu/PROJECT [15:49] i seem to be getting an error with bzr [15:50] http://paste.ubuntu.com/1342817/ [15:52] jetsaredim: you don't have ssh configured correctly or haven't given launchpad the right ssh key [15:52] use `ssh -vv YOURLPUSERNAME@bazaar.launchpad.net` to debug, it's not a bzr related problem [15:53] mgz: this would be the key I uploaded to launchpad vs my gpg key locally? [15:55] jetsaredim: this is your ssh key, from ~/.ssh, which is a different thing from your gpg key. see https://help.launchpad.net pages for walkthrough [15:57] ahh - much better [15:59] so - once i download the release-based tree for a given package i can then branch it locally for my own changes? [16:00] jetsaredim: see for details [16:01] be a little careful with terms 'tree' and 'branch', they mean specific things for bzr, [16:04] also 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 [16:04] w7z: its a pretty simple change to the build config [16:05] and its already in raring [16:05] that doesn't sound security or serious data loss related [16:06] the package is broken for certain functionality due to a config option not being set [16:08] jetsaredim: try asking in #ubuntu-devel [16:22] is there some reason that I need to pass a --no-strict .. to push to a parent when I've got locally uncommitted changes? === deryck is now known as deryck[lunch] === deryck[lunch] is now known as deryck === yofel_ is now known as yofel [21:15] hmm, I have a colocated project created on windows, which I just zipped and unpacked on linux [21:16] and I can't get it to work, since it can't find the repo/branches with differing absolute paths [21:17] http://pastebin.com/JwMDwvpK [21:17] how do I fix it?