/srv/irclogs.ubuntu.com/2012/10/30/#bzr.txt

=== yofel_ is now known as yofel
einalexhi again! I have trouble using WorkingTree.move() to move a file to the root directory (of the branch)11:26
einalexI get a BzrMoveFailedError telling me that the directory is not versioned...which is clearly nonsense11:27
einalexwhat parameter am I suppsoed to use for to_dir to get it to work? (".", "/", "/path/to/bzr/repo/" all did not work)11:29
einalexworked with "" ...12:00
=== Guest40826 is now known as mortrca
mortrcafullermd: ping?16:31
fullermdHmm?  (not really here right now)16:32
mortrcaI'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 ago16:33
mortrcaTo which you responded that "the env that hooks run in not allowing access to arbitrary places in the FS"16:33
fullermdYes, 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
mortrcaAccording 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
mortrcaWhich says to me that this should be working16:36
mortrcaDo you have any suggestions for me? Another place/person that I should ask?16:36
fullermdI 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
fullermdjam or lifeless would know more, but I don't know when they're around to chat.16:38
mortrcaAlright, thanks.16:38
fullermdMaybe vila too (though he's not even pseudo-online right now)16:38
mortrcaalright, I'll try again a little later.16:39
LarstiQmortrca: do you have a bzr branch at /var/www/site?16:56
LarstiQand/or repository16:57
LarstiQmortrca: because that looks like a containing-bzrdir search that doesn't find what it is looking for under /var/www/site16:57
jammortrca: 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
jamIs it via ssh, via http, via etc.16:59
jamAnd how is the service configured.16:59
mortrcaLarstiQ: Yes, I do have a branch there.17:34
LarstiQmortrca: and its repository?17:40
LarstiQmortrca: `bzr info` will have the info17:40
mortrcaStandalone tree (format: 2a)17:41
mortrcaLocation:17:41
mortrca  branch root: .17:41
mortrcaRelated branches:17:41
mortrca  parent branch: <path>17:41
mortrcaIs that what you were looking for?17:42
LarstiQmortrca: yeah, that proves my theory wrong :)17:43
mortrcaokay17:43
mortrcaI guess I'm headed to the mailing list.17:44
* LarstiQ nods17:44
* LarstiQ can't think of what else it could be atm17:44
* lifeless is around17:45
LarstiQlifeless: hi!17:47
lifelessLarstiQ: hi!17:50
LarstiQlifeless: belated congratulations on your new job17:51
lifelessLarstiQ: thanks :)17:51
dobeyis 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
LarstiQdobey: bzrlib.plugin.load_plugins()?18:01
LarstiQdobey: the lp: directory service is implemented by the launchpad plugin18:02
* LarstiQ is guessing it isn't loaded18:02
dobeythanks LarstiQ18:16
dobeywhat'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 example18:17
dobeyold_branch.create_checkout(new_url) gives me an UpgradeRequired for the nwe branch, which is odd since it just created it and it is 2a18:17
LarstiQdobey: the target is on lp also?18:19
dobeyLarstiQ: yes18:23
dobeyand launchpad API has no copy operation on its branch objects18:23
dobeyi 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
LarstiQdobey: hmm18:26
LarstiQdobey: .create_clone_on_transport?18:27
dobeyi'm looking at that now, but what is "to_transport" exactly? i suspect passing in a url will just give me an error18:28
LarstiQdobey: bzrlib.transport.get_transport_from_url(url) should help I think18:30
dobeyget_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
dobeyanyway, i need to run for a few. so bbiab18:32
dobeysorry, back now19:17
dobeythis is just not working at all :(19:28
jelmerdobey: hi19:52
jelmerdobey: what is the URL you are passing to get_transport_from_url exactly ?19:52
dobeyUnsupportedProtocol: Unsupported protocol for url "lp:~ubuntuone-control-tower/dirspec/stable-4-2"19:53
dobeyand yes, i am calling load_plugins(), and bzrlib is happy to open the branch for lp:dirspec19:53
fullermdI'm not sure directory services reach down that far.  g_t_f_u probably only takes a URL.19:56
jelmerdobey: you have to resolve directory services first20:24
jelmerdobey: that will translate lp:foo -> bzr+ssh://bazaar.launchpad.net/~owner/foo/trunk20:25
dobeyjelmer: how to do that?20:25
jelmerdobey:20:25
jelmerfrom bzrlib.directory_service import directories20:26
jelmernew_location = directories.dereference(old_location)20:26
dobeythanks jelmer. got something mostly working how i want now. :)21:27
jelmerdobey: cool21:28

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!