在 Mac 上卸载 Mercurial

发布于 2024-10-19 06:33:22 字数 94 浏览 2 评论 0原文

我安装了 Mercurial,却发现 MonoDevelop 还不支持它,然后意识到我不知道如何正确卸载它。

我用谷歌搜索了一下,找不到任何支持卸载它的东西。

I installed Mercurial, only to realize that it's not supported yet with MonoDevelop, and then realized that I have no clue how to properly uninstall it.

I've googled around and can't find anything to support uninstalling it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

夏夜暖风 2024-10-26 06:33:22

MonoDevelop对版本控制的支持比较滞后,2.6版本只会添加对Git的基本支持。我建议保持 Hg 安装并使用命令行。您不应该仅仅因为您的 IDE 未与优秀的 DVCS 集成而放弃使用它。

由于 Hg 是基于 Python 的,因此您可以使用 easy_install 来卸载它。

easy_install -m mercurial 

有关详细信息,请参阅 easy_install 文档

MonoDevelop's support for version control is lagging, and only basic support for Git will be added in version 2.6. I would suggest keeping Hg installed and use the command line. You shouldn't dismiss using a great DVCS just because your IDE doesn't integrate with it.

Since Hg is Python based, you may be able to use easy_install to uninstall it for you.

easy_install -m mercurial 

See easy_install documentation for more information

一紙繁鸢 2024-10-26 06:33:22

您可以通过删除可执行文件来卸载 Mercurial,但这似乎是解决问题的唯一方法。可执行文件位于 /usr/local/bin 或 usr/local/bin/hg 中(我不太确定),但删除可执行文件(以及所有相关文件)是一种肮脏但有效的卸载 Mercurial 的方法。

You can uninstall mercurial by deleting the executable, but this seems to be the only way to fix the problem. The executable is in /usr/local/bin or in usr/local/bin/hg (I'm not quite sure), but deleting the executable (and all related files) is a dirty, but working, way to uninstall mercurial.

踏雪无痕 2024-10-26 06:33:22

我这样做了:

sudo rm /usr/local/bin/hg # To remove my local version (yours may be elsewhere)
sudo pip uninstall mercurial # To remove mercurial from my Python

默认情况下不安装 Pip,所以我想你可以使用:

easy_install -m mercurial # Like Steve suggests

这个食谱对我来说效果很好。

I did:

sudo rm /usr/local/bin/hg # To remove my local version (yours may be elsewhere)
sudo pip uninstall mercurial # To remove mercurial from my Python

Pip is not install by default so I guess you can use:

easy_install -m mercurial # Like Steve suggests

This recipe works well for me.

背叛残局 2024-10-26 06:33:22

我很幸运地遵循了 mercurial listserv< 上这篇文章的建议/a>:

再次启动您用于安装的 mpkg,转到第二个
窗口(读我或类似的内容)并检查“After the
安装”部分。

在 Mac OS X 10.6 上,文本为:此软件包安装 hg 可执行文件
在 /usr/local/bin 和 Mercurial 文件中
/Library/Python/2.6/site-packages/mercurial。

我可以想象您必须在 Mac OS X 10.7 上将 2.6 替换为 2.7。

I had luck following the suggestion of this post on the mercurial listserv:

Launch again the mpkg you used for the installation, go to the second
window (Read me or something similar) and check the "After the
install" section.

On Mac OS X 10.6, the text is: This package installs the hg executable
in /usr/local/bin and the Mercurial files in
/Library/Python/2.6/site-packages/mercurial.

I can imagine you have to replace 2.6 by 2.7 on Mac OS X 10.7.

漆黑的白昼 2024-10-26 06:33:22

虽然完全忘记了我是如何安装它的,但以下内容为我完成了工作。

sudo rm -fr /usr/local/lib/python2.7/site-packages/mercurial*

Though totally forgotten how I installed it, the following did the work for me.

sudo rm -fr /usr/local/lib/python2.7/site-packages/mercurial*
妄想挽回 2024-10-26 06:33:22

打开终端并键入此命令。

defaults write com.apple.finder AppleShowAllFiles -boolean false;killall Finder

Open Terminal and type this command.

defaults write com.apple.finder AppleShowAllFiles -boolean false;killall Finder
微暖i 2024-10-26 06:33:22

为什么不简单地使用 Mercurial 的提示符或第 3 方 GUI?无论如何,就速度/可靠性而言,这通常比 IDE 集成更受青睐。

Why not simply use the prompt or a 3rd party gui for mercurial? This is usually preferred over IDE Integration for speed/reliability anyways.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文