=== mw is now known as mw|out [02:38] Hi bzr people! Can somebody please tell me how to do a partial commit in bzr? [02:39] If I were using git, I would do "git add -p". [02:39] toojays, just specify the path [02:39] Can bzr do something like this? [02:39] toojays, bzr commit [02:39] jelmer: The changes I want to commit separately are in the same file. [02:40] One set of changes I will want to merge to another branch, one set I will not. [02:40] But they are in the same file. [02:40] ah, you'd like bzr to prompt you about each chunk of changes? [02:41] Yeah, I guess that's the only UI I know of to do what I want. [02:41] I think somebody wrote a plugin... bzr record or something. [02:42] You could also use shelve to set aside the bits you don't want, commit, then bring them back. [02:42] Shelve . . . yeah, that sounds like a workaround I could use. [02:43] This makes me think . . . is there a page for people coming to bzr from other dvcs systems, which compares how to do similar operations? [02:43] I have been using git a lot at work, but am using bzr at home . . . so I'm pretty fluent with git, but have only been doing "easy" stuff with bzr so far. [02:44] Well... the people wanting that particular thing are usually the darcs people ;) [02:44] Hence 'record'. [02:45] Ah, 'interactive'. Renamed post-loom, I guess. [02:45] https://launchpad.net/bzr-interactive [02:47] fullermd: thanks, that sounds like it will do what I want. [04:23] jelmer: bzr-svn is still reporting as '0.4.13dev0' - is that likely to change for a 1.7 release? === sdboyAAAAAR is now known as sdboyer [05:31] hi. I am pretty new to bazar. Mini tuts on website show command line way of doing things. Do we have any UI or shell hooks like SVN for bazar ? [05:37] for windows or linux? [05:37] there's a few in progress [05:37] check the website [05:38] there's TortoiseBZR in progress, specifically for windows [05:38] planetcalls: if you are on windows, try the 1.7rc2 build rather than 1.6 - the GUI stuff is much more polished there. [05:39] there you go -- straight from the source :-) [05:39] :) [05:40] markh, thanks. From the examples and documents it seems as if bazar is having only the command based binaries. [05:40] planetcalls: its very much a current work in progress, so the examples and docs lag a little still [05:41] planetcalls: but that also means it is so new that there are issues and things not implemented. It is no where near as mature as TortoiseSVN yet. [05:41] its functional though [05:42] yea that is obvious. I am not going to give up Tortoise anytime soon but wanted to give distributed vcs a try [05:44] just found TortoiseBzr....sounds it would be easier to adopt bazar in near future [05:50] planetcalls: yeah, the most recent TortoiseBzr is in the bzr 1.7rc2 binary on launchpad [05:51] planetcalls: but it also includes a plugin which allows you to use a GUI from the command line - eg, "bzr qci" will show a graphical version of "bzr ci" - ie, to do a checkin [05:52] ok thanks......now downloading [05:56] <_zou> after command "bzr update", I got following messages: [05:56] <_zou> Unable to obtain lock file:///cygdrive/d/work/OpenSrc/gnash_bazaar/trunk/.bzr/branch/lock [05:57] <_zou> locked 37 hours, 51 minutes ago [05:57] <_zou> Will continue to try until 13:00:39 [05:58] <_zou> anyone knows how to solve this? [06:01] _zou: 'bzr break-lock' [06:02] _zou: but you should probably also upgrade your bzr to a non-cygwin one - one of the 1.6 or 1.7 binaries would be good. [06:02] <_zou> thanks, trying now. [06:02] <_zou> does it work on windows? [06:03] <_zou> 'bzr break-lock' works, update again now. [06:06] _zou: yeah, 1.6 and 1.7 builds for windows are looking good. [06:06] if that is what you were asking :) [06:07] <_zou> thanks, I'll try it later. [06:08] <_zou> 'bzr update' [06:09] <_zou> now it prints '/ 0/0', and no progress. [06:10] <_zou> is there anyway that I can check if the connection is successful? [06:10] <_zou> connection to bzr server. [06:12] <_zou> no timeout message, no error message, 'bzr update' just stalled. [06:19] _zou: it can sometimes appear to do that. Check .bzr.log and you might see activity [06:19] in your "my documents" folder [06:20] but let it go - the problem is in the progress reporting rather than anything more serious [06:21] I actually opened a bug on that - it mentions the 'branch' command but I think its the same - bug 264615 [06:21] Launchpad bug 264615 in bzr "progress bar for pull does nothing until near completion" [Medium,Triaged] https://launchpad.net/bugs/264615 [06:22] (oops - mentions 'pull' :) [06:23] <_zou> markh: yes, I found the file under "my documents", but no message for today. [06:23] <_zou> There are some old messages. [06:23] hrmph [06:24] 'up -v' might help - but I'd let it go in the hope it actually working [06:24] obviously not forever, but many minutes isn't unusual if there are many revisions to pull. [06:33] <_zou> I wait a whole morning last time, still no progress or unfinished. Then I used "ctrl + C" to break the command. That's why I need the 'bzr break-lock' command today. [06:33] <_zou> yes, there are many revisions. [06:33] <_zou> I haven't update for a long time. [06:37] hrm - 'up -v' might give some insight, but it might not :( if its connecting via ssh it might be strangeness related to that somehow === beaumonta is now known as abeaumont [08:33] <_zou> markh: "bzr up -v" also printed "- 0/0" and stalled here. Thanks anyway, might be a network problem here. [08:49] hi [08:50] hello [08:50] chich change is needed so that I get a file called 'TREE_ROOT' in iter_changes? [08:50] s/chich/which/ [08:56] I see that the empty path has the id TREE_ROOT, but how to make a change to the empty path that is tracked using bzr? [08:58] you don't, i think [09:00] mwhudson: so why bzr.dev has such changes? [09:00] maybe i think wrong then :) [09:00] but bzr.dev has a long and rather more ... eccentric ... history than most branches [09:00] (like having a revision with revid "A") [09:01] Leonidas: i guess you can look at the revisions in bzr.dev that appear to modify TREE_ROOT, right? [09:02] mwhudson: I currently don't know how to do it, but hmm, that is probably the way to go. [09:03] there is a way to find "all revisions touching a file" [09:03] i forget what it is though, i guess read the log code [09:03] mwhudson: the point is, if I can process bzr.dev properly, I shouldn't have any problem with bzr repos in general :) [09:03] Leonidas: ah :) [09:04] * Leonidas checks the cmd_log [09:08] grunk, i always forget how horrible the log code is [09:14] show_log(bzrdev, lf, specific_fileid='TREE_ROOT') doesn't show anything. *sigh* [09:15] yeah, there seem to be inconsistencies around [09:17] that wouldn't be a big problem, if my stack would be correct, but somehow I only get one frame in pdb. [09:18] yay generators! [10:41] Leonidas: there is tree.set_root_id() [10:42] Leonidas: I'm not entirely sure what you're asking about [10:43] Leonidas: and things like bzrlib.transform.adjust_root_path [10:43] Leonidas: take care with the transform code though === Daviey_ is now known as Daviey === beaumonta is now known as abeaumont [11:36] The preferred way to convert from git to bzr is still fastimport, isn't it? [11:49] clemente: I believe so, yes. [11:49] bzr-git might work, but I don't know. [11:52] or git-bzr, but that just uses fastimport [11:57] ok. Apparently development for bzr-fastimport is stuck since 2 months :-( [12:03] clemente: Why's that a problem? It works. [12:04] Not for me; I have bug 238365 [12:04] Launchpad bug 238365 in bzr-fastimport "Symbolic links to files with names in UTF-8 (Unicode)" [Undecided,New] https://launchpad.net/bugs/238365 [12:04] I'd like to fix it but I don't know where to start [12:06] ie.symlink_target = data.encode('utf8') [12:06] just change that to ie.symlink_target = data [12:06] or so [12:09] Then all data will be stored in binary, even if it contains ¬utf-8 or even invalid utf-8 sequences [12:09] I don't know if that is allowed in bzr; but I think that git allows git [12:09] *it :-) [12:10] a symlink is a symlink, it doesn't have any encoding specified.. I don't know why you'd try to convert it to utf-8 anyway [12:14] Why does data.encode('utf8') fail if data is aleardy utf8? Is it trying to a double conversion? [12:14] without looking at the code, I'd say that is because it's data supplied from the user environment [12:14] * LarstiQ looks at the code [12:19] Mmm... if fastimport leaves the data as it is, then bazaar complains later: [12:19] File "/w/bzr/bzr.dev-oficial/bzrlib/dirstate.py", line 1862, in _inv_entry_to_details [12:19] UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128) === beaumonta is now known as abeaumont [12:28] And the problem is really in Bazaar: bzrlib/dirstate.py, 1860: [12:28] elif kind == 'symlink': [12:28] # We don't support non-ascii targets for symlinks yet. [12:28] fingerprint = str(inv_entry.symlink_target or '') [12:33] I will report a new bug on that and link the old similar ones to it [12:44] bug 272444 [12:44] Launchpad bug 272444 in bzr "Support symlinks to non-ascii file names" [Undecided,New] https://launchpad.net/bugs/272444 [12:47] Pieter: bzr refuses to store just any string in the original character encoding, and tries to convert everything to Unicode instead [12:48] From bug 59968: „ This root cause of this problem is that we store this data in XML, and XML1.0 doesn't permit most ASCII control codes. “ [12:48] Launchpad bug 59968 in bzr "add should refuse bad filenames" [Medium,Confirmed] https://launchpad.net/bugs/59968 [12:48] So ie.symlink_target = data would be wrong and ie.symlink_target = data.encode('utf8') better [12:48] messing up filenames just because your backend doesn't support the real data sounds wrong [13:01] There are lots of Unicode bugs in Bazaar... [13:07] LarstiQ: you said that it did data.encode('utf8') because it comes from the user. Would it be better to „convert it to utf8 only if it is not already utf8“? [13:08] clemente: eh no, you can only encode unicode, encoding an already encoded string doesn't make sense [13:08] Or „try to convert it to utf8, but if it fails with an exception, leave the data intact“ [13:08] clemente: that last part already happens somewhere else in fast-import [13:09] clemente: so if it's utf8, and then you try to encode utf8, something is wrong [13:09] Pieter: it's not messing up filenames, it's being able to reproduce them [13:10] which, without extra provisions, clashes with being able to store arbitrary binary streams [13:10] can't you just base64 them? [13:10] LarstiQ: so a try+catch around that conversion would be needed to prevent the wrong conversion [13:11] try+expect actually [13:12] except ! [13:12] Pieter: that's not the point, Linux treats its filesystem paths as binary data, others don't [13:12] Pieter: so you need to know what encoding a filename is in, or you are not able to check it out everywhere [13:12] clemente: no [13:13] clemente: in general, the entire pipeline should be: data from environment -> decode into unicode, live in unicode in the entire system -> encode on the way out [13:13] clemente: there should be no mixing of encoded and unencoded data within [13:14] Pieter: now, some people don't care that you can't check it out, they just want to store a binary stream and tough luck if it fais somewhere else [13:14] Pieter: that should be possible [13:14] yeah.. that seems the right way to go [13:15] well [13:15] it gives rise to working trees that only work in certain corner cases, which is a bad thing [13:15] Pieter: the root cause here being that the common denominator doesn't allow that [13:16] But both modes are incompatible [13:17] clemente: bug 59968 shouldn't be relevant anymore [13:17] Launchpad bug 59968 in bzr "add should refuse bad filenames" [Medium,Confirmed] https://launchpad.net/bugs/59968 [13:17] clemente: at least the xml part === jelmer is now known as Guest25912 [13:18] hi Guest25912 [13:18] clemente: so just fix 272444 [13:20] LarstiQ: How? I think two modes are needed, configurable by the user. Some people would like „don't change my encoding, leave the data as it is even if it later fails somewhere else“ and others „please make that my data is available everywhere without encoding problems“ [13:22] clemente: your use case of tres should work perfectly fine with the latter, we _know_ the encoding [13:22] clemente: if we know the encoding, there is no problem [13:22] clemente: the problem arises when we do not know the encoding of binary data [13:24] So the problem is not knowing the encoding used to store the target of a symlink [13:25] clemente: that's a problem, not your problem. If you look at the git-fastexport output you'll see it declares the data to be utf8 encoded [13:26] LarstiQ: only the commit messages afaik [13:26] link to a file with a name in utf-8 [13:27] Pieter: ^^ that's in 'expo' [13:27] It is recommended that always be encoded using UTF-8. [13:27] that's in the manpage [13:27] Pieter: right, I just looked at the output of clemente's series of git commands [13:28] clemente: if you try without the symlink, it works fine, right? [13:29] LarstiQ: I think so [13:30] * LarstiQ commented out the git add prova, and that works [13:31] clemente: so the concrete problem bzr problem we're dealing with is an (now) arbitrary limitation on symlink targets [13:31] hmm, maybe not [13:32] clemente: if I add the symlink and commit it in bzr, it works. Branching that branch however does not. [13:32] LarstiQ: that path is only utf-8 in the git output because it was stored as utf-8 [13:32] clemente: so some parts allow it, others don't. [13:33] Pieter: right, and I'd like to solve clemente's specific problem without tackling the larger issue [13:33] that is a wee bit more work [13:33] LarstiQ: by assuming it's utf-8? [13:33] Pieter: by being told it is utf-8 [13:34] Pieter: which is true in clemente's case [13:41] So the problem is in branch, not in add,rm,log,... A simpler testcase is: mkdir br1; cd br1; bzr init .; touch més; ln -s més prova; bzr add prova; bzr commit -m "link to utf-8 file name"; cd ..; bzr branch br1 br2 [13:43] clemente: right [13:43] clemente: can you write a testcase for that? [13:43] a bzrlib/tests/ testcase that is [13:46] LarstiQ: I'll try that in a while, yes (first I'll need to make them run) [13:46] clemente: ./bzr selftest [13:47] ok, that was easy :-) (Although there was no documentation on bzrlib/tests/ explaining how to run them) [13:48] or how to run all [13:49] ./bzr selftest [13:49] well, that was also easy... only it wasn't documented there [13:49] clemente: bzr help selftest? [13:49] that, or the developer documentation [13:50] Yes, but I saw lots of tests in the bzrlib/tests/ and didn't know how to run them :-) [13:50] Maybe a README or INFO helps there [13:50] bzrlib/tests/INFO, I mean [13:56] I'll work more on this later, and write or extend some tests for utf8 [14:07] luks: qannotate is nice! [14:13] luks: and qbrowse! [14:45] Odd_Bloke: hmmm, something funny is going on when I bisect run, it seems to keep repeating going back to the tip [16:05] ho hum, why was ie.get_tar_item deprecated [16:08] LarstiQ, it sucks === Guest55688 is now known as jelmer [16:09] jelmer: the removal sucks, or the function sucks? [16:14] jelmer: or your nick change sucks? [16:15] LarstiQ, get_tar_item can't provide a last modification time [16:16] LarstiQ, which caused issues exporting the same .tar.gz file for the same revision [16:16] LarstiQ, not sure if that's the reason it was deprecated though [16:16] jelmer: I don't think that's fixed now though [16:16] item.mtime = now [16:17] jelmer: http://thread.gmane.org/gmane.comp.version-control.bazaar-ng.general/44475/focus=44476 [16:17] jelmer: but now it seems the exporter code suffers from duplication [16:17] LarstiQ, that was there before too, but it means you have to pass in "now" [16:19] jelmer: mkay [16:21] at least I only have to fix _export_iter_entries() once === ferrouswheel__ is now known as ferrouswheel [16:50] right, back to the bzrlib/merge.py conflict === beaumonta is now known as abeaumont [18:30] does anybody know whether (and possibly how) "shallow" checkouts / branches are supported in 1.6? I believe I heard they would be [18:33] fdv: I think the name is "stacked" [18:34] yup [18:35] fdv: see --stacked on branch and push for instance [18:38] right [18:38] but it depends on the availability of it's parent branch for all operations, according to the docs [18:40] do you know if bzr-svn supports it? [18:41] heh. seems to :) [18:41] fdv: should only be the case for operations which it doesn't have the revisions itself for [18:41] ah, ok [18:41] fdv: iirc for bzr-svn the layering wasn't entirely right [18:41] oh [18:41] but it's been a while since I asked jelmer about it [18:41] the bzr-svn faq recommends it [18:42] really? Then I guess he fixed it :) [18:42] (http://samba.org/~jelmer/bzr-svn/FAQ.html#cloning-a-large-subversion-branch-is-very-slow) [18:42] now I've just got to hassle the svn guys to upgrade to 1.5, then the world will be a better place :) [18:43] fdv: any idea how large of a difference upgrading to 1.5 makes? [18:44] LarstiQ: nope, just read what that faq said :) [18:44] it took a week to clone the 1.4 repo to bzr, can't be worse than that ;) [18:45] LarstiQ: if and when I figure it out I can try to remember to let you know [18:45] fdv: yes please, I could go badger some of my svn admins then ;) [18:46] :) [18:46] LarstiQ: svn 1.4 is so broken that there should be ample reason in itself, afaik [18:46] merging support is paramount, imo [18:47] (*working* merge support, that is) [18:47] I haven't had cause to use it on svn, I heard there is this one python script you need to accomplish it with 1.5? [18:48] with 1.4 you can use svnmerge [18:48] it's supposedly fixed in 1.5 [18:48] LarstiQ: have you tried cloning the repo from 1.4? [18:48] ok [18:49] fdv: with bzr? Yes, although not the entire repository, but projects within it. [18:49] right [20:11] hm. it might seem to be issues with stacked branches from svn [20:14] no matter what type of repo I init, (I tried --1.6.1-rich-root, --rich-root-pack, and --subversion), the result is the same [20:15] bzr reports that it uses RepositoryFormatKnitPack5RichRoot for stacking [20:15] (after a branch command) [20:16] then it says that SvnRepository('') is not compatible with KnitPackRepository('local-repo-path'), different serializers [20:17] does this sound familiar to anybody? [20:20] When I push to a bzr+ssh branch or commit when bound to it, is there yet a way to have it email people about my push or commit? The bzr+ssh branch is on a Unix (FreeBSD) system I control. [20:33] uhm. I had a slightly old version of bzr-svn, sorry about the hassle === beaumonta is now known as abeaumont === beaumonta is now known as abeaumont === rick_h_ is now known as rick_h === rick_h is now known as rick_h_ === rick_h_ is now known as rick_h_mobile === rick_h_mobile is now known as rick_h === rick_h is now known as rick_h_ [23:20] trying to push over sftp and i get "bzr: ERROR: Permission denied: "/blog": [Errno 13] Permission denied" [23:20] what can i do to see what is wrong? [23:25] does the directory need any special permissions? [23:31] nevermind, solved it