Tuesday, 2011-08-16

*** Joins: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl)02:27
*** Quits: Cupertino (~Cupez@62-177-158-122.dsl.bbeyond.nl) (Changing host)02:27
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:27
*** Joins: siebrand (~siebrand@5353A6DC.cm-6-4c.dynamic.ziggo.nl)02:56
*** Joins: asm89 (~asm89@unaffiliated/asm89)02:58
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Client Quit)02:58
*** Joins: asm89 (~asm89@unaffiliated/asm89)03:05
*** Joins: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz)03:06
*** Joins: Rixie (~Rixie@188.177.20.182)03:18
*** Quits: Cesare (~Adium@creati59.lnk.telstra.net) (Quit: Leaving.)04:56
*** Joins: sgimeno (~sgimeno@163.117.206.10)05:14
GitHub133[mantisbt] davidhicks pushed 2 new commits to master: http://bit.ly/o2NFCZ05:53
GitHub133[mantisbt/master] Changed require_once to required_api for bug_api.php - Marcin Kłeczek05:53
GitHub133[mantisbt/master] Merge pull request #10 from MarcinKleczek/master - David Hicks05:53
*** Joins: giallu (~giallu@95.233.10.60)07:01
*** Quits: giallu (~giallu@95.233.10.60) (Changing host)07:01
*** Joins: giallu (~giallu@fedora/giallu)07:01
asm89jreese: i was wondering09:25
asm89wouldn't i be nicer to put all the source-integration plugin in one directory?09:25
asm89or for plugins in general to have one 'root' directory?09:25
asm89that way plugins can be added and managed to an install as a git submodule :)09:26
jreesewell, in the case of source integration, it's actually a collection of multiple plugins, specifically so mantis users can enable only the integration types they need09:26
asm89hm09:27
asm89and mantis forces every plugin to have one directory?09:27
jreesebasically, yes09:27
jreesethat's how it knows where to look for language files, php pages, and file assets09:28
asm89yes ok09:29
asm89well too bad then09:29
asm89managing everything as git submodules would be real nice imo09:29
jreesebasically, I create a separate folder outside the webroot, and simlink everything into the mantisbt/plugins folder09:29
jreesethat way I can still use git to manage the plugins09:30
asm89yes09:30
asm89but it's kind of a work around09:30
asm89although i see that the source-integration is actually a collection of plugins09:30
jreeseperhaps we could modify the mantisbt plugin manager to know to look recursively for the plugin's root folder09:31
asm89wouldn't that be nice?09:31
asm89i was just wondering the other day, so that's why i'm asking here :)09:32
jreesethat way you could checkout/submodule the plugins directly inside the plugins directory, and it could just keep looking deeper09:32
jreesethe question is whether that will have any undue impact on performance09:32
asm89hm09:33
jreesewell, nvm09:33
jreeseif we modify the way plugins are listed in the database, then it shouldn't have to search on pageload, it should only have to search on the manage plugin spage09:34
jreesemight mean creating two separate search/register functions, but it should be possible09:34
jreesesomething like that would be out of the question for 1.2.x though, so it would really be reliant on the direction we take for the next major release of mantis09:35
asm89of course09:35
asm89but i think you'll agree that setting up plugins with a 'git submodule add' would be nice! :)09:35
asm89since you can commit those to your local clone of the mantis reposity09:36
jreesewell, tbh, I find submodules to be a bit clunky, so I'd rather just do a manual checkout :P09:41
asm89really?09:41
asm89why if i may ask?09:42
asm89your setup would still benefit (but less)09:42
jreeseyeah, it seems like every time I update one of the submodules, I have to figure out how/why it doesn't seem to sync with the containing repo, and creating a new clone of the main repo requires doing some extra work and verification of the submodules09:43
jreeseit also frustrates me that submodules only keep track of what ref is used, so I have to do work to figure out what branch/tag it's currently pointing at09:43
asm89you have to do git fetch/pull in the submodule directory?09:43
asm89that data is 'contained' by the ref? :P09:44
jreeseyes/no09:44
jreesein one of the projects I'm working on, I'm using submodules to handle upstream libraries, and I've cloned them and checked out a stable tag09:44
asm89yes, that's what we've done too09:45
jreesebut if I reclone the repository and do submodule init/update, it no longer knows what tag I used, so I have to compare the checked out ref to all the tags09:45
asm89no09:45
asm89you can commit that?09:46
jreesethat's my point, when you commit the submodule status, it doesn't keep track of what branch/tag was used09:46
jreeseit only keeps track of the commit hash/ref pointed at by the branch/tag09:46
asm89but by that you know the branch/tag?09:47
jreeseonly by doing manual comparison09:47
asm89git log / status tells you that?09:47
asm89maybe i'm confused though09:47
jreesejreese@dyson ~workspace/fossalert/lib/flask » git st09:48
jreese# Not currently on any branch.09:48
jreesenothing to commit (working directory clean)09:48
jreesethat's done from inside the submodule09:48
jreeseand even if I know what branch it was from, because it's not actually checked out to a branch, I either have to use a verbose merge/pull command to get the latest work, or I have to manually fetch and checkout the branch again09:50
asm89hm09:51
asm89i thought the branch thing worked, but that is probably in my head09:51
jreeseif you do a fresh clone of your repo, and look in your submodule directory before you do the init/update, you can see that the data it uses only stores a commit ref09:52
jreeseso git basically does a `git clone <url>; cd <dir>; git checkout <hash>`09:53
asm89yes, i know09:53
jreesewhich results in your submodule's HEAD pointing directly at a commit instead of a branch/tag09:53
asm89but you're right about the branch stuff i guess09:54
asm89and that sucks indeed09:54
jreesegranted, I do agree that submodules are useful, insomuch that they allow your main repo to reproduce the state of all its dependent repos09:54
jreeseI just wish that it would keep track of more than just the commit hash09:55
asm89those things are always in 'detached HEAD' mode as soon as you do not checkout HEAD09:55
asm89agreed09:55
jreeseesp since there are a lot of cases where I want to have the submodules checked out to latest master, and be able to just `cd <subdir>; git pull` and be done09:55
jreesefurther, I would love if the submodule command had a `pull` option that would cd into every submodule that has a branch checked out, and do a `git pull` for me09:57
jreesebut I basically have to do all that myself09:57
asm89there is 'foreach'09:57
asm89but since there is indeed no information on the branch09:58
asm89that's not quite helpful09:58
jreeseright09:58
asm89there is a -b option to check out a specific branch though09:59
asm89i don't know if you can change that afterwards09:59
asm89removing a submodule is quite cumbersome too :P10:00
jreeseyeah10:01
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)11:12
*** Quits: asm89 (~asm89@unaffiliated/asm89) (Quit: bye!)11:12
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)11:43
*** Joins: Paul24 (~IceChat09@2001:470:9310:aaaa:14c:4cd9:1e37:d21f)11:56
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 276 seconds)12:10
*** Quits: Paul24 (~IceChat09@2001:470:9310:aaaa:14c:4cd9:1e37:d21f) (Ping timeout: 260 seconds)12:21
*** Joins: smithpg1002 (~smithpg10@65.119.51.224)12:25
*** Joins: giallu (~giallu@fedora/giallu)12:28
*** Joins: Paul24 (~IceChat09@cpc2-enfi9-0-0-cust94.hari.cable.virginmedia.com)12:49
*** Quits: smithpg1002 (~smithpg10@65.119.51.224) (Quit: smithpg1002)13:13
*** Parts: Rixie (~Rixie@188.177.20.182) ()13:44
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat)18:08
*** Quits: soustruh (~Miranda@ip-86-49-121-75.net.upcbroadband.cz) (Quit: visit http://wormscesky.cz)19:06
*** Quits: Paul24 (~IceChat09@cpc2-enfi9-0-0-cust94.hari.cable.virginmedia.com) (Quit: Copywight 2011 Elmer Fudd. All wights wesewved.)19:12
*** Joins: Cesare (~Adium@creati59.lnk.telstra.net)19:23
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00

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