日食 + 本地CVS + 派德

发布于 2024-07-23 22:39:07 字数 298 浏览 5 评论 0原文

我尝试了几个Python IDE(在Windows平台上),但最终我发现只有Eclipse + PyDev满足我的需求。 这套工具确实非常舒适且易于使用。 我目前正在做一个更大的项目。 我希望能够使用 CVS 或任何其他安装在我的本地硬盘上的版本控制系统(我最近搬了家,还没有访问互联网。)

这对我来说并不重要如果是 CVS - 也可以是任何其他版本控制系统。 如果使用 Eclipse 进行配置不会太困难,那就太好了。 谁能给我一些可能的解决方案? 有什么提示吗?

预先致意并感谢您提供任何线索。 请原谅我的英语;)

I tried several Python IDEs (on Windows platform) but finally I found only Eclipse + PyDev meeting my needs. This set of tools is really comfortable and easy to use. I'm currently working on a quite bigger project. I'd like to have a possibility to use CVS or any other version control system which would be installed on my local harddrive (I recently moved my house and don't have yet an access to internet.)

It doesn't matter for me if it'd be CVS - can also be any other version control system. It'd be great if it will be not too hard to configure with Eclipse. Can anyone give me some possible solution? Any hints?

Regards and thanks in advance for any clues. Please forgive my English ;)

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

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

发布评论

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

评论(8

奶气 2024-07-30 22:39:07

上次我尝试这个时,Eclipse不支持像命令行cvs那样直接访问本地存储库,因为命令行cvs具有客户端和服务器功能,而Eclipse只有客户端功能并且需要通过(例如)pserver,所以您可能需要运行一个 cvs 服务器。

事实证明,我实际上并不需要它,因为 Eclipse 保留了自己的所有更改历史记录,因此我只需要在重大里程碑时偶尔对 cvs 进行手动更新。

[最终我决定根本不在 Linux 下将 cvs 与 Eclipse 一起使用,因为它会被符号链接混淆,并在与存储库“同步”时开始删除我的包含文件。]

Last time I tried this, Eclipse did not support direct access to local repositories in the same way that command line cvs does because command line cvs has both client and server functionality whereas Eclipse only has client functionality and needs to go through (e.g.) pserver, so you would probably need to have a cvs server running.

Turns out that I didn't really need it anyway as Eclipse keeps its own history of all changes so I only needed to do an occasional manual update to cvs at major milestones.

[Eventually I decided not to use cvs at all with Eclipse under Linux as it got confused by symlinks and started deleting my include files when it "synchronised" with the repository.]

偏爱你一生 2024-07-30 22:39:07

如果您不介意切换到 Subversion,Eclipse 有其 SubClipse 插件。

If you don't mind a switch to Subversion, Eclipse has its SubClipse plugin.

埋葬我深情 2024-07-30 22:39:07

正如其他人所指出的,Eclipse 有适用于 SVN、Bazar、Mercurial 和 Git 的插件。

即便如此,尽管有它们的存在,我发现使用命令行是最舒服的。

svn commit -m 'now committing'

假设您每天承诺的次数不超过几次,那么这应该足够有效。 是否有任何特定因素阻止您使用命令行?

As others have indicated, there are plugins available for Eclipse for SVN, Bazar, Mercurial and Git.

Even so, despite their presence, I find using the command line the most comfortable.

svn commit -m 'now committing'

Assuming you are not committing for more than several times a day, this should work well enough. Is there anything specific that is preventing you from using the command line?

咋地 2024-07-30 22:39:07

我尝试了 Eclipse+Subclipse 和 Eclipse+Bazaar 插件。 两者都工作得很好,但我发现这些版本源代码控制工具的 Tortoise 版本非常好,以至于我放弃了 Eclipse 插件。 在 Windows 上,我选择 Tortoise XXX。 它们与 shell(Explorer 或 TotalCommander)集成,如果文件更改,则更改图标覆盖,显示日志,比较修订版本等。

I tried Eclipse+Subclipse and Eclipse+Bazaar plugin. Both work very well, but I have found that Tortoise versions of those version source control tools are so good that I resigned from Eclipse plugins. On Windows Tortoise XXX are my choice. They integrate with shell (Explorer or TotalCommander), changes icon overlay if file is changed, shows log, compare revisions etc. etc.

坏尐絯℡ 2024-07-30 22:39:07

我绝对建议切换到不同的 VCS - 我更喜欢 Mercurial,以及许多 Python 社区。 这样,您将能够在本地工作,但仍然能够稍后向全世界发布您的更改。

您可以为 Windows 资源管理器安装 TortoiseHg,以及 MercurialEclipse Eclipse 插件。

甚至还有一个 面向 CVS 用户的 Mercurial 文档来帮助您进行转换,还有一个 大部分等效命令列表

I would definitely recommend switching over to a different VCS—I prefer Mercurial, along with a lot of the Python community. That way, you'll be able to work locally, but still have the ability to publish your changes to the world later.

You can install TortoiseHg for Windows Explorer, and the MercurialEclipse plugin for Eclipse.

There's even a Mercurial for CVS users document to help you change over, and a list of mostly-equivalent commands.

我们的影子 2024-07-30 22:39:07

我将 Eclipse 与本地 CVS 存储库一起使用,没有出现任何问题。 唯一的问题是您不能使用“:local:”CVS 协议。 由于您使用的是 Windows,我建议安装 TortoiseCVS,然后按如下方式配置附带的 CVSNT 服务器:

  • 控制面板:CVSNT
    • 存储库配置:创建存储库并发布
    • 记下服务器名称并确保其与您的主机名匹配
  • 主机名)

Eclipse:使用 :pserver: 连接类型创建一个新的存储库位置并将其指向您的本地主机名(或任何实际的 源控制系统)比 Eclipse 本地历史记录的优势在于能够将签入注释与更改相关联、将更改分组到更改集等。您可以使用 Eclipse 本地历史记录从小错误中恢复,但它不能替代源代码控制(并且也会过期:请参阅窗口 -> 首选项常规 -> 工作区 -> 本地历史记录)。

I use Eclipse with a local CVS repository without issue. The only catch is that you cannot use the ":local:" CVS protocol. Since you're on Windows, I recommend installing TortoiseCVS and then configuring the included CVSNT server as follows:

  • Control Panel: CVSNT
    • Repository configuration: create a repository and publish it
    • Note the Server Name and make sure it matches your hostname
  • Eclipse: Create a new repository location using the :pserver: connection type and point it to your local hostname

This (or any actual source control system) has the advantage over the Eclipse Local History of being able to associate checkin comments with changes, group changes into change sets, etc. You can use the Eclipse Local History to recover from minor mistakes, but it's no replacement for source control (and expires as well: see Window->Preferences General->Workspace->Local History).

音盲 2024-07-30 22:39:07

我最近搬了家,还无法访问互联网。

CVS 和 SVN 是集中版本控制系统。 您可以使用 Mercurial 或 Git 等 DVCS,而不必将它们安装在本地系统上以进行单一版本控制。

当您克隆 Mercurial 存储库时,您实际上拥有本地可用的所有存储库文件的所有版本。

I recently moved my house and don't have yet an access to internet.

CVS and SVN are the Centralized Version control systems. Rather than having to install them on your local system just for single version control, you could use DVCS like Mercurial or Git.

When you clone a Mercurial Repository, you have literally all versions of all the repo files available locally.

橘和柠 2024-07-30 22:39:07

我相信 Eclipse 确实内置了 CVS 支持 - 或者至少在我几年前最后一次使用它时确实如此。

有关如何将 CVS 与 Eclipse 结合使用的更多信息,请参阅 Eclipse CVS 常见问题解答

I believe Eclipse does have CVS support built in - or at least it did have when I last used it a couple of years ago.

For further information on how to use CVS with Eclipse see the Eclipse CVS FAQ

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