Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Detect renames in brew update #11158

Closed
wants to merge 2 commits into from
Closed

Detect renames in brew update #11158

wants to merge 2 commits into from

Conversation

jacknagel
Copy link
Contributor

A starting point to allow formulae to be renamed without breaking upgrades.

This could maybe be less hackish, but I am not a Rubyist.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@mxcl
Copy link
Contributor

mxcl commented Mar 23, 2012

Great!

@jacknagel jacknagel closed this in 40599c3 Mar 23, 2012
@MikeMcQuaid
Copy link
Member

Nice.

staticfloat pushed a commit to staticfloat/homebrew that referenced this pull request Mar 26, 2012
Renamed formulae will cease to display as an add/delete pair and instead
end up the in the "Renamed" section. In the future we should be able to
take this information and use it to rename existing kegs during updates,
allowing us to rename formulae without breaking upgrades.

Renaming a formula requires renaming the class, so there will be at
least one add/delete pair in the file. Thus, the similarity threshold
for detecting renames is set at 85% to allow a little bit of content
turnover without losing track of the rename.

Closes Homebrew#11158.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Sharpie pushed a commit to Sharpie/homebrew that referenced this pull request Jun 18, 2012
Renamed formulae will cease to display as an add/delete pair and instead
end up the in the "Renamed" section. In the future we should be able to
take this information and use it to rename existing kegs during updates,
allowing us to rename formulae without breaking upgrades.

Renaming a formula requires renaming the class, so there will be at
least one add/delete pair in the file. Thus, the similarity threshold
for detecting renames is set at 85% to allow a little bit of content
turnover without losing track of the rename.

Closes Homebrew#11158.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012
Renamed formulae will cease to display as an add/delete pair and instead
end up the in the "Renamed" section. In the future we should be able to
take this information and use it to rename existing kegs during updates,
allowing us to rename formulae without breaking upgrades.

Renaming a formula requires renaming the class, so there will be at
least one add/delete pair in the file. Thus, the similarity threshold
for detecting renames is set at 85% to allow a little bit of content
turnover without losing track of the rename.

Closes Homebrew#11158.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants