aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/bump-formula-pr.rb
AgeCommit message (Collapse)Author
2016-08-20Merge pull request #760 from jasonkarns/bump-formula-pr-return-to-branchMartin Afanasjew
bump-formula-pr: return to starting branch
2016-08-19bump-formula-pr: return to starting branchJason Karns
After branching, bumping, pushing, and pr-ing; return to whatever branch was originally checked out. In most cases, I'd imagine users to want to continue receiving tap updates from master. However, after using bump-formula-pr, the tap in which the formula was bumped is left on the working branch that was doing the bumping and pull-request. After opening the PR, we should return to whatever branch the user originally had checked out – most likely master. (But git allows us to just say "previous branch" by using `-`)
2016-08-19bump-formula-pr now creates non-tracking branchesJason Karns
Without `--no-track`, some git setups may automatically set `origin/master` as the tracked upstream for the newly created branch. This upstream is what hub defaults as --head when opening PRs. By not allowing git to set `origin/master` as upstream, hub can then use the proper --head for the PR. Since hub still needs to know what --head is intended to be, we can set the branch's upstream when pushing: with the --set-upstream option. Fixes #755
2016-08-17Fix minor issues in command help text formattingMartin Afanasjew
- Inconsistent or unneeded indentation - Missing or superfluous empty lines - Missing or wrongly formatted arguments in command summary - Missing punctuation
2016-08-08bump-formula-pr: format documentation for --help.Steven Peters
2016-08-05various: eliminate the usage of `any?` (#638)Xu Cheng
`any?` is not the opposite of `empty?`. Besides the case that `[false, nil].any?` will return false, `any?`(O(n)) has much worse performance than `empty?`(O(1)).
2016-07-13various: proper escape dot in regexXu Cheng
2016-06-17bump-formula-pr: remove formula revisionilovezfs
If we're bumping the formula's stable version, then we also must reset the formula revision to zero. Note that if and only if a revision is being removed, this commit will enforce the convention that there should be a blank line before a simple head spec if and only if there is a formula revision. Any preexisting violation of the convention (in particular, a blank line before a simple head spec in the absence of a formula revision) won't be proactively corrected since we'd not be removing a formula revision in that case. Closes #369. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-06-16bump-formula-pr: reflect new version in dry-runilovezfs
- simulate version change for dry-run - make sure we're using :devel version if called with --devel Closes #318. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-03-28bump-formula-pr: fix typo in spec existence checkChristian Moritz
Closes Homebrew/homebrew#50472. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-28bump-formula-pr: add new command.Mike McQuaid
Add a new developer command (i.e. requires `HOMEBREW_DEVELOPER` set in your environment) to bump the version of a formula and create a new pull request with the new version. Closes Homebrew/homebrew#49848.