develooper Front page | perl.perl5.porters | Postings from February 2013

[perl #116965] git commit hook to prevent changes on left of merge

From:
Ricardo SIGNES
Date:
February 27, 2013 14:20
Subject:
[perl #116965] git commit hook to prevent changes on left of merge
Message ID:
rt-3.6.HEAD-31961-1361974837-1313.116965-75-0@perl.org
# New Ticket Created by  Ricardo SIGNES 
# Please include the string:  [perl #116965]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116965 >



In the perl.git repo, we usually want merge commits to introduce changes only
on the right.  That is, this is okay:

  *    merge foo branch
  | \
  |  * work on perl foo
  |  * more work on perl foo
  | /
  *    previous unrelated work

...but this is not:

  *    merge bar branch
  | \
  |  * work on perl bar
  |  * more work on perl bar
  *  | work on blead
  | /
  *    previous unrelated work

The second example should be rebased on blead, and then either merged or not
merged.

Changes on the left of the merge should only occur quite rarely, for example
when merging a release branch back to blead, when blead has advanced during the
release process.

We should prevent merges like this unless --force is given.  The warning should
explain what is wrong, and how the user should proceed.

-- 
rjbs




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About