=== gkadam is now known as Guest11574 === Guest11574 is now known as gkadam === _morphis is now known as morphis === acheron_uk is now known as acheronuk === JanC is now known as Guest27912 === JanC_ is now known as JanC === JanC_ is now known as JanC [13:55] is there any way to auto-merge a merge request when accepted via LP? [13:55] for git [13:58] you'd have to set up some CI to do it [13:58] there's no feature in launchpad itself which auto-merges branches, be they git or bzr [14:17] clivejo: Some people are using https://code.launchpad.net/~zyga/+git/pmr to do this [14:19] cjwatson: what is $PROJECT ? [14:19] clivejo: context please? [14:19] https://git.launchpad.net/~zyga/+git/pmr/tree/process-merge-requests [14:20] Usage: process-merge-requests PROJECT [PROJECT...] [14:20] Please don't assume from the fact that I mention a tool that I know all about it [14:20] Its help says that it's the name of a Launchpad project to process [14:20] If you're not working with a top-level project then you might need to adjust it [14:22] just need something to accept the git merge request and have it auto add the code into the LP git repo [14:22] If you're working with a package, say, or just a random single repository - I think pmr probably needs to be adjusted to be able to work with something other than a project, and perhaps use e.g. git_repository.landing_candidates to find the list of MPs to process [14:22] Still, it'll be a lot easier for you to hack that into pmr than to start entirely from scratch [14:24] In https://code.launchpad.net/~louis-bouchard/ubuntu/+source/kexec-tools/+git/kexec-tools/+merge/296323 caribou rebased, and Launchpad seems to have handled that quite well. It has two diffs stored and I can pick between the two, and it tells me the commit hash of the two tips. [14:24] However, I couldn't seem to grab the old tip without asking caribou to push a tag (which he's now done for me) [14:24] Is this something that LP should do in MP handling, perhaps, so the before-rebase tips are available still? Or am I missing something? [14:27] Hm, difficult [14:27] Relates to the refs/merge/ namespace that we've wanted to implement for a while [14:31] I'd be reluctant to expose old commits. [14:32] It's a potential security issue. [14:33] rbasak: Why do you need the pre-rebase commit? [14:33] (and why was a pushed branch rebased? that's not usually a thing.) [14:35] wgrant: for any team that follows a git rebase workflow. In this case, what is important is the logical Ubuntu delta that we're breaking down into a patchset and then rebasing and pushing as an MP for an Ubuntu upload. If that needs to be redone, that's a rebase. [14:35] (I don't think it was needed in this particular case, but in the general case I think we want it) [14:37] wgrant: it can't be a security issue right now because LP happily displays the old diff still. I just can't get it locally easily but I could derive it as the diff is right there. [14:37] (or, if you consider it a security issue, you have that right now) [14:37] I don't think it's a security issue for something that was proposed as a merge. [14:37] We certainly don't want to expose unreferenced commits *in general*. [14:37] Perhaps the act of creating a merge proposal can be said to disclose the history of the MP. [14:37] wgrant: at MP stage, rebasing a branch is absolutely a thing. That's exactly what Linux devs do with RFC v2, v3 etc. [14:38] rbasak: But Linux uses patches, not branches. [14:38] They are one and the same. [14:38] It's not quite the same thing. [14:38] git interchanges between them losslessly. [14:38] I don't much like the "rebase proposed branch" workflow, but it's hugely popular in various communities and I think we ought to handle it well. [14:39] Hardly. [14:39] If I apply patches I expect to not be sensibly mergable. [14:39] If I base my thing on a branch I can usually expect it to be mergable. [14:39] It's extremely distasteful to rebase a public branch, but some people do do it. [14:40] Define "public branch". [14:40] If it's merely "the public can see it", then I disagree. [14:40] We would have more of a leg to stand on there if LP accepted incoming patches as a way to create merge proposals. [14:41] But right now the only way we advertise to ask the maintainer of an LP-hosted repository to take a patch is by way of an MP, so ... [14:41] I still fail see the difference between a patchset and a branch, except that a patchset needs to imply what to base it on and with a branch that's explicit. [14:41] Or, more specifically, the difference between a patchset and a git ref. [14:42] A branch additionally implies that you intend to grow it further I suppose, whereas a tag doesn.t [14:42] I would be in favour of explicitly modelling the rather commonplace notion of "this branch is expected not to be fast-forwarding", although it would be tricky since at the moment we try not to maintain too much explicit database stage about refs. [14:42] s/stage/state/ [14:42] Serious git users often have some branches that they advertise as FFing and some that they advertise as explicitly not being so. [14:43] Right. I like to share my work, even if I intend to rebase it. [14:43] As long as I make that clear, I don't see that it automatically makes it distasteful to publish my work in progress. [14:44] OTOH, it it's a coordination point for others, eg. a project master branch, or even a feature branch that multiple people are working on, then I wouldn't rebase that. [14:44] Why did you need to see the old commit in this case? [14:45] Because I want to diff the old commit against the new commit so that I can check that my review points have been addressed and nothing else has regressed that I might be unhappy about. In this case, I would have preferred a couple of commits on to the end. But in the general case, the review is severe enough that starting again would be easier both for the submitter and the reviewer. [14:45] So I hear that VCSes have a concept of controlling changes :P [14:45] the review can be severe enough, that is. [14:46] This is the collision of two things in the VCS. 1) A time machine; 2) Management of patchsets. [14:46] Only git really has 2. [14:47] What I care about is the evolution of an entire patchset over time. I want the patchset to be a first class citizen. [14:47] Conceptually it's git-dpm but for Ubuntu deltas. [14:47] In GitHub PR terms that would probably be one PR per commit, and squash at the end. [14:48] Yeah, and in the bzr world I was told to use stacked branches. [14:48] (GitHub doesn't have the feature you ask for here, so if the workflow is common then there must be some other way to achieve it with PRs, which is interesting to look at here) [14:48] Squashing at the end is somewhat different. [14:48] Advanced git users consider Github broken too. [14:49] Right, I'm just trying to think how people who use this workflow would cope with GitHub. [14:49] As presumably they do. [14:49] By which I mean that squashes everything into just one commit, rather than just squashing away the commits before the most recent rebase. [14:50] cjwatson: Right, but on GitHub you manage patchsets by using one PR per patch. [14:50] rbasak is trying to do a whole patchset in a single MP. [14:50] Maybe people just do much smaller patchsets on GitHub since its workflow for it is still a bit more convenient than ours? [14:50] But is probably not unreasonable, but not how GitHub, for example, does it. [14:51] Though I guess that can't account for all of it. [14:52] It also seems like it would be useful to diff equivalent commits in different revisions of the MP. [14:52] As gerrit allows. [14:52] Which is doable, but awkward, by grabbing both commits locally and diffing them. [14:52] It does commit message analysis IIRC? [14:52] But that's hardly optimal. [14:52] I'd like that feature in git too. [14:52] gerrit uses Change-Ids, I think. [14:53] It's painful though, to follow commits through rebases since they can be squashed, split, deleted, added to or even juggled in a more complex way than that. [14:53] I've used git notes to track changes through rebases before, though it's still painful. [18:01] hmm. how do MPs for git work? /Code/Git doesn't say anything about them :-/ [18:02] dobey: we've done a few if you want some links (using the server team git workflow) [18:02] they seem to mostly work [18:02] dobey: there's a page in LP for each branch. Go to that page and create the MP from there. [18:02] nacc: i know i've seen them. but i don't see how to create one [18:02] dobey: oh i see [18:03] yeah what rbasak said, it's only visible from the to-be-merged branch [18:03] s/the/a/ [18:03] https://code.launchpad.net/~racb -> View Git repositories -> -> -> Propose for merging [18:07] so i have to make new branches; i can't just clone, add new remote, make changes, commit, push up, and then propose that? [18:07] <- not a git user. [18:07] dobey: you could, i think [18:07] When you push up, you're effectively creating a branch. LP requires you to push the branch to your own repo though, not a team repo. [18:07] your 'master' branch is not the same as the origin 'master' branch [18:08] usually you'd use a 'topic' branhc, though, just for clarity [18:08] So yes, just clone, make changes, add new remote (your own LP URL for the repo). As soon as you push, your personal repo and branch get automatically created. [18:09] When the MP is done, somebody who can push to the team repo will need to push the branch. [18:09] (which I think is essentially the same as bzr?) [18:19] hmm [18:20] is https://help.launchpad.net/Code/Git wrong for how to add the remote? [18:20] git complains "remote origin already exists" [18:28] dobey: you're naming the remote origin. Name it something else. [18:28] (my convention is "lpme") [18:29] "git remote add lpme ..." [18:35] rbasak: so the docs are wrong (or at least unclear)? [18:49] it's not wrong as such, it's just describing the situation of a new repository rather than one that you cloned from elsewhere. but perhaps unclear, yes [18:49] (I don't think we can get into documenting all of git though ...) [18:51] sure. maybe change the page structure though so it's above the "pulling code from git" section, and maybe rename it to "Creating a new repository" or something :) [18:54] when I'm out from postgres planner headspace :) [18:55] wouldn't be sad about a reminder bug [19:04] alright :) [20:38] cjwatson: you wouldn't know how many source packages ubuntu has currently, offhand ? [20:38] cjwatson: I thought LP might tell me, but nope :) [20:39] cjwatson: nearest 5K would be more than sufficient for my needs [20:49] lifeless: 1 → 75 of 32356 results [20:49] lifeless: https://launchpad.net/ubuntu/+search?text= [20:50] oh that's binaries [20:50] doh [20:52] packages.ubuntu.com requires at least 2 characters in keyword search. blah [21:26] cjwatson: imho the null-and-void task from these 3 bugs should be removed. can you do it? https://bugs.launchpad.net/null-and-void [21:32] Do I have to deactivate an existing signature on the CoC if I want to update it with my current PGP keys? [21:42] dobey: yeah [23:21] lifeless: [23:21] $ hcdist yakkety-proposed grep-dctrl-sources -sVersion .|wc -l [23:21] 26975 [23:21] 26125 in the release pocket. [23:21] Not sure if I missed something but it sounds about right.