/srv/irclogs.ubuntu.com/2010/07/31/#bzr.txt

lokkjujelmer, paths00:01
lokkjuwe're trying to do a branch operation from a remote repo, and it's telling us one of the files exceeds that limit00:02
jelmerlokkju: yes, that might very well be possible00:04
lokkjuso...  any way around it?  Window XP and newer's limit is actually 65K, but I've seen this same issue with svn - it is something about the libraries that are being linked to or something00:06
lokkjuack, 32K00:07
=== r0bby is now known as robbyoconnor
AfCHow can you restrict bzr+ssh to a specified directory path rather than bzr+ssh+//user@hostname/path implyng / ?08:38
AfCie, something like http://thias.marmotte.net/2009/05/creating-a-restricted-bzrssh-smart-server/ but serve side. Is that possible with some sshd_config magic, maybe?08:39
fullermdauthorized_keys entries are server-side...08:41
AfCfullermd: oh,08:42
AfCduh08:42
AfCright08:42
AfCOk, so maybe a different question08:42
* fullermd gets you an extra coffee mug 8-}08:43
AfCThat's fine for users who are *only* doing bzr+ssh when they connect,08:43
AfCbut what about users who also have normal accounts there?08:43
AfC(ie, me as opposed to everyone else)08:43
AfCfullermd: ie, I have bzr://research.operationaldynamics.com/bzr/java-gnome/mainline/ and http://research.operationaldynamics.com/bzr/java-gnome/mainline/ for public serving, but it sure would be nice08:44
AfCfullermd: to have bzr+ssh://research.operationaldynamics.com/bzr/java-gnome/mainline/ for pushing, rather than the current08:44
fullermdClean and/or pure-bzr solutions?  I don't know of any.  I can dream up a few somewhat hackish things.08:44
fullermdOf course, you can use authorized_keys and use different keys, which isn't without drawbacks.08:45
AfCfullermd: too-muc-info bzr+ssh://epsilon.dal.operationaldynamics.com/export/web/com/operationaldynamics/research/bzr/java-gnome/mainline/08:45
fullermd(but can work, depending)08:45
AfCI mean, obviously I could put a symlink in / as /bzr -> path, but that seems so wrong08:45
AfCI'm wondering if sshd gets any information about the hostname that was requested08:46
fullermdMarginally less wrong would be a symlink at ~/bzr and bzr+ssh://blah/~/bzr/ of course.08:46
AfC(outbound, ssh_config keys on hostname target08:46
fullermdI don't think so.08:46
AfCwhat about receiving side in [well, not sshd_config, but something?)08:46
AfCfullermd: actually, yeah, the home directories might be a better option, in the final analysis.08:47
AfChm08:47
AfCright now we have a shared repo, but...08:47
fullermdWell, I didn't mean _moving_ stuff under homedirs, just adding the symlink for shorter typing on access.08:48
AfCoh08:49
AfChm08:49
AfC{shrug}08:49
AfCyeah,08:49
AfCthat's not bad08:49
AfCfullermd: good thinking08:50
fullermdOne variant of the uglyhack solution would be to tweak shell rc files so that noninteractive logins get a 'bzr' that's a wrapper script setting --directory.08:50
AfCyeah, I'm just pondering along those lines08:50
AfCmaybe08:50
AfCwell, maybe a different sshd instance on a different port08:51
AfCor some kind of port forwarding, or...08:51
AfChm08:51
fullermdAnother is to hack up bzr one way or another (direct hackery, maybe something can be done in a plugin, etc) to fiddle with the command it invokes when you bzr+ssh.08:51
fullermdDifferent port wouldn't gain you anything over using a separate key with the authorized_keys fiddling.08:51
AfCyeah08:51
AfCdamn08:52
AfCthis seems like it should be simple08:52
AfCwell08:52
AfCwell. If the server is ONLY for bzr, then hacking the authorized_keys (or whatever) would do it I suppose. My problem is that this server does a few other things.08:53
fullermdOr you could pretend you're Launchpad, and just build your whole thing on top of a fictitious pseudofs  :p08:53
fullermdYou can have multiple keys.  Just have a special one for bzr stuff.08:53
fullermdYou can use your local .ssh/config and a separate hostname to auto-choose it for "bzr.myhost" instead of "myhost" (or whatever other trickery you may want)08:54
AfCyeah, but then I'd have to make `bzr push bzr+ssh:host` use a different one than `ssh host` does... erum oh08:54
AfCwell,08:54
AfCyeah08:54
AfCduh08:54
AfCthat could work08:54
AfCclient side, ssh_config08:54
AfCspecify a different IdentityFile08:54
fullermdWell, if you wanted to go systemwide...08:54
AfCyeah, I meant .ssh/config08:55
AfCnice08:55
fullermdOne downside is that you end up not taking such advantage of connection sharing there, assuming you're doing so in the first place.08:55
AfCsort of a bother to have to have another key, but hey, yes, I'll live08:55
fullermdOf course, given the sorry state of manglement for connection sharing...08:55
AfCyeah08:55
AfCI gave up on connection sharing when I realized (duh) that a root@ and user@ wouldn't share the connection.08:56
* fullermd is amazed and how that hasn't improved in $YEARS.08:56
fullermdSure, but who ssh's as root?   :p08:56
AfC(I also noticed that even user@ and user@ has a lot of ugly race conditions if you start doing any port forwarding08:56
AfCfullermd: not me, of course.08:56
AfCfullermd: [our security team had a hard think about that, and decided that inhibiting sysadmins from being root was stupid]08:57
AfCfullermd: [in fact, more mistakes were being made on servers as a result of people sudoing when they shouldn't or, not using it when they should, etc etc etc]08:57
fullermdI've used pure sudo everywhere since sometime last millennium.  Makes management so much simpler.08:58
AfC{shrug} on desktops and other shared multi user systems, sure08:58
fullermdAnd saves all that trouble with connection sharing, X11 forwarding and key handling, blah blah blah.08:59
AfCright08:59
AfCso our definition of where the dividing line is is whether X is involved or not08:59
AfCanyway,09:00
AfCdifferent key.09:00
AfCGood call.09:00
AfCfullermd: did the rest of http://thias.marmotte.net/2009/05/creating-a-restricted-bzrssh-smart-server/ look right to you? I've been trying to find an authoritative reference to that. Seems problematic to have to list all that stuff in so many people's home directories.09:00
fullermdIt looked reasonable; I've never messed with it myself so I don't know if it's actually correct or works.09:01
AfCwell, just tried the whole setup and it works... nice09:11
AfCyup, seems sound09:12
* AfC should blog this09:12
AfCfullermd: thanks for your thoughts09:14
fullermdYay, justified my oxygen use for the day.09:14
mathrickhey, is there an existing command to apply a patch that reverses an existing commit to the tree?21:35
mathrickahh, merge21:36
nebuPookinsI tried to do a checkout of a project from launchpad, but it seems to make bazaar crash.22:03
nebuPookinsI posted the error message I get at https://bugs.launchpad.net/bzr/+bug/61194922:03
ubot5Launchpad bug 611949 in Bazaar "bzr crashes during checkout of gnome-do (affected: 1, heat: 6)" [Undecided,New]22:03
nebuPookinsWondering if anybody had any idea of what I could try next.22:04
asabilnebuPookins, just tried it over here, same issue22:09
nebuPookinsThanks; good to know it's not a config problem with my system.22:10
nebuPookinsI'm also talking to the folks on #gnome-do22:12
nebuPookinsYeah, they said they're getting the same error too now. "I guess i haven't really rebranched lp:do for a long time"22:13
asabilthere is already another bug open: https://bugs.launchpad.net/bzr/+bug/52263722:16
ubot5Launchpad bug 522637 in Bazaar "BzrCheckError: Cannot add revision(s) to repository: missing referenced chk root keys (affected: 11, heat: 60)" [High,In progress]22:16
lifelessspiv was working on a fix22:35
lifelessI'm sorry that I don't know more than that22:35
nebuPookinsOk thanks, I'll subscribe that bug too.22:38

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