Add built local::lib
[catagits/Gitalist.git] / local-lib5 / man / man3 / Moose::Manual::Contributing.3pm
CommitLineData
3fea05b9 1.\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.3
2.\"
3.\" Standard preamble:
4.\" ========================================================================
5.de Sh \" Subsection heading
6.br
7.if t .Sp
8.ne 5
9.PP
10\fB\\$1\fR
11.PP
12..
13.de Sp \" Vertical space (when we can't use .PP)
14.if t .sp .5v
15.if n .sp
16..
17.de Vb \" Begin verbatim text
18.ft CW
19.nf
20.ne \\$1
21..
22.de Ve \" End verbatim text
23.ft R
24.fi
25..
26.\" Set up some character translations and predefined strings. \*(-- will
27.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28.\" double quote, and \*(R" will give a right double quote. | will give a
29.\" real vertical bar. \*(C+ will give a nicer C++. Capital omega is used to
30.\" do unbreakable dashes and therefore won't be available. \*(C` and \*(C'
31.\" expand to `' in nroff, nothing in troff, for use with C<>.
32.tr \(*W-|\(bv\*(Tr
33.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34.ie n \{\
35. ds -- \(*W-
36. ds PI pi
37. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
39. ds L" ""
40. ds R" ""
41. ds C` ""
42. ds C' ""
43'br\}
44.el\{\
45. ds -- \|\(em\|
46. ds PI \(*p
47. ds L" ``
48. ds R" ''
49'br\}
50.\"
51.\" If the F register is turned on, we'll generate index entries on stderr for
52.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53.\" entries marked with X<> in POD. Of course, you'll have to process the
54.\" output yourself in some meaningful fashion.
55.if \nF \{\
56. de IX
57. tm Index:\\$1\t\\n%\t"\\$2"
58..
59. nr % 0
60. rr F
61.\}
62.\"
63.\" For nroff, turn off justification. Always turn off hyphenation; it makes
64.\" way too many mistakes in technical documents.
65.hy 0
66.if n .na
67.\"
68.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69.\" Fear. Run. Save yourself. No user-serviceable parts.
70. \" fudge factors for nroff and troff
71.if n \{\
72. ds #H 0
73. ds #V .8m
74. ds #F .3m
75. ds #[ \f1
76. ds #] \fP
77.\}
78.if t \{\
79. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80. ds #V .6m
81. ds #F 0
82. ds #[ \&
83. ds #] \&
84.\}
85. \" simple accents for nroff and troff
86.if n \{\
87. ds ' \&
88. ds ` \&
89. ds ^ \&
90. ds , \&
91. ds ~ ~
92. ds /
93.\}
94.if t \{\
95. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101.\}
102. \" troff and (daisy-wheel) nroff accents
103.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110.ds ae a\h'-(\w'a'u*4/10)'e
111.ds Ae A\h'-(\w'A'u*4/10)'E
112. \" corrections for vroff
113.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115. \" for low resolution devices (crt and lpr)
116.if \n(.H>23 .if \n(.V>19 \
117\{\
118. ds : e
119. ds 8 ss
120. ds o a
121. ds d- d\h'-1'\(ga
122. ds D- D\h'-1'\(hy
123. ds th \o'bp'
124. ds Th \o'LP'
125. ds ae ae
126. ds Ae AE
127.\}
128.rm #[ #] #H #V #F C
129.\" ========================================================================
130.\"
131.IX Title "Moose::Manual::Contributing 3"
132.TH Moose::Manual::Contributing 3 "2009-10-24" "perl v5.8.7" "User Contributed Perl Documentation"
133.SH "NAME"
134Moose::Manual::Contributing \- How to get involved in Moose
135.SH "GETTING INVOLVED"
136.IX Header "GETTING INVOLVED"
137Moose is an open project, and we are always willing to accept bug fixes,
138more tests, and documentation patches. Commit bits are given out freely, and
139the \*(L"\s-1STANDARD\s0 \s-1WORKFLOW\s0\*(R" is very simple. The general gist is: clone the Git
140repository, create a new topic branch, hack away, then find a committer to
141review your changes.
142.PP
143Note that this document applies to both Moose and Class::MOP development.
144.SH "NEW FEATURES"
145.IX Header "NEW FEATURES"
146Moose already has a fairly large feature set, and we are currently
147\&\fBnot\fR looking to add any major new features to it. If you have an
148idea for a new feature in Moose, you are invited instead to create a
149MooseX module first.
150.PP
151At this stage, no new features will even be considered for addition
152into the core without first being vetted as a MooseX module, unless
153it is absolutely 100% impossible to implement the feature outside the
154core.
155.PP
156If you think it is 100% impossible, please come discuss it with us on \s-1IRC\s0 or
157via e\-mail. However, your feature may need a small hook in the core, or a
158refactoring of some core modules, and we are definitely open to that.
159.PP
160Moose was built from the ground up with the idea of being highly
161extensible, and quite often the feature requests we see can be
162implemented through a couple of small and well placed extensions. Try
163it, it is much easier than you might think.
164.SH "PEOPLE"
165.IX Header "PEOPLE"
166As Moose has matured, some structure has emerged in the process.
167.IP "Contributors \- people creating a topic or branch" 4
168.IX Item "Contributors - people creating a topic or branch"
169You.
170.Sp
171If you have commit access, you can create a topic on the main Moose.git,
172otherwise either give us your \s-1SSH\s0 key or create your own clone of the
173<git://git.moose.perl.org/Moose.git> repository or fork of the GitHub mirror.
174.IP "Core Committers \- people reviewing and merging a branch" 4
175.IX Item "Core Committers - people reviewing and merging a branch"
176These people have worked with the Moose codebase for a while.
177.Sp
178They've been responsible for large features or branches and can help review
179your changes and apply them to the master branch using the basic
180\&\*(L"\s-1APPROVAL\s0 \s-1WORKFLOW\s0\*(R".
181.Sp
182They are also fairly well versed in Git, in order to merge the branches with
183no mistakes (especially when the merge fails), and to provide advice to
184contributors.
185.IP "Cabal \- people who can release moose" 4
186.IX Item "Cabal - people who can release moose"
187These people are the ones who have co-maint on Moose itself and can create a
188release. They're listed under \*(L"\s-1CABAL\s0\*(R" in Moose in the Moose documentation. They
189merge from Master to Stable.
190.SH "BRANCH LAYOUT"
191.IX Header "BRANCH LAYOUT"
192The repository is divided into several branches to make maintenance easier for
193everyone involved. The branches below are ordered by level of stability.
194.IP "Stable (refs/heads/stable)" 4
195.IX Item "Stable (refs/heads/stable)"
196The branch from which releases are cut. When making a new release, the
197release manager merges from master to stable. The stable branch is only
198updated by someone from the Cabal during a release.
199.IP "Master (refs/heads/master)" 4
200.IX Item "Master (refs/heads/master)"
201The branch for new development. This branch is merged into and branched from.
202.IP "Branches (refs/heads/*)" 4
203.IX Item "Branches (refs/heads/*)"
204Large community branches for big development \*(L"projects\*(R".
205.IP "Topics (refs/heads/topic/*)" 4
206.IX Item "Topics (refs/heads/topic/*)"
207Small personal branches that have been published for review, but can get
208freely rebased. Targeted features that may span a handful of commits.
209.Sp
210Any change or bugfix should be created in a topic branch.
211.SH "STANDARD WORKFLOW"
212.IX Header "STANDARD WORKFLOW"
213.Vb 3
214\& # update your copy of master
215\& git checkout master
216\& git pull \-\-rebase
217.Ve
218.PP
219.Vb 2
220\& # create a new topic branch
221\& git checkout \-b topic/my\-feature
222.Ve
223.PP
224.Vb 4
225\& # hack, commit, feel free to break fast forward
226\& git commit \-\-amend # allowed
227\& git rebase \-\-interactive # allowed
228\& git push \-\-force origin topic/my_feature # allowed
229.Ve
230.PP
231Then ask for a review/approval (see \*(L"\s-1APPROVAL\s0 \s-1WORKFLOW\s0\*(R"), and merge
232to master. If it merges cleanly and nobody has any objections, then it
233can be pushed to master.
234.PP
235If it doesn't merge as a fast forward, the author of the branch needs to run
236.PP
237.Vb 2
238\& git remote update
239\& git rebase origin/master # or merge
240.Ve
241.PP
242and bring the branch up to date, so that it can be merged as a fast forward
243into master.
244.PP
245No actual merging (as in a human resolving conflicts) should be done when
246merging into master, only from master into other branches.
247.Sh "Preparing a topic branch"
248.IX Subsection "Preparing a topic branch"
249Before a merge, a topic branch can be cleaned up by the author.
250.PP
251This can be done using interactive rebase to combine commits, etc, or even
252\&\f(CW\*(C`git merge \-\-squash\*(C'\fR to make the whole topic into a single commit.
253.PP
254Structuring changes like this makes it easier to apply git revert at a later
255date, and encourages a clean and descriptive history that documents what the
256author was trying to do, without the various hangups that happened while they
257were trying to do it (commits like \*(L"oops forgot that file\*(R" are not only
258unnecessary noise, they also make running things like git bisect or git revert
259harder).
260.PP
261However, by far the biggest benefit is that the number of commits that go into
262master is eventually reduced, and they are simple and coherent, making it much
263easier for people maintaining branches to stay up to date.
264.PP
265All large changes should be documented in Moose::Manual::Delta.
266.SH "APPROVAL WORKFLOW"
267.IX Header "APPROVAL WORKFLOW"
268Moose is an open project but it is also an increasingly important one. Many
269modules depend on Moose being stable. Therefore, we have a basic set of
270criteria for reviewing and merging branches. What follows is a set of rough
271guidelines that ensures all new code is properly vetted before it is merged to
272the master branch.
273.PP
274It should be noted that if you want your specific branch to be approved, it is
275\&\fByour\fR responsibility to follow this process and advocate for your branch.
276The preferred way is to send a request to the mailing list for review/approval,
277this allows us to better keep track of the branches awaiting approval and those
278which have been approved.
279.IP "Small bug fixes, doc patches and additional passing tests." 4
280.IX Item "Small bug fixes, doc patches and additional passing tests."
281These items don't really require approval beyond one of the core contributors
282just doing a simple review.
283.IP "Larger bug fixes, doc additions and \s-1TODO\s0 or failing tests." 4
284.IX Item "Larger bug fixes, doc additions and TODO or failing tests."
285Larger bug fixes should be reviewed by at least one cabal member and should be
286tested using the \fIcpan-stable-smolder\fR script in the moose-dev-utils
287repository.
288.Sp
289New documentation is always welcome, but should also be reviewed by a cabal
290member for accuracy.
291.Sp
292\&\s-1TODO\s0 tests are basically feature requests, see our \*(L"\s-1NEW\s0 \s-1FEATURES\s0\*(R" section
293for more information on that. If your feature needs core support, create a
294topic/ branch using the \*(L"\s-1STANDARD\s0 \s-1WORKFLOW\s0\*(R" and start hacking away.
295.Sp
296Failing tests are basically bug reports. You should find a core contributor
297and/or cabal member to see if it is a real bug, then submit the bug and your
298test to the \s-1RT\s0 queue. Source control is not a bug reporting tool.
299.IP "New user-facing features." 4
300.IX Item "New user-facing features."
301Anything that creates a new user-visible feature needs to be approved by
302\&\fBmore than one\fR cabal member.
303.Sp
304Make sure you have reviewed \*(L"\s-1NEW\s0 \s-1FEATURES\s0\*(R" to be sure that you are following
305the guidelines. Do not be surprised if a new feature is rejected for the core.
306.IP "New internals features." 4
307.IX Item "New internals features."
308New features for Moose internals are less restrictive than user facing
309features, but still require approval by \fBat least one\fR cabal member.
310.Sp
311Ideally you will have run the smolder script to be sure you are not breaking
312any MooseX module or causing any other unforeseen havoc. If you do this
313(rather than make us do it), it will only help to hasten your branch's
314approval.
315.IP "Backwards incompatible changes." 4
316.IX Item "Backwards incompatible changes."
317Anything that breaks backwards compatibility must be discussed by the cabal
318and agreed to by a majority of the members.
319.Sp
320We have a policy for what we see as sane \*(L"\s-1BACKWARDS\s0 \s-1COMPATIBILITY\s0\*(R" for
321Moose. If your changes break back\-compat, you must be ready to discuss and
322defend your change.
323.SH "RELEASE WORKFLOW"
324.IX Header "RELEASE WORKFLOW"
325.Vb 8
326\& git checkout master
327\& # edit for final version bumping, changelogging, etc
328\& # prepare release (test suite etc)
329\& git commit
330\& git checkout stable
331\& git merge master # must be a fast forward
332\& git push both
333\& # ship & tag
334.Ve
335.PP
336Development releases are made without merging into the stable branch.
337.Sh "Release How-To"
338.IX Subsection "Release How-To"
339Moose (and Class::MOP) releases fall into two categories, each with their
340own level of release preparation. A minor release is one which does not
341include any \s-1API\s0 changes, deprecations, and so on. In that case, it is
342sufficient to simply test the release candidate against a few different
343different Perls. Testing should be done against at least two recent major
344version of Perl (5.8.8 and 5.10.1, for example). If you have more versions
345available, you are encouraged to test them all. However, we do not put a lot
346of effort into supporting older 5.8.x releases.
347.PP
348For major releases which include an \s-1API\s0 change or deprecation, you should run
349the \fIcpan-stable-smolder\fR script from the moose-dev-utils repository. This script tests a
350long list of MooseX and other Moose-using modules from \s-1CPAN\s0. In order to run
351this script, you must arrange to have the new version of Moose and/or
352Class::MOP in Perl's include path. You can install the module, or fiddle with
353the \f(CW\*(C`PERL5LIB\*(C'\fR environment variable, whatever makes you happy.
354.PP
355The smolder script downloads each module from \s-1CPAN\s0, runs its tests, and logs
356failures and warnings to a \fIcpan\-stable\-smolder.log\fR file. If there are
357failures or warnings, please work with the authors of the modules in question
358to fix them. If the module author simply isn't available or does not want to
359fix the bug, it is okay to make a release.
360.PP
361Regardless of whether or not a new module is available, any breakages should
362be noted in the conflicts list in the distribution's \fIMakefile.PL\fR.
363.PP
364Both Class::MOP and Moose have a \fI.shipit\fR file you can use to make sure the
365release goes smoothly. You are strongly encouraged to use this instead of
366doing the final release steps by hand.
367.SH "EMERGENCY BUG WORKFLOW (for immediate release)"
368.IX Header "EMERGENCY BUG WORKFLOW (for immediate release)"
369Anyone can create the necessary fix by branching off of the stable branch:
370.PP
371.Vb 4
372\& git remote update
373\& git checkout \-b topic/my\-emergency\-fix origin/stable
374\& # hack
375\& git commit
376.Ve
377.PP
378Then a cabal member merges into stable:
379.PP
380.Vb 6
381\& git checkout stable
382\& git merge topic/my\-emergency\-fix
383\& git push
384\& # release
385\& git checkout master
386\& git merge stable
387.Ve
388.SH "PROJECT WORKFLOW"
389.IX Header "PROJECT WORKFLOW"
390For longer lasting branches, we use a subversion style branch layout, where
391master is routinely merged into the branch. Rebasing is allowed as long as all
392the branch contributors are using \f(CW\*(C`git pull \-\-rebase\*(C'\fR properly.
393.PP
394\&\f(CW\*(C`commit \-\-amend\*(C'\fR, \f(CW\*(C`rebase \-\-interactive\*(C'\fR, etc. are not allowed, and should
395only be done in topic branches. Committing to master is still done with the
396same review process as a topic branch, and the branch must merge as a fast
397forward.
398.PP
399This is pretty much the way we're doing branches for large-ish things right
400now.
401.PP
402Obviously there is no technical limitation on the number of branches. You can
403freely create topic branches off of project branches, or sub projects inside
404larger projects freely. Such branches should incorporate the name of the branch
405they were made off so that people don't accidentally assume they should be
406merged into master:
407.PP
408.Vb 1
409\& git checkout \-b my\-project\-\-topic/foo my\-project
410.Ve
411.PP
412(unfortunately Git will not allow \f(CW\*(C`my\-project/foo\*(C'\fR as a branch name if
413\&\f(CW\*(C`my\-project\*(C'\fR is a valid ref).
414.ie n .SH "THE ""PU"" BRANCH"
415.el .SH "THE ``PU'' BRANCH"
416.IX Header "THE PU BRANCH"
417To make things easier for longer lived branches (whether topics or projects),
418the 'pu' branch is basically what happens if you merge all of the branches and
419topics together with master.
420.PP
421We can update this as necessary (e.g. on a weekly basis if there is merit),
422notifying the authors of the respective branches if their branches did not merge
423(and why).
424.PP
425To update 'pu':
426.PP
427.Vb 4
428\& git checkout pu
429\& git remote update
430\& git reset \-\-hard origin/master
431\& git merge @all_the_branches
432.Ve
433.PP
434If the merge is clean, 'pu' is updated with \f(CW\*(C`push \-\-force\*(C'\fR.
435.PP
436If the merge is not clean, the offending branch is removed from
437\&\f(CW@all_the_branches\fR, with a small note of the conflict, and we try again.
438.PP
439The authors of the failed branches should be told to try to merge their branch
440into 'pu', to see how their branch interacts with other branches.
441.PP
442\&'pu' is probably broken most of the time, but lets us know how the different
443branches interact.
444.SH "BRANCH ARCHIVAL"
445.IX Header "BRANCH ARCHIVAL"
446Merged branches should be deleted.
447.PP
448Failed branches may be kept, but consider moving to refs/attic/ (e.g.
449http://danns.co.uk/node/295) to keep git branch \-l current.
450.PP
451Any branch that could still realistically be merged in the future, even if it
452hasn't had work recently, should not be archived.
453.SH "TESTS, TESTS, TESTS"
454.IX Header "TESTS, TESTS, TESTS"
455If you write \fIany\fR code for Moose or Class::MOP, you \fBmust\fR add
456tests for that code. If you do not write tests then we cannot
457guarantee your change will not be removed or altered at a later date,
458as there is nothing to confirm this is desired behavior.
459.PP
460If your code change/addition is deep within the bowels of
461Moose/Class::MOP and your test exercises this feature in a non-obvious
462way, please add some comments either near the code in question or in
463the test so that others know.
464.PP
465We also greatly appreciate documentation to go with your changes, and
466an entry in the Changes file. Make sure to give yourself credit!
467.SH "BACKWARDS COMPATIBILITY"
468.IX Header "BACKWARDS COMPATIBILITY"
469Change is inevitable, and Moose is not immune to this. We do our best
470to maintain backwards compatibility, but we do not want the code base
471to become overburdened by this. This is not to say that we will be
472frivolous with our changes, quite the opposite, just that we are not
473afraid of change and will do our best to keep it as painless as
474possible for the end user.
475.PP
476The rule is that if you do something that is not backwards compatible, you
477\&\fBmust\fR do \fIat least\fR one deprecation cycle (more if it is larger change).
478For really larger or radical changes dev releases may be needed as well (the
479Cabal will decide on this on a case-per-case basis).
480.PP
481The preference with regard to deprecation is to warn loudly and often so that
482users will have time to fix their usages.
483.PP
484All backwards incompatible changes \fBmust\fR be documented in
485Moose::Manual::Delta. Make sure to document any useful tips or workarounds
486for the change in that document.
487.SH "AUTHOR"
488.IX Header "AUTHOR"
489Stevan Little <stevan@iinteractive.com>
490.PP
491Chris (perigrin) Prather
492.PP
493Yuval (nothingmuch) Kogman
494.SH "COPYRIGHT AND LICENSE"
495.IX Header "COPYRIGHT AND LICENSE"
496Copyright 2009 by Infinity Interactive, Inc.
497.PP
498<http://www.iinteractive.com>
499.PP
500This library is free software; you can redistribute it and/or modify
501it under the same terms as Perl itself.