=== yofel_ is now known as yofel | ||
einalex | hi again! I have trouble using WorkingTree.move() to move a file to the root directory (of the branch) | 11:26 |
---|---|---|
einalex | I get a BzrMoveFailedError telling me that the directory is not versioned...which is clearly nonsense | 11:27 |
einalex | what parameter am I suppsoed to use for to_dir to get it to work? (".", "/", "/path/to/bzr/repo/" all did not work) | 11:29 |
einalex | worked with "" ... | 12:00 |
=== Guest40826 is now known as mortrca | ||
mortrca | fullermd: ping? | 16:31 |
fullermd | Hmm? (not really here right now) | 16:32 |
mortrca | 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 |
mortrca | To which you responded that "the env that hooks run in not allowing access to arbitrary places in the FS" | 16:33 |
fullermd | 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:34 |
mortrca | 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 |
mortrca | Which says to me that this should be working | 16:36 |
mortrca | Do you have any suggestions for me? Another place/person that I should ask? | 16:36 |
fullermd | 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:37 |
fullermd | jam or lifeless would know more, but I don't know when they're around to chat. | 16:38 |
mortrca | Alright, thanks. | 16:38 |
fullermd | Maybe vila too (though he's not even pseudo-online right now) | 16:38 |
mortrca | alright, I'll try again a little later. | 16:39 |
LarstiQ | mortrca: do you have a bzr branch at /var/www/site? | 16:56 |
LarstiQ | and/or repository | 16:57 |
LarstiQ | mortrca: because that looks like a containing-bzrdir search that doesn't find what it is looking for under /var/www/site | 16:57 |
jam | 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 |
jam | Is it via ssh, via http, via etc. | 16:59 |
jam | And how is the service configured. | 16:59 |
mortrca | LarstiQ: Yes, I do have a branch there. | 17:34 |
LarstiQ | mortrca: and its repository? | 17:40 |
LarstiQ | mortrca: `bzr info` will have the info | 17:40 |
mortrca | Standalone tree (format: 2a) | 17:41 |
mortrca | Location: | 17:41 |
mortrca | branch root: . | 17:41 |
mortrca | Related branches: | 17:41 |
mortrca | parent branch: <path> | 17:41 |
mortrca | Is that what you were looking for? | 17:42 |
LarstiQ | mortrca: yeah, that proves my theory wrong :) | 17:43 |
mortrca | okay | 17:43 |
mortrca | 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:44 | |
* lifeless is around | 17:45 | |
LarstiQ | lifeless: hi! | 17:47 |
lifeless | LarstiQ: hi! | 17:50 |
LarstiQ | lifeless: belated congratulations on your new job | 17:51 |
lifeless | LarstiQ: thanks :) | 17:51 |
dobey | 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"' | 17:59 |
LarstiQ | dobey: bzrlib.plugin.load_plugins()? | 18:01 |
LarstiQ | dobey: the lp: directory service is implemented by the launchpad plugin | 18:02 |
* LarstiQ is guessing it isn't loaded | 18:02 | |
dobey | thanks LarstiQ | 18:16 |
dobey | 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 |
dobey | 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:17 |
LarstiQ | dobey: the target is on lp also? | 18:19 |
dobey | LarstiQ: yes | 18:23 |
dobey | and launchpad API has no copy operation on its branch objects | 18:23 |
dobey | 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:25 |
LarstiQ | dobey: hmm | 18:26 |
LarstiQ | dobey: .create_clone_on_transport? | 18:27 |
dobey | 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:28 |
LarstiQ | dobey: bzrlib.transport.get_transport_from_url(url) should help I think | 18:30 |
dobey | 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 |
dobey | anyway, i need to run for a few. so bbiab | 18:32 |
dobey | sorry, back now | 19:17 |
dobey | this is just not working at all :( | 19:28 |
jelmer | dobey: hi | 19:52 |
jelmer | dobey: what is the URL you are passing to get_transport_from_url exactly ? | 19:52 |
dobey | UnsupportedProtocol: Unsupported protocol for url "lp:~ubuntuone-control-tower/dirspec/stable-4-2" | 19:53 |
dobey | and yes, i am calling load_plugins(), and bzrlib is happy to open the branch for lp:dirspec | 19:53 |
fullermd | I'm not sure directory services reach down that far. g_t_f_u probably only takes a URL. | 19:56 |
jelmer | dobey: you have to resolve directory services first | 20:24 |
jelmer | dobey: that will translate lp:foo -> bzr+ssh://bazaar.launchpad.net/~owner/foo/trunk | 20:25 |
dobey | jelmer: how to do that? | 20:25 |
jelmer | dobey: | 20:25 |
jelmer | from bzrlib.directory_service import directories | 20:26 |
jelmer | new_location = directories.dereference(old_location) | 20:26 |
dobey | thanks jelmer. got something mostly working how i want now. :) | 21:27 |
jelmer | dobey: cool | 21:28 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!