[00:58] how to I checkout an svn branch/trunk using ubuntu bzr? [00:58] bzr-svn doesn't exist and I can't find commands on the website for what to do. === mr-rus1 is now known as mr-russ [00:59] mr-russ: ? ubuntu has bzr-svn [00:59] I installed bzr-svn package, but there is only a bzr command [00:59] ah [00:59] bzr-svn allows the regular bzr command to access svn urls [01:00] ah, then I did have it sort of working. [01:00] how then do I commit without committing to svn, and only commit to the bzr tree? [01:01] mr-russ: If you create a standalone branch it won't automatically commit to svn [01:02] ah, so you need to pass that as a parameter. [01:02] ? [01:02] Unfortunatley I'm too new at bzr altogether for this to be as easy as it might be. [01:03] if you create a branch by running "bzr branch svn://..." it won't automatically commit to svn [01:04] I'm using https:// I hope that doesn't make a difference. [01:04] no [01:04] * mr-russ waits for it to download to see how we go at attempt 2. [01:09] mr-russ: bzr branch off an SVN repo is the same as a branch off any other repo, it's independent and separate from the original branch [01:16] for some reason my first attempt committed to svn. but it doesn't now. [01:16] thanks for the help. [01:16] I'll now work out how to commit the changes to svn. [01:17] mr-russ: if you are now using the result of "branch" then you only commit locally. Use "bzr push" to move the changes to svn. [01:18] see "bzr help bind" if you wish to make it default to commit to both. [01:21] a basic tutorial on the subversion page would be quite helpful. especially for those of us coming from SVN. [01:21] because bzr push doesn't automatically put the tree back in the same place you got it from. [01:21] mr-russ: to which subversion page do you refer? [01:22] http://bazaar-vcs.org/BzrForeignBranches/Subversion [01:22] and what do you mean by that statement? [01:23] coming from svn, when you checkout something. when you hit svn commit, it commits to the same svn tree. [01:24] bzr push to an svn tree MAKES you specify the location. [01:24] I would have expected it cached as the "default" [01:25] But that is just my gut expectation as an SVN user. [01:30] mr-russ: bzr does do that if you used "bzr co" [01:30] it doesn't when you use "bzr branch" [01:30] * mr-russ needs to read more about how to use bzr. [01:31] and bzr co commits straight to the SVN repository. [01:33] mr-russ: and after the first bzr push then it will use that location by default next time, so it should be a one time thing. [01:33] ah. [01:34] I'll read through the whole bzr manual and see how I go from there. [01:34] thanks very much for your guidance all. [01:34] mr-russ: no problem, feel free to ask any more questions. === asac__ is now known as asac === cprov is now known as cprov-ZzZ === jdong is now known as PmDematagoda === PmDematagoda is now known as jdong === asac_ is now known as asac === luks_ is now known as luks === weigon__ is now known as weigon [14:25] hi all. how can i checkout a repository without any history or other files, just as if i would have downloaded a package or smth.? === Verterok is now known as Verterok_ [14:33] export? [14:36] ok [14:36] thank you [14:42] doesnt work can someone give me an example [14:42] ? [14:48] you can only export branch... not repository [14:52] c1|freaky: also checkout --lightweight [14:52] that gives you slightly more than export, but no history. [14:52] c1|freaky: bzr export to-this from-URL-of-branch [15:01] can i only export one subdirectory of a project [15:08] no, that's not supported by bzr, but it is quite easy to add on top. [15:41] james_w: how to add something on top? [15:42] c1|freaky: well you can extract to a directory and then just delete everything that you don't want. [15:42] export to a directory, sorry. [15:43] ok thank you [16:14] does anyone know of a project that provides a "libbazaar"? i.e. C library interface bindings for creating/reading/writing a bazaar repo for directly integrating into a C/C++ application without some wrapper layer? [16:14] from my searches, it looks like the answer is a solid 'no', but I figured if anyone heard of someone working on such an effort, it'd be in here.. [16:39] brlcad: yeah, as far as I know that is a definite no. [16:48] james_w: mm, darn but thanks [17:27] brlcad: what for? [17:36] for integrating into a c/c++ app as a revisioned data store backend for storing data created/used by that app === jelmer_ is now known as jelmer [17:59] join #actionscript [17:59] heh, sorry [18:21] brlcad: It is possible to use a python library from C/C++, just not very straightforward. [19:06] abentley: of course, just such wrapper layers are usually quite distasteful to have at all, much less maintain over a long term -- that's why I specifically said without it, just not worth it that way [19:07] Of course, a C/C++ library is even more work to maintain over a long term, and no one so far is interested in doing that. [19:07] I have a workable path through libsvn, but it means I'll have to resort to repository synchronization into the application layer [19:08] that certainly depends on the dev audience, for the bzr devs that may very well be the case [19:18] in any regard, thanks for the insight/responses [19:35] $ bzr init-repo --no-trees sftp://mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net/ [19:35] mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net's password: [19:35] bzr: ERROR: Permission denied: "/.bzr": [Errno 13] Permission denied [19:35] what could be causing this error? [19:42] (using bzr 1.2 on vista in msys) [19:46] How can I pull from a branch without putting it on a webserver or on launchpad? I have ssh access to the server where the branch is located [19:48] bzr pull sftp://user@host/path should work [19:49] frsk: ok, thanks :) [19:49] that's the loveliness of bzr :) No server needed [19:50] hey jelmer , how much RAM is branching a 16k rev svn repo supposed to take? [19:50] at rev 6k, I'm seeing 400MB or so usage [19:50] I've applied the python bindings memory leak patch backported from Hardy [19:51] NichardRixon: it seems to try to create a directory .bzr in your / dir (C:?). Do you have enough permissions? [19:51] I would assume so [19:51] I mean, if I ssh in and run mkdir .bzr it works fine [19:51] mkdir /.bzr ? [19:51] oh, hrm [19:52] how can I fix this problem :< [19:52] NichardRixon: Your command is trying to create a repository in the root directory of your server. User accounts do not typically have create rights to the root directory. [19:52] ah, sftp defaults to root dir. [19:52] You would specify a directory you do have rights to, like your home directory. [19:53] I assume there's a flag I can set? [19:53] yeah. you didn't put a path at the end of that URL [19:53] e.g. bzr init-repo --no-trees sftp://mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net/~/ [19:53] hrm [19:54] bzr: ERROR: No such file: '': [Errno 2] No such file [19:54] Perhaps you don't have a home directory? [19:54] What directory do you have access to? [19:54] but I do :( [19:55] huh, I didn't know "~" works. [19:55] if I go cd ~ it works fine [19:55] try an absolute path to your intended destination? [19:55] or maybe it doesn't? :) [19:55] maybe you don't have a home via sftp [19:55] radix: It works on sftp, but not on bzr+ssh [19:55] radix: it works for sftp [19:55] would /home/ work at the end of the path? [19:55] NichardRixon: /home/yourusername/ should work. but so should ~ [19:56] bzr: ERROR: Permission denied: "/home/.bzr": [Errno 13] Permission denied [19:56] NichardRixon: /home/yourusername, not /home. [19:57] bzr: ERROR: No such file: '/home/mrlachatte': [Errno 2] No such file [19:57] I've got /home when I ssh in [19:57] NichardRixon: it sounds like the server setup is broken [19:57] It looks like there's a bug that server/~/ must be followed by a directory name. [19:57] NichardRixon: what happens if you "echo $HOME" when you ssh in? [19:58] abentley: oops [19:58] \/home/private [19:58] without the \ [19:58] NichardRixon: that's... weird [19:59] NichardRixon: can you create files in /home/private? maybe you will need to put your bzr branches in there. [19:59] yeah, I'm trying that now [19:59] but it's very strange that your home directory isn't /home/ [19:59] maybe I can use ~/bzr/ [20:00] NichardRixon: yeah, maybe that'll work. [20:00] yay! [20:00] no errors :) [20:00] hooray [20:00] * radix gets lunch [20:02] huh, I'm not seeing anything in ~/bzr/, though [20:02] ls -A shows me nothing [20:06] NichardRixon: did you mean to type "ls -a"? [20:06] oh, hmm, -A [20:06] NichardRixon: that's strange :) [20:06] NichardRixon: you're typing "ls -A ~/bzr/" ? [20:10] jdong: it shouldn't really leak [20:10] 25k revisions is easily possible here [20:16] friggin' weird [20:16] suddenly my computer started thinking I was pressing alt and shift continuously [20:16] and left arrow or something [20:16] so all my messages started typing backwards [20:16] anyways, ls -A problem still stands [20:17] heh [20:18] jelmer: hmm 8k revisions, 600MB RAM :( [20:19] NichardRixon: if I understand correctly you can push but the content is not there when you look for it ? [20:19] jdong: Are you sure you've backported the fix correctly and regenerated the SWIG code? [20:19] I haven't pushed yet [20:19] I'm just trying to do an init [20:19] jelmer: I'm 99% certain [20:20] grumble maybe I should just do this on my hardy box and preserve my sanity [20:20] NichardRixon: whats the exact init command line you are running ? [20:20] $ bzr init sftp://mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net/~/bzr/Denkatsu/ [20:21] jdong: It may well be that not all the required changes are backported to 1.4 [20:21] NichardRixon: oh, that command should create .bzr in ~/bzr/Denkatsu/ [20:22] NichardRixon: not in ~/bzr/ [20:22] yeah, and there's nothing in /bzr/ at all [20:22] er, ~/bzr/ [20:22] NichardRixon: does it fail ? [20:22] nope [20:22] no errors [20:22] NichardRixon: so echo $? right after it echos 0 ? [20:22] I don't see what the problem is. [20:23] oh, Denkatsu doesn't even exist? [20:23] radix, there should be a Denkatsu directory in ~/bzr/, right? [20:23] yes [20:23] lifeless, where does it echo 0? [20:23] NichardRixon: run this "bzr init sftp://mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net/~/bzr/Denkatsu/ && echo ok" [20:23] NichardRixon: tell me if it prints 'ok' [20:24] bzr: ERROR: Already a branch: "sftp://mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net/~/bzr/Denkatsu/" [20:24] there is something weird with that server. [20:24] maybe you should avoid use of ~ [20:25] ....oh, interesting [20:25] maybe the sftp server thinks that ~ is something different than the shell does. [20:25] under /home/public/bzr there's Denkatsu [20:25] how intriguing [20:25] oi. [20:26] NichardRixon: my next question was 'please run "ssh mrlachatte_flyinformation@ssh.phx.nearlyfreespeech.net pwd" ' [20:27] apparently when he sshes in he gets sent to /home, and $HOME is /home/private [20:27] just a straight ssh in dumps me into /home/public [20:28] I've got /home when I ssh in <-- is it putting you in random different directories each time you log in? ;) [20:28] :D [20:28] non-deterministic ssh [20:34] NichardRixon: does the presence of the username in the command line alter things? [20:34] eh? [20:34] it's working now [20:34] NichardRixon: ok good; enjoy [20:34] thank you :) [21:00] arghhhhh [21:00] so I've commited everything to ~/bzr/Denkatsu/ [21:01] but there are no files besides .bzr inside that folder :( [21:02] This a push? Push doesn't update the tree [21:05] wait whoops, wasn't doing ls -A [21:05] there's a .bzr folder and the world is right === mwhudson_ is now known as mwhudson [22:56] morning [22:58] can anyone help with using bzrlib? I'm trying to restrict the results from workingtree.changes_from to a specific dir. [23:02] specific_paths=['dir'] [23:03] does it have to be a relative path (or is there any requirement?) [23:03] yes, tree relative path [23:03] thanks [23:03] if you have an absolute path, tree.relative_path(abs_path) it first [23:04] ah, that helps alot! [23:05] because there can be N aliases to a tree, we only work with relative paths in the tree api (with some very, and odd, exceptions) [23:05] (symlinks, mount points etc generate aliases) [23:21] New bug: #192743 in bzr-svn "bzr-svn is irritating when in a (non-svn) subdirectory of an svn working tree" [Wishlist,Confirmed] https://launchpad.net/bugs/192743