1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-11 07:11:04 +01:00

Describe how to process big checkins

Summary:
I was asked question about this twice this week.
I will link the section from [[ https://secure.phabricator.com/diffusion/ARC/browse/master/src/workflow/ArcanistDiffWorkflow.php;13b64da47aff0752$853-856 | ArcanistDiffWorkflow ]] afterwards.

NOTE: I believe that I read these instructions somewhere but I couldn't find it.

Test Plan: Read.

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3313
This commit is contained in:
vrana 2012-08-16 13:23:05 -07:00
parent 5342bb1073
commit fbf8328d96
2 changed files with 10 additions and 7 deletions

View file

@ -74,6 +74,9 @@ often well-correlated with complexity.
We generally follow these practices in Phabricator. The median change size for
Phabricator is 35 lines.
See @{article:Differential User Guide: Large Changes} for information about
reviewing big checkins.
= Write Sensible Commit Messages =
There are lots of resources for this on the internet. All of them say pretty much

View file

@ -16,7 +16,7 @@ Differential:
you can fork it or link against it.
- Committing an enormous text datafile, like a list of every English word or a
dump of a database.
- Making a trivial (e.g., find/replace) edit to 10,000 files.
- Making a trivial (e.g., find/replace or codemod) edit to 10,000 files.
You can still try submitting these kinds of changes, but you may encounter
problems getting them to work (database or connection timeouts, for example).
@ -36,18 +36,18 @@ work better than trying to get the entire change into Differential:
name on the review?". This is best for straightforward changes. The reviewer
is not going to review MySQL's source itself, instead they are reviewing the
change metadata: which version are you checking in, why are you checking it
in, and where are you putting it?
in, and where are you putting it? You won't be able to use "arc commit" or
"arc amend" to actually push the change. Just use "svn" or "git" and
manually edit the commit message instead. (It is normally sufficient to add
a "Reviewed By: <username>" field.)
- Create a Differential revision with only the metadata, like the script you
used to make automated changes or a text file explaining what you're doing,
and maybe a sample of some of the changes if they were automated. Include a
link to where the changes are staged so reviewers can look at the actual
changeset if they want to. This is best for more complicated changes, since
Differential can still be used for discussion and provide a permanent record
others can refer to.
In both cases, you won't be able to use "arc commit" or "arc amend" to actually
push the change. Just use "svn" or "git" and manually edit the commit message
instead. (It is normally sufficient to add a "Reviewed By: <username>" field.)
others can refer to. Once the revision is accepted, amend your local commit
(e.g. by `git commit --amend`) with the real change and push as usual.
These kinds of changes are generally rare and don't have much in common, which
is why there's no explicit support for them in Differential. If you frequently