On 21 December 2016 at 17:33, Rainer Müller <rai...@macports.org> wrote: > On 2016-12-21 16:39, Mojca Miklavec wrote: >> On 21 December 2016 at 12:38, Rainer Müller wrote: >>> On 2016-12-21 11:41, Andrea D'Amore wrote: >>>> While trying to push a small change (shell/xonsh) I managed to rebase >>>> AND merge the about 300 commits since my previous update, >>>> as a results those 300 commits in master now are "duplicated". >>>> >>>> The files in master are unaltered, except for the actual portfile I >>>> was pushing, but the history is now messier. >> >> Ah, that explains why I was getting a huge number of emails from Trac. >> All the "See:" and "Closes:" from the earlier commits were now sent >> again and duplicated on Trac. > > Going back to the old history state would also invalidate the commit > references in these Trac comments. This requires manual work to go > through all tickets referenced in these 300 duplicated commits. Should > we delete these comments although notifications were sent, so the > notifications point to non-existing comments?
I wouldn't worry too much. Yes, this probably means a lot of invalid references, but they are all duplicated, so one can always find the same valid commit message on top. (It could be done, but I wouldn't put a high priority on it.) >>>> I apologize for the error, I'm really sorry for the confusion and >>>> noise it will trigger in tickets. >>> >>> I guess we have to live with this history... >> >> I would vote for fixing the problem. Sure, some developers might be >> affected, but these duplicated commits are super messy and the only >> time to fix that would be now, there's no way to do that later. > > If new commits made references to Trac tickets, rebasing them onto a > fixed history will create new comments (and the old ones need to be > deleted). This number should still be relatively small and easy to check if this is done fast enough. (Comments can probably only be removed by admins.) Mojca