=== yofel_ is now known as yofel [11:26] hi again! I have trouble using WorkingTree.move() to move a file to the root directory (of the branch) [11:27] I get a BzrMoveFailedError telling me that the directory is not versioned...which is clearly nonsense [11:29] what parameter am I suppsoed to use for to_dir to get it to work? (".", "/", "/path/to/bzr/repo/" all did not work) [12:00] worked with "" ... === Guest40826 is now known as mortrca [16:31] fullermd: ping? [16:32] Hmm? (not really here right now) [16:33] I'm still trying to figure out the "bzr: ERROR: Server sent an unexpected error: ('error', 'JailBreak', "An attempt to access a url outside the server jail was made: 'file:///var/www/site/'.")" issue that I mentioned ~19 hours ago [16:33] To which you responded that "the env that hooks run in not allowing access to arbitrary places in the FS" [16:34] Yes, that's deep in innards/API space, where I don't play. Hooks run in a jail that limits what they can do/where they can go in the filesystem; 's the limit of my knowledge. [16:36] According to the docs "Mirroring currently only works on local paths or URLs that imply ssh access to the remote machine (sftp://, bzr+ssh:// or svn+ssh://)." [16:36] Which says to me that this should be working [16:36] Do you have any suggestions for me? Another place/person that I should ask? [16:37] I don't, no. On the high end, I've never looked at the plugin you're using, and on the low end, I don't know much of anything below the CLI. [16:38] jam or lifeless would know more, but I don't know when they're around to chat. [16:38] Alright, thanks. [16:38] Maybe vila too (though he's not even pseudo-online right now) [16:39] alright, I'll try again a little later. [16:56] mortrca: do you have a bzr branch at /var/www/site? [16:57] and/or repository [16:57] mortrca: because that looks like a containing-bzrdir search that doesn't find what it is looking for under /var/www/site [16:59] mortrca: please feel free to send an email to the mailing list with a bit more context. I'm not quite sure how things are trying to access the branches, or what triggers are happening on their behalf. [16:59] Is it via ssh, via http, via etc. [16:59] And how is the service configured. [17:34] LarstiQ: Yes, I do have a branch there. [17:40] mortrca: and its repository? [17:40] mortrca: `bzr info` will have the info [17:41] Standalone tree (format: 2a) [17:41] Location: [17:41] branch root: . [17:41] Related branches: [17:41] parent branch: [17:42] Is that what you were looking for? [17:43] mortrca: yeah, that proves my theory wrong :) [17:43] okay [17:44] I guess I'm headed to the mailing list. [17:44] * LarstiQ nods [17:44] * LarstiQ can't think of what else it could be atm [17:45] * lifeless is around [17:47] lifeless: hi! [17:50] LarstiQ: hi! [17:51] lifeless: belated congratulations on your new job [17:51] LarstiQ: thanks :) [17:59] is there some special thing i'm perhaps forgetting to do, to make bzrlib.branch.Branch.open('lp:foo') work properly? just doing that gives me an 'UnsupportedProtocol' error: 'Unsupported protocol for url "lp:foo"' [18:01] dobey: bzrlib.plugin.load_plugins()? [18:02] dobey: the lp: directory service is implemented by the launchpad plugin [18:02] * LarstiQ is guessing it isn't loaded [18:16] thanks LarstiQ [18:17] what's the simplest way to create a copy of a branch on lp? from lp:~foo/bar/baz to lp:~foo/bar/baz-2-0 for example [18:17] old_branch.create_checkout(new_url) gives me an UpgradeRequired for the nwe branch, which is odd since it just created it and it is 2a [18:19] dobey: the target is on lp also? [18:23] LarstiQ: yes [18:23] and launchpad API has no copy operation on its branch objects [18:25] i want to take a trunk branch for one project, and create a stable series and accompanying branch for it; with the new branch being unstacked. [18:26] dobey: hmm [18:27] dobey: .create_clone_on_transport? [18:28] i'm looking at that now, but what is "to_transport" exactly? i suspect passing in a url will just give me an error [18:30] dobey: bzrlib.transport.get_transport_from_url(url) should help I think [18:32] get_transport_from_url is giving me the UnsupportedProtocol error; and just passing in the url to create_clone_on_transport gives me an UpgradeError after it created an empty branch on lp :-/ [18:32] anyway, i need to run for a few. so bbiab [19:17] sorry, back now [19:28] this is just not working at all :( [19:52] dobey: hi [19:52] dobey: what is the URL you are passing to get_transport_from_url exactly ? [19:53] UnsupportedProtocol: Unsupported protocol for url "lp:~ubuntuone-control-tower/dirspec/stable-4-2" [19:53] and yes, i am calling load_plugins(), and bzrlib is happy to open the branch for lp:dirspec [19:56] I'm not sure directory services reach down that far. g_t_f_u probably only takes a URL. [20:24] dobey: you have to resolve directory services first [20:25] dobey: that will translate lp:foo -> bzr+ssh://bazaar.launchpad.net/~owner/foo/trunk [20:25] jelmer: how to do that? [20:25] dobey: [20:26] from bzrlib.directory_service import directories [20:26] new_location = directories.dereference(old_location) [21:27] thanks jelmer. got something mostly working how i want now. :) [21:28] dobey: cool