/srv/irclogs.ubuntu.com/2017/12/07/#launchpad.txt

orsonmmzhi09:40
orsonmmzany launchpad devs around?09:40
cjwatsonorsonmmz: What's up?09:43
orsonmmzwe switched from bzr to git (thanks for supporting git!)09:43
orsonmmzand we looked for a way to mark bug reports as resolved in a commit09:44
orsonmmzas we used to do with bzr09:44
orsonmmzso there is a git hook we use to handle this automatically09:44
cjwatsonorsonmmz: In our git model, we only do bug scanning at the merge proposal level09:44
orsonmmzI know, we wanted something more:)09:44
cjwatsonWell, all it would've done in bzr would be link the branch to the bug in the UI09:45
orsonmmzI just wanted to let you know that we wrote a hook that parses commit messages and marks bug reports as fixed whenever 'Fixed: number' line is found09:45
cjwatsonIt never closed bugs automatically09:45
orsonmmzright, that's true09:45
cjwatsonOK, it's totally fine to do whatever project-specific workflow you want by way of hooks09:45
orsonmmzanyway, I just wanted to leave the hook here in case you find it useful https://git.launchpad.net/kicad-git-hook09:45
orsonmmzif it does not fit the plans, just ignore the message09:46
orsonmmzit is very convenient for us, so I decided to share it09:46
cjwatsonorsonmmz: Mind if I link to it from https://help.launchpad.net/Code/Git ?09:46
orsonmmzcjwatson: no problem09:46
orsonmmzprobably I should remove all 'kicad' references there, as it should work for any project09:47
cjwatsonorsonmmz: linked, thanks!  If your project uses merge proposals, then things will work a bit more smoothly if you change your commit message conventions to match https://help.launchpad.net/Code/Git#Linking_to_bugs09:49
cjwatson(but if you don't use MPs, then whatever)09:51
orsonmmzit is rather up to contributors, but we rarely get merge proposals09:51
orsonmmzI am not sure why, it seems rather convenient09:52
cjwatsonIt would be very difficult to do bug linking at the branch level, partly because git branches are quite ephemeral, partly because it's hard to see how to do something coherent when pushing a new repository without having to (expensively) scan the entire commit graph, and partly because commits are typically reachable from multiple branches so we'd need to know information about the ...09:56
cjwatson... repository's topology in terms of topic branches vs. trunks to work out where it would be best to attribute commits09:56
cjwatsonSo we went for merge proposals instead because that gives us a much better idea of the committer's intent, as well as being very much cheaper to compute09:56
rbasak"If pushing to the branch that HEAD points to, and it's a fast forward commit, then scan all old..new commits for bugs to autoclose"?10:08
rbasakIn fact even when not fast forwarding that could hold true.10:09
cjwatsonWe thought about it, but it would have weirdly different behaviour for new repositories vs. existing ones.10:24
cjwatsonAlso, we generally don't want to auto-close bugs based on revision control, because that requires too much project policy.10:25
cjwatsonFor example, in Launchpad we don't want to close bugs until we've deployed.10:25
=== maclin1 is now known as maclin
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
=== maclin1 is now known as maclin
=== chihchun is now known as chihchun_afk
=== maxb is now known as Guest16693

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