/srv/irclogs.ubuntu.com/2013/07/24/#bzr.txt

thomiI'm confused: Can I install a hook by placing it somewhere in the branch's .bzr folder?02:20
thomiin some places in the docs it says hooks need to be installed via ~/.bazaar/plugins, and in other places it seems to suggest tat you may be able to install the hook into the branch/repo directly02:21
lifelessthomi: you cannot install them in the branch/repo03:00
thomi:(03:00
lifelessthomi: it would be a huge security hole to run arbitrary code in something you clone; we permit /config/ but not /install/ there.03:00
lifelessthomi: if you want a plugin active for just one repo, the plugin should consult config in that repo.03:00
lifelessas in, branch.get_config() and drill in from there.03:01
thomilifeless: I want to make peopel contributing to a particular project unable to commit code unless pep8 passes - it sounds like I can't do that without them having to install the plugin manually03:03
thomiI guess I can do it at package build time instead.03:03
* thomi is feeling draconian today03:03
lifelessyou could put the check in your test suite03:04
thomilifeless: yup, but I'd still need to trust the developers to actually run the tests :-/03:06
lifelessthomi: ...03:13
lifelessthomi: your CI system should reject their merges before you see them, no?03:13
thomiYeah, I'll implement the check at the CI level03:15
=== wgrant_ is now known as wgrant
=== tim___ is now known as vorpalbunny
=== vorpalbunny is now known as thumper
=== thumper is now known as thumper-afk
=== thumper-afk is now known as thumper
=== Jip_ is now known as Jip
=== Guest85887 is now known as LoganCloud
dlpenguinloverHello, I'm having some trouble with a bazaar repo i'm trying to get working. I'm trying to install a launchpad instance on a virtual Ubuntu Server, however while i'm downloading a repo to install Launchpad, bazaar is erroring out saying the repo is corrupt. I do not want to redownload 400+ mbs of data, is there any way to "fix" the repo?19:46
mathrickdlpenguinlover: I'm not exactly sure what you ended up with, but if you have a bzr branch in an accessible state, you can bzr check it19:59
mathrickit will do so some sanity checks and tell you if/what issues there are20:00
dlpenguinlover"No working tree found at specified location."20:04
mathrickdlpenguinlover: bzr check --repo and possibly --branch20:07
dlpenguinlovermathrick: $ bzr check --repo --> Checking repository at 'file:///home/david/launchpad/lp-brakches/'. ----20:10
mathrickyes20:11
mathrickit will take time20:11
dlpenguinloverchecked repository file:///home/david/launchpad/lp-branches/ format RepositoryFormat2a() -----> 0 revisions 0 file-ids20:11
mathrickuh20:11
dlpenguinlover$ bzr check --branch -------> No branch found at specified location.20:12
mathrickthen it hasn't actually downloaded anything it seems20:12
mathrickdlpenguinlover: what does "du -hsc file:///home/david/launchpad/lp-branches/" say?20:12
mathrickerr20:12
mathrickwithout file://20:12
dlpenguinlover237M   /home/david/launchpad/lp-branches/       237M total20:13
mathrickwell, not sure how to help you with that20:14
mathrickbut it seems to be broken completely20:14
mathrickdlpenguinlover: how exactly did it error out in the first place, and is it consistent?20:14
dlpenguinlovermathrick: well, the launchpad installer (called rocketfuel-setup) was the one executing the bzr commands, but this is what it outputted. "bzr: error: No WorkingTree exists for "file:///home/david/launchpad/lp-branches/devel/.bzr/checkout"/ ERROR: Your trunk branch in /home/david/launchpad/lp-branches/devel is corrupt. Please delete /home/david/launchpad/lp-branches/devel and run rocketfuel-setup again."20:16
mathrickand did you do that?20:17
dlpenguinloverYes, and it gives the same error message.20:17
mathrickdlpenguinlover: aight, so you have sub-branches under that dir20:20
mathrickwhat does bzr info file:///home/david/launchpad/lp-branches/devel give you?20:20
jelmerhi mathrick20:30
jelmermathrick: there is also "co:" which behaves similarly to "colo:"20:30
mathrickjelmer: oh, I couldn't find that mentioned anywhere20:43
jelmermathrick: it's undocumented - don't use development-colo, as it is unfinished20:44
jelmer(hence the "development-" bit :-)20:44
mathrickjelmer: I know, but it kinda beats having mysterious path errors when cloning colocated branches across OS20:44
jelmermathrick: okay, up to you :) Just be wary of bugs20:47
mathrickI am!20:47
mathrickjelmer: in fact I ran into a couple where various things get horribly confused when I ask them to compare colocated branches20:48
mathrickdiff says no changes, missing doesn't even understand what I'm asking it to do, etc.20:48
jelmermathrick: please file bugs and tag them "colocated"20:50
mathrickOK20:50
=== qengho_ is now known as qengho

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